luda 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +5 -0
  4. data/assets/javascripts/luda-degradation.js +131 -0
  5. data/assets/javascripts/luda-degradation.js.map +1 -0
  6. data/assets/javascripts/luda-degradation.min.js +7 -0
  7. data/assets/javascripts/luda-degradation.min.js.map +1 -0
  8. data/assets/javascripts/luda-sprockets.js +11 -0
  9. data/assets/javascripts/luda.js +2024 -0
  10. data/assets/javascripts/luda.js.map +1 -0
  11. data/assets/javascripts/luda.min.js +7 -0
  12. data/assets/javascripts/luda.min.js.map +1 -0
  13. data/assets/javascripts/luda/behaviours/enter-click.js +38 -0
  14. data/assets/javascripts/luda/behaviours/focus.js +103 -0
  15. data/assets/javascripts/luda/behaviours/radio-tab.js +69 -0
  16. data/assets/javascripts/luda/behaviours/readonly.js +57 -0
  17. data/assets/javascripts/luda/behaviours/toggle.js +104 -0
  18. data/assets/javascripts/luda/collections/carousel.js +314 -0
  19. data/assets/javascripts/luda/collections/dropdown.js +269 -0
  20. data/assets/javascripts/luda/collections/form-dropdown.js +112 -0
  21. data/assets/javascripts/luda/collections/tab.js +117 -0
  22. data/assets/javascripts/luda/component.js +240 -0
  23. data/assets/javascripts/luda/constants.js +18 -0
  24. data/assets/javascripts/luda/degradation.js +125 -0
  25. data/assets/javascripts/luda/dom.js +81 -0
  26. data/assets/javascripts/luda/elements/form-file.js +104 -0
  27. data/assets/javascripts/luda/elements/form-select.js +212 -0
  28. data/assets/javascripts/luda/event.js +193 -0
  29. data/assets/javascripts/luda/index.js +20 -0
  30. data/assets/javascripts/luda/install.js +75 -0
  31. data/assets/javascripts/luda/singleton.js +77 -0
  32. data/assets/javascripts/luda/utilities.js +16 -0
  33. data/assets/stylesheets/luda/_core/_base.sass +430 -0
  34. data/assets/stylesheets/luda/_core/_functions.sass +240 -0
  35. data/assets/stylesheets/luda/_core/_variables.sass +710 -0
  36. data/assets/stylesheets/luda/_core/behaviours/_disabled.sass +12 -0
  37. data/assets/stylesheets/luda/_core/behaviours/_focus.sass +7 -0
  38. data/assets/stylesheets/luda/_core/behaviours/_readonly.sass +16 -0
  39. data/assets/stylesheets/luda/_core/behaviours/_toggle.sass +4 -0
  40. data/assets/stylesheets/luda/_core/collections/_alert.sass +24 -0
  41. data/assets/stylesheets/luda/_core/collections/_avatar.sass +117 -0
  42. data/assets/stylesheets/luda/_core/collections/_breadcrumb.sass +21 -0
  43. data/assets/stylesheets/luda/_core/collections/_button-group.sass +67 -0
  44. data/assets/stylesheets/luda/_core/collections/_button-icon.sass +46 -0
  45. data/assets/stylesheets/luda/_core/collections/_carousel.sass +132 -0
  46. data/assets/stylesheets/luda/_core/collections/_dropdown.sass +60 -0
  47. data/assets/stylesheets/luda/_core/collections/_form-button.sass +23 -0
  48. data/assets/stylesheets/luda/_core/collections/_form-dropdown.sass +21 -0
  49. data/assets/stylesheets/luda/_core/collections/_form-group.sass +48 -0
  50. data/assets/stylesheets/luda/_core/collections/_form-icon.sass +71 -0
  51. data/assets/stylesheets/luda/_core/collections/_media.sass +55 -0
  52. data/assets/stylesheets/luda/_core/collections/_modal.sass +12 -0
  53. data/assets/stylesheets/luda/_core/collections/_nav.sass +162 -0
  54. data/assets/stylesheets/luda/_core/collections/_tab.sass +18 -0
  55. data/assets/stylesheets/luda/_core/elements/_badge.sass +19 -0
  56. data/assets/stylesheets/luda/_core/elements/_baseline.sass +22 -0
  57. data/assets/stylesheets/luda/_core/elements/_button.sass +136 -0
  58. data/assets/stylesheets/luda/_core/elements/_container.sass +8 -0
  59. data/assets/stylesheets/luda/_core/elements/_grid.sass +55 -0
  60. data/assets/stylesheets/luda/_core/elements/_icon.sass +110 -0
  61. data/assets/stylesheets/luda/_core/elements/_overlay.sass +11 -0
  62. data/assets/stylesheets/luda/_core/elements/_progress.sass +31 -0
  63. data/assets/stylesheets/luda/_core/elements/_scrollbar.sass +21 -0
  64. data/assets/stylesheets/luda/_core/elements/_table.sass +102 -0
  65. data/assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass +5 -0
  66. data/assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass +105 -0
  67. data/assets/stylesheets/luda/_core/elements/form/_form-element.sass +83 -0
  68. data/assets/stylesheets/luda/_core/elements/form/_form-helper.sass +66 -0
  69. data/assets/stylesheets/luda/_core/elements/form/_form-label.sass +20 -0
  70. data/assets/stylesheets/luda/_core/elements/form/_form-range.sass +92 -0
  71. data/assets/stylesheets/luda/_core/elements/form/_form-row.sass +214 -0
  72. data/assets/stylesheets/luda/_core/elements/typography/_code.sass +27 -0
  73. data/assets/stylesheets/luda/_core/elements/typography/_link.sass +15 -0
  74. data/assets/stylesheets/luda/_core/elements/typography/_list.sass +14 -0
  75. data/assets/stylesheets/luda/_core/elements/typography/_mark.sass +7 -0
  76. data/assets/stylesheets/luda/_core/elements/typography/_quote.sass +68 -0
  77. data/assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass +16 -0
  78. data/assets/stylesheets/luda/_core/elements/typography/_typography.sass +52 -0
  79. data/assets/stylesheets/luda/_core/mixins/_browser.sass +15 -0
  80. data/assets/stylesheets/luda/_core/mixins/_button.sass +90 -0
  81. data/assets/stylesheets/luda/_core/mixins/_dropdown.sass +40 -0
  82. data/assets/stylesheets/luda/_core/mixins/_focus.sass +3 -0
  83. data/assets/stylesheets/luda/_core/mixins/_form.sass +27 -0
  84. data/assets/stylesheets/luda/_core/mixins/_install.sass +7 -0
  85. data/assets/stylesheets/luda/_core/mixins/_media-query.sass +66 -0
  86. data/assets/stylesheets/luda/_core/mixins/_overlay.sass +14 -0
  87. data/assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass +3 -0
  88. data/assets/stylesheets/luda/_core/mixins/_typography.sass +40 -0
  89. data/assets/stylesheets/luda/_core/utilities/_align.sass +19 -0
  90. data/assets/stylesheets/luda/_core/utilities/_background.sass +88 -0
  91. data/assets/stylesheets/luda/_core/utilities/_color.sass +36 -0
  92. data/assets/stylesheets/luda/_core/utilities/_display.sass +40 -0
  93. data/assets/stylesheets/luda/_core/utilities/_flex.sass +114 -0
  94. data/assets/stylesheets/luda/_core/utilities/_float.sass +21 -0
  95. data/assets/stylesheets/luda/_core/utilities/_opacity.sass +19 -0
  96. data/assets/stylesheets/luda/_core/utilities/_overflow.sass +18 -0
  97. data/assets/stylesheets/luda/_core/utilities/_position.sass +48 -0
  98. data/assets/stylesheets/luda/_core/utilities/_shape.sass +62 -0
  99. data/assets/stylesheets/luda/_core/utilities/_size.sass +67 -0
  100. data/assets/stylesheets/luda/_core/utilities/_space.sass +227 -0
  101. data/assets/stylesheets/luda/_core/utilities/_text.sass +85 -0
  102. data/assets/stylesheets/luda/_core/utilities/_visibility.sass +11 -0
  103. data/assets/stylesheets/luda/_core/utilities/_z-index.sass +19 -0
  104. data/assets/stylesheets/luda/_default.sass +51 -0
  105. data/assets/stylesheets/luda/core/_base.sass +430 -0
  106. data/assets/stylesheets/luda/core/_functions.sass +240 -0
  107. data/assets/stylesheets/luda/core/_variables.sass +710 -0
  108. data/assets/stylesheets/luda/core/behaviours/_disabled.sass +12 -0
  109. data/assets/stylesheets/luda/core/behaviours/_focus.sass +7 -0
  110. data/assets/stylesheets/luda/core/behaviours/_readonly.sass +16 -0
  111. data/assets/stylesheets/luda/core/behaviours/_toggle.sass +4 -0
  112. data/assets/stylesheets/luda/core/collections/_alert.sass +24 -0
  113. data/assets/stylesheets/luda/core/collections/_avatar.sass +117 -0
  114. data/assets/stylesheets/luda/core/collections/_breadcrumb.sass +21 -0
  115. data/assets/stylesheets/luda/core/collections/_button-group.sass +67 -0
  116. data/assets/stylesheets/luda/core/collections/_button-icon.sass +46 -0
  117. data/assets/stylesheets/luda/core/collections/_carousel.sass +132 -0
  118. data/assets/stylesheets/luda/core/collections/_dropdown.sass +60 -0
  119. data/assets/stylesheets/luda/core/collections/_form-button.sass +23 -0
  120. data/assets/stylesheets/luda/core/collections/_form-dropdown.sass +21 -0
  121. data/assets/stylesheets/luda/core/collections/_form-group.sass +48 -0
  122. data/assets/stylesheets/luda/core/collections/_form-icon.sass +71 -0
  123. data/assets/stylesheets/luda/core/collections/_media.sass +55 -0
  124. data/assets/stylesheets/luda/core/collections/_modal.sass +12 -0
  125. data/assets/stylesheets/luda/core/collections/_nav.sass +162 -0
  126. data/assets/stylesheets/luda/core/collections/_tab.sass +18 -0
  127. data/assets/stylesheets/luda/core/elements/_badge.sass +19 -0
  128. data/assets/stylesheets/luda/core/elements/_baseline.sass +22 -0
  129. data/assets/stylesheets/luda/core/elements/_button.sass +136 -0
  130. data/assets/stylesheets/luda/core/elements/_container.sass +8 -0
  131. data/assets/stylesheets/luda/core/elements/_grid.sass +55 -0
  132. data/assets/stylesheets/luda/core/elements/_icon.sass +110 -0
  133. data/assets/stylesheets/luda/core/elements/_overlay.sass +11 -0
  134. data/assets/stylesheets/luda/core/elements/_progress.sass +31 -0
  135. data/assets/stylesheets/luda/core/elements/_scrollbar.sass +21 -0
  136. data/assets/stylesheets/luda/core/elements/_table.sass +102 -0
  137. data/assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass +5 -0
  138. data/assets/stylesheets/luda/core/elements/form/_form-check-radio.sass +105 -0
  139. data/assets/stylesheets/luda/core/elements/form/_form-element.sass +83 -0
  140. data/assets/stylesheets/luda/core/elements/form/_form-helper.sass +66 -0
  141. data/assets/stylesheets/luda/core/elements/form/_form-label.sass +20 -0
  142. data/assets/stylesheets/luda/core/elements/form/_form-range.sass +92 -0
  143. data/assets/stylesheets/luda/core/elements/form/_form-row.sass +214 -0
  144. data/assets/stylesheets/luda/core/elements/typography/_code.sass +27 -0
  145. data/assets/stylesheets/luda/core/elements/typography/_link.sass +15 -0
  146. data/assets/stylesheets/luda/core/elements/typography/_list.sass +14 -0
  147. data/assets/stylesheets/luda/core/elements/typography/_mark.sass +7 -0
  148. data/assets/stylesheets/luda/core/elements/typography/_quote.sass +68 -0
  149. data/assets/stylesheets/luda/core/elements/typography/_sub-sup.sass +16 -0
  150. data/assets/stylesheets/luda/core/elements/typography/_typography.sass +52 -0
  151. data/assets/stylesheets/luda/core/mixins/_browser.sass +15 -0
  152. data/assets/stylesheets/luda/core/mixins/_button.sass +90 -0
  153. data/assets/stylesheets/luda/core/mixins/_dropdown.sass +40 -0
  154. data/assets/stylesheets/luda/core/mixins/_focus.sass +3 -0
  155. data/assets/stylesheets/luda/core/mixins/_form.sass +27 -0
  156. data/assets/stylesheets/luda/core/mixins/_install.sass +7 -0
  157. data/assets/stylesheets/luda/core/mixins/_media-query.sass +66 -0
  158. data/assets/stylesheets/luda/core/mixins/_overlay.sass +14 -0
  159. data/assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass +3 -0
  160. data/assets/stylesheets/luda/core/mixins/_typography.sass +40 -0
  161. data/assets/stylesheets/luda/core/utilities/_align.sass +19 -0
  162. data/assets/stylesheets/luda/core/utilities/_background.sass +88 -0
  163. data/assets/stylesheets/luda/core/utilities/_color.sass +36 -0
  164. data/assets/stylesheets/luda/core/utilities/_display.sass +40 -0
  165. data/assets/stylesheets/luda/core/utilities/_flex.sass +114 -0
  166. data/assets/stylesheets/luda/core/utilities/_float.sass +21 -0
  167. data/assets/stylesheets/luda/core/utilities/_opacity.sass +19 -0
  168. data/assets/stylesheets/luda/core/utilities/_overflow.sass +18 -0
  169. data/assets/stylesheets/luda/core/utilities/_position.sass +48 -0
  170. data/assets/stylesheets/luda/core/utilities/_shape.sass +62 -0
  171. data/assets/stylesheets/luda/core/utilities/_size.sass +67 -0
  172. data/assets/stylesheets/luda/core/utilities/_space.sass +227 -0
  173. data/assets/stylesheets/luda/core/utilities/_text.sass +85 -0
  174. data/assets/stylesheets/luda/core/utilities/_visibility.sass +11 -0
  175. data/assets/stylesheets/luda/core/utilities/_z-index.sass +19 -0
  176. data/assets/stylesheets/luda/default/_banner.sass +7 -0
  177. data/assets/stylesheets/luda/default/_base.sass +6 -0
  178. data/assets/stylesheets/luda/default/_functions.sass +1 -0
  179. data/assets/stylesheets/luda/default/_mixins.sass +10 -0
  180. data/assets/stylesheets/luda/default/_variables.sass +1 -0
  181. data/assets/stylesheets/luda/default/behaviours/_disabled.sass +5 -0
  182. data/assets/stylesheets/luda/default/behaviours/_focus.sass +5 -0
  183. data/assets/stylesheets/luda/default/behaviours/_readonly.sass +5 -0
  184. data/assets/stylesheets/luda/default/behaviours/_toggle.sass +5 -0
  185. data/assets/stylesheets/luda/default/collections/_alert.sass +6 -0
  186. data/assets/stylesheets/luda/default/collections/_avatar.sass +7 -0
  187. data/assets/stylesheets/luda/default/collections/_breadcrumb.sass +6 -0
  188. data/assets/stylesheets/luda/default/collections/_button-group.sass +7 -0
  189. data/assets/stylesheets/luda/default/collections/_button-icon.sass +8 -0
  190. data/assets/stylesheets/luda/default/collections/_carousel.sass +7 -0
  191. data/assets/stylesheets/luda/default/collections/_dropdown.sass +8 -0
  192. data/assets/stylesheets/luda/default/collections/_form-button.sass +9 -0
  193. data/assets/stylesheets/luda/default/collections/_form-dropdown.sass +8 -0
  194. data/assets/stylesheets/luda/default/collections/_form-group.sass +11 -0
  195. data/assets/stylesheets/luda/default/collections/_form-icon.sass +8 -0
  196. data/assets/stylesheets/luda/default/collections/_media.sass +7 -0
  197. data/assets/stylesheets/luda/default/collections/_modal.sass +7 -0
  198. data/assets/stylesheets/luda/default/collections/_nav.sass +10 -0
  199. data/assets/stylesheets/luda/default/collections/_tab.sass +9 -0
  200. data/assets/stylesheets/luda/default/elements/_badge.sass +6 -0
  201. data/assets/stylesheets/luda/default/elements/_baseline.sass +6 -0
  202. data/assets/stylesheets/luda/default/elements/_button.sass +7 -0
  203. data/assets/stylesheets/luda/default/elements/_container.sass +6 -0
  204. data/assets/stylesheets/luda/default/elements/_form.sass +13 -0
  205. data/assets/stylesheets/luda/default/elements/_grid.sass +6 -0
  206. data/assets/stylesheets/luda/default/elements/_icon.sass +6 -0
  207. data/assets/stylesheets/luda/default/elements/_overlay.sass +6 -0
  208. data/assets/stylesheets/luda/default/elements/_progress.sass +6 -0
  209. data/assets/stylesheets/luda/default/elements/_scrollbar.sass +6 -0
  210. data/assets/stylesheets/luda/default/elements/_table.sass +6 -0
  211. data/assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass +6 -0
  212. data/assets/stylesheets/luda/default/elements/_typography.sass +12 -0
  213. data/assets/stylesheets/luda/default/elements/form/_form-check-radio.sass +5 -0
  214. data/assets/stylesheets/luda/default/elements/form/_form-element.sass +5 -0
  215. data/assets/stylesheets/luda/default/elements/form/_form-helper.sass +5 -0
  216. data/assets/stylesheets/luda/default/elements/form/_form-label.sass +5 -0
  217. data/assets/stylesheets/luda/default/elements/form/_form-range.sass +5 -0
  218. data/assets/stylesheets/luda/default/elements/form/_form-row.sass +5 -0
  219. data/assets/stylesheets/luda/default/elements/typography/_code.sass +5 -0
  220. data/assets/stylesheets/luda/default/elements/typography/_link.sass +5 -0
  221. data/assets/stylesheets/luda/default/elements/typography/_list.sass +4 -0
  222. data/assets/stylesheets/luda/default/elements/typography/_mark.sass +5 -0
  223. data/assets/stylesheets/luda/default/elements/typography/_quote.sass +5 -0
  224. data/assets/stylesheets/luda/default/elements/typography/_sub-sup.sass +5 -0
  225. data/assets/stylesheets/luda/default/elements/typography/_typography.sass +5 -0
  226. data/assets/stylesheets/luda/default/index.sass +56 -0
  227. data/assets/stylesheets/luda/default/utilities/_align.sass +5 -0
  228. data/assets/stylesheets/luda/default/utilities/_background.sass +5 -0
  229. data/assets/stylesheets/luda/default/utilities/_color.sass +5 -0
  230. data/assets/stylesheets/luda/default/utilities/_display.sass +5 -0
  231. data/assets/stylesheets/luda/default/utilities/_flex.sass +5 -0
  232. data/assets/stylesheets/luda/default/utilities/_float.sass +5 -0
  233. data/assets/stylesheets/luda/default/utilities/_opacity.sass +5 -0
  234. data/assets/stylesheets/luda/default/utilities/_overflow.sass +5 -0
  235. data/assets/stylesheets/luda/default/utilities/_position.sass +5 -0
  236. data/assets/stylesheets/luda/default/utilities/_shape.sass +5 -0
  237. data/assets/stylesheets/luda/default/utilities/_size.sass +5 -0
  238. data/assets/stylesheets/luda/default/utilities/_space.sass +5 -0
  239. data/assets/stylesheets/luda/default/utilities/_text.sass +5 -0
  240. data/assets/stylesheets/luda/default/utilities/_visibility.sass +5 -0
  241. data/assets/stylesheets/luda/default/utilities/_z-index.sass +5 -0
  242. data/lib/luda.rb +72 -0
  243. data/lib/luda/config.rb +3 -0
  244. data/lib/luda/engine.rb +11 -0
  245. data/lib/luda/version.rb +3 -0
  246. metadata +302 -0
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-check-radio'
2
+
3
+
4
+
5
+ +install(element-form-check-radio)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-element'
2
+
3
+
4
+
5
+ +install(element-form-element)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-helper'
2
+
3
+
4
+
5
+ +install(element-form-helper)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-label'
2
+
3
+
4
+
5
+ +install(element-form-label)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-range'
2
+
3
+
4
+
5
+ +install(element-form-range)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/form/form-row'
2
+
3
+
4
+
5
+ +install(element-form-row)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/code'
2
+
3
+
4
+
5
+ +install(element-typography-code)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/link'
2
+
3
+
4
+
5
+ +install(element-typography-link)
@@ -0,0 +1,4 @@
1
+ @import '../../../_core/elements/typography/list'
2
+
3
+
4
+ +install(element-typography-list)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/mark'
2
+
3
+
4
+
5
+ +install(element-typography-mark)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/quote'
2
+
3
+
4
+
5
+ +install(element-typography-quote)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/sub-sup'
2
+
3
+
4
+
5
+ +install(element-typography-sub-sup)
@@ -0,0 +1,5 @@
1
+ @import '../../../_core/elements/typography/typography'
2
+
3
+
4
+
5
+ +install(element-typography-typography)
@@ -0,0 +1,56 @@
1
+ @import functions
2
+ @import variables
3
+ @import mixins
4
+
5
+ @import base
6
+
7
+ @import behaviours/readonly
8
+ @import behaviours/disabled
9
+ @import behaviours/focus
10
+ @import behaviours/toggle
11
+
12
+ @import elements/typography
13
+ @import elements/form
14
+ @import elements/container
15
+ @import elements/grid
16
+ @import elements/button
17
+ @import elements/table
18
+ @import elements/overlay
19
+ @import elements/icon
20
+ @import elements/badge
21
+ @import elements/progress
22
+ @import elements/scrollbar
23
+ @import elements/turbolinks-progress-bar
24
+ @import elements/baseline
25
+
26
+ @import collections/media
27
+ @import collections/avatar
28
+ @import collections/breadcrumb
29
+ @import collections/alert
30
+ @import collections/modal
31
+ @import collections/dropdown
32
+ @import collections/button-icon
33
+ @import collections/button-group
34
+ @import collections/form-icon
35
+ @import collections/form-button
36
+ @import collections/form-group
37
+ @import collections/form-dropdown
38
+ @import collections/carousel
39
+ @import collections/tab
40
+ @import collections/nav
41
+
42
+ @import utilities/display
43
+ @import utilities/flex
44
+ @import utilities/float
45
+ @import utilities/space
46
+ @import utilities/size
47
+ @import utilities/position
48
+ @import utilities/overflow
49
+ @import utilities/z-index
50
+ @import utilities/align
51
+ @import utilities/visibility
52
+ @import utilities/opacity
53
+ @import utilities/color
54
+ @import utilities/background
55
+ @import utilities/text
56
+ @import utilities/shape
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/align'
2
+
3
+
4
+
5
+ +install(utility-align)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/background'
2
+
3
+
4
+
5
+ +install(utility-background)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/color'
2
+
3
+
4
+
5
+ +install(utility-color)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/display'
2
+
3
+
4
+
5
+ +install(utility-display)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/flex'
2
+
3
+
4
+
5
+ +install(utility-flex)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/float'
2
+
3
+
4
+
5
+ +install(utility-float)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/opacity'
2
+
3
+
4
+
5
+ +install(utility-opacity)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/overflow'
2
+
3
+
4
+
5
+ +install(utility-overflow)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/position'
2
+
3
+
4
+
5
+ +install(utility-position)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/shape'
2
+
3
+
4
+
5
+ +install(utility-shape)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/size'
2
+
3
+
4
+
5
+ +install(utility-size)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/space'
2
+
3
+
4
+
5
+ +install(utility-space)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/text'
2
+
3
+
4
+
5
+ +install(utility-text)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/visibility'
2
+
3
+
4
+
5
+ +install(utility-visibility)
@@ -0,0 +1,5 @@
1
+ @import '../../_core/utilities/z-index'
2
+
3
+
4
+
5
+ +install(utility-z-index)
data/lib/luda.rb ADDED
@@ -0,0 +1,72 @@
1
+ require 'luda/version'
2
+ require 'luda/config'
3
+
4
+ module Luda
5
+ # Hand copied and modified from Bootstrap gem
6
+ # https://github.com/twbs/bootstrap-rubygem/blob/master/lib/bootstrap.rb
7
+ class << self
8
+ def load!
9
+ if rails?
10
+ register_rails_engine
11
+ elsif hanami?
12
+ register_hanami
13
+ elsif sprockets?
14
+ register_sprockets
15
+ elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths)
16
+ # The deprecated `sass` gem:
17
+ ::Sass.load_paths << stylesheets_path
18
+ end
19
+
20
+ if defined?(::Sass::Script::Value::Number)
21
+ ::Sass::Script::Value::Number.precision = [Luda::SASS_PRECISION, ::Sass::Script::Value::Number.precision].max
22
+ end
23
+ end
24
+
25
+ # Paths
26
+ def gem_path
27
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
28
+ end
29
+
30
+ def stylesheets_path
31
+ File.join assets_path, 'stylesheets'
32
+ end
33
+
34
+ def javascripts_path
35
+ File.join assets_path, 'javascripts'
36
+ end
37
+
38
+ def assets_path
39
+ @assets_path ||= File.join gem_path, 'assets'
40
+ end
41
+
42
+ # Environment detection helpers
43
+ def sprockets?
44
+ defined?(::Sprockets)
45
+ end
46
+
47
+ def rails?
48
+ defined?(::Rails)
49
+ end
50
+
51
+ def hanami?
52
+ defined?(::Hanami)
53
+ end
54
+
55
+ private
56
+
57
+ def register_rails_engine
58
+ require 'luda/engine'
59
+ end
60
+
61
+ def register_sprockets
62
+ Sprockets.append_path(stylesheets_path)
63
+ Sprockets.append_path(javascripts_path)
64
+ end
65
+
66
+ def register_hanami
67
+ Hanami::Assets.sources << assets_path
68
+ end
69
+ end
70
+ end
71
+
72
+ Luda.load!
@@ -0,0 +1,3 @@
1
+ module Luda
2
+ SASS_PRECISION = 6
3
+ end
@@ -0,0 +1,11 @@
1
+ module Luda
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'luda.assets' do |app|
5
+ %w(stylesheets javascripts).each do |sub|
6
+ app.config.assets.paths << root.join('assets', sub).to_s
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module Luda
2
+ VERSION = '0.1.5'
3
+ end
metadata ADDED
@@ -0,0 +1,302 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: luda
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - oatw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.7.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.7.3
27
+ description:
28
+ email:
29
+ - oatwoatw@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.md
36
+ - assets/javascripts/luda-degradation.js
37
+ - assets/javascripts/luda-degradation.js.map
38
+ - assets/javascripts/luda-degradation.min.js
39
+ - assets/javascripts/luda-degradation.min.js.map
40
+ - assets/javascripts/luda-sprockets.js
41
+ - assets/javascripts/luda.js
42
+ - assets/javascripts/luda.js.map
43
+ - assets/javascripts/luda.min.js
44
+ - assets/javascripts/luda.min.js.map
45
+ - assets/javascripts/luda/behaviours/enter-click.js
46
+ - assets/javascripts/luda/behaviours/focus.js
47
+ - assets/javascripts/luda/behaviours/radio-tab.js
48
+ - assets/javascripts/luda/behaviours/readonly.js
49
+ - assets/javascripts/luda/behaviours/toggle.js
50
+ - assets/javascripts/luda/collections/carousel.js
51
+ - assets/javascripts/luda/collections/dropdown.js
52
+ - assets/javascripts/luda/collections/form-dropdown.js
53
+ - assets/javascripts/luda/collections/tab.js
54
+ - assets/javascripts/luda/component.js
55
+ - assets/javascripts/luda/constants.js
56
+ - assets/javascripts/luda/degradation.js
57
+ - assets/javascripts/luda/dom.js
58
+ - assets/javascripts/luda/elements/form-file.js
59
+ - assets/javascripts/luda/elements/form-select.js
60
+ - assets/javascripts/luda/event.js
61
+ - assets/javascripts/luda/index.js
62
+ - assets/javascripts/luda/install.js
63
+ - assets/javascripts/luda/singleton.js
64
+ - assets/javascripts/luda/utilities.js
65
+ - assets/stylesheets/luda/_core/_base.sass
66
+ - assets/stylesheets/luda/_core/_functions.sass
67
+ - assets/stylesheets/luda/_core/_variables.sass
68
+ - assets/stylesheets/luda/_core/behaviours/_disabled.sass
69
+ - assets/stylesheets/luda/_core/behaviours/_focus.sass
70
+ - assets/stylesheets/luda/_core/behaviours/_readonly.sass
71
+ - assets/stylesheets/luda/_core/behaviours/_toggle.sass
72
+ - assets/stylesheets/luda/_core/collections/_alert.sass
73
+ - assets/stylesheets/luda/_core/collections/_avatar.sass
74
+ - assets/stylesheets/luda/_core/collections/_breadcrumb.sass
75
+ - assets/stylesheets/luda/_core/collections/_button-group.sass
76
+ - assets/stylesheets/luda/_core/collections/_button-icon.sass
77
+ - assets/stylesheets/luda/_core/collections/_carousel.sass
78
+ - assets/stylesheets/luda/_core/collections/_dropdown.sass
79
+ - assets/stylesheets/luda/_core/collections/_form-button.sass
80
+ - assets/stylesheets/luda/_core/collections/_form-dropdown.sass
81
+ - assets/stylesheets/luda/_core/collections/_form-group.sass
82
+ - assets/stylesheets/luda/_core/collections/_form-icon.sass
83
+ - assets/stylesheets/luda/_core/collections/_media.sass
84
+ - assets/stylesheets/luda/_core/collections/_modal.sass
85
+ - assets/stylesheets/luda/_core/collections/_nav.sass
86
+ - assets/stylesheets/luda/_core/collections/_tab.sass
87
+ - assets/stylesheets/luda/_core/elements/_badge.sass
88
+ - assets/stylesheets/luda/_core/elements/_baseline.sass
89
+ - assets/stylesheets/luda/_core/elements/_button.sass
90
+ - assets/stylesheets/luda/_core/elements/_container.sass
91
+ - assets/stylesheets/luda/_core/elements/_grid.sass
92
+ - assets/stylesheets/luda/_core/elements/_icon.sass
93
+ - assets/stylesheets/luda/_core/elements/_overlay.sass
94
+ - assets/stylesheets/luda/_core/elements/_progress.sass
95
+ - assets/stylesheets/luda/_core/elements/_scrollbar.sass
96
+ - assets/stylesheets/luda/_core/elements/_table.sass
97
+ - assets/stylesheets/luda/_core/elements/_turbolinks-progress-bar.sass
98
+ - assets/stylesheets/luda/_core/elements/form/_form-check-radio.sass
99
+ - assets/stylesheets/luda/_core/elements/form/_form-element.sass
100
+ - assets/stylesheets/luda/_core/elements/form/_form-helper.sass
101
+ - assets/stylesheets/luda/_core/elements/form/_form-label.sass
102
+ - assets/stylesheets/luda/_core/elements/form/_form-range.sass
103
+ - assets/stylesheets/luda/_core/elements/form/_form-row.sass
104
+ - assets/stylesheets/luda/_core/elements/typography/_code.sass
105
+ - assets/stylesheets/luda/_core/elements/typography/_link.sass
106
+ - assets/stylesheets/luda/_core/elements/typography/_list.sass
107
+ - assets/stylesheets/luda/_core/elements/typography/_mark.sass
108
+ - assets/stylesheets/luda/_core/elements/typography/_quote.sass
109
+ - assets/stylesheets/luda/_core/elements/typography/_sub-sup.sass
110
+ - assets/stylesheets/luda/_core/elements/typography/_typography.sass
111
+ - assets/stylesheets/luda/_core/mixins/_browser.sass
112
+ - assets/stylesheets/luda/_core/mixins/_button.sass
113
+ - assets/stylesheets/luda/_core/mixins/_dropdown.sass
114
+ - assets/stylesheets/luda/_core/mixins/_focus.sass
115
+ - assets/stylesheets/luda/_core/mixins/_form.sass
116
+ - assets/stylesheets/luda/_core/mixins/_install.sass
117
+ - assets/stylesheets/luda/_core/mixins/_media-query.sass
118
+ - assets/stylesheets/luda/_core/mixins/_overlay.sass
119
+ - assets/stylesheets/luda/_core/mixins/_sass-lint-fix.sass
120
+ - assets/stylesheets/luda/_core/mixins/_typography.sass
121
+ - assets/stylesheets/luda/_core/utilities/_align.sass
122
+ - assets/stylesheets/luda/_core/utilities/_background.sass
123
+ - assets/stylesheets/luda/_core/utilities/_color.sass
124
+ - assets/stylesheets/luda/_core/utilities/_display.sass
125
+ - assets/stylesheets/luda/_core/utilities/_flex.sass
126
+ - assets/stylesheets/luda/_core/utilities/_float.sass
127
+ - assets/stylesheets/luda/_core/utilities/_opacity.sass
128
+ - assets/stylesheets/luda/_core/utilities/_overflow.sass
129
+ - assets/stylesheets/luda/_core/utilities/_position.sass
130
+ - assets/stylesheets/luda/_core/utilities/_shape.sass
131
+ - assets/stylesheets/luda/_core/utilities/_size.sass
132
+ - assets/stylesheets/luda/_core/utilities/_space.sass
133
+ - assets/stylesheets/luda/_core/utilities/_text.sass
134
+ - assets/stylesheets/luda/_core/utilities/_visibility.sass
135
+ - assets/stylesheets/luda/_core/utilities/_z-index.sass
136
+ - assets/stylesheets/luda/_default.sass
137
+ - assets/stylesheets/luda/core/_base.sass
138
+ - assets/stylesheets/luda/core/_functions.sass
139
+ - assets/stylesheets/luda/core/_variables.sass
140
+ - assets/stylesheets/luda/core/behaviours/_disabled.sass
141
+ - assets/stylesheets/luda/core/behaviours/_focus.sass
142
+ - assets/stylesheets/luda/core/behaviours/_readonly.sass
143
+ - assets/stylesheets/luda/core/behaviours/_toggle.sass
144
+ - assets/stylesheets/luda/core/collections/_alert.sass
145
+ - assets/stylesheets/luda/core/collections/_avatar.sass
146
+ - assets/stylesheets/luda/core/collections/_breadcrumb.sass
147
+ - assets/stylesheets/luda/core/collections/_button-group.sass
148
+ - assets/stylesheets/luda/core/collections/_button-icon.sass
149
+ - assets/stylesheets/luda/core/collections/_carousel.sass
150
+ - assets/stylesheets/luda/core/collections/_dropdown.sass
151
+ - assets/stylesheets/luda/core/collections/_form-button.sass
152
+ - assets/stylesheets/luda/core/collections/_form-dropdown.sass
153
+ - assets/stylesheets/luda/core/collections/_form-group.sass
154
+ - assets/stylesheets/luda/core/collections/_form-icon.sass
155
+ - assets/stylesheets/luda/core/collections/_media.sass
156
+ - assets/stylesheets/luda/core/collections/_modal.sass
157
+ - assets/stylesheets/luda/core/collections/_nav.sass
158
+ - assets/stylesheets/luda/core/collections/_tab.sass
159
+ - assets/stylesheets/luda/core/elements/_badge.sass
160
+ - assets/stylesheets/luda/core/elements/_baseline.sass
161
+ - assets/stylesheets/luda/core/elements/_button.sass
162
+ - assets/stylesheets/luda/core/elements/_container.sass
163
+ - assets/stylesheets/luda/core/elements/_grid.sass
164
+ - assets/stylesheets/luda/core/elements/_icon.sass
165
+ - assets/stylesheets/luda/core/elements/_overlay.sass
166
+ - assets/stylesheets/luda/core/elements/_progress.sass
167
+ - assets/stylesheets/luda/core/elements/_scrollbar.sass
168
+ - assets/stylesheets/luda/core/elements/_table.sass
169
+ - assets/stylesheets/luda/core/elements/_turbolinks-progress-bar.sass
170
+ - assets/stylesheets/luda/core/elements/form/_form-check-radio.sass
171
+ - assets/stylesheets/luda/core/elements/form/_form-element.sass
172
+ - assets/stylesheets/luda/core/elements/form/_form-helper.sass
173
+ - assets/stylesheets/luda/core/elements/form/_form-label.sass
174
+ - assets/stylesheets/luda/core/elements/form/_form-range.sass
175
+ - assets/stylesheets/luda/core/elements/form/_form-row.sass
176
+ - assets/stylesheets/luda/core/elements/typography/_code.sass
177
+ - assets/stylesheets/luda/core/elements/typography/_link.sass
178
+ - assets/stylesheets/luda/core/elements/typography/_list.sass
179
+ - assets/stylesheets/luda/core/elements/typography/_mark.sass
180
+ - assets/stylesheets/luda/core/elements/typography/_quote.sass
181
+ - assets/stylesheets/luda/core/elements/typography/_sub-sup.sass
182
+ - assets/stylesheets/luda/core/elements/typography/_typography.sass
183
+ - assets/stylesheets/luda/core/mixins/_browser.sass
184
+ - assets/stylesheets/luda/core/mixins/_button.sass
185
+ - assets/stylesheets/luda/core/mixins/_dropdown.sass
186
+ - assets/stylesheets/luda/core/mixins/_focus.sass
187
+ - assets/stylesheets/luda/core/mixins/_form.sass
188
+ - assets/stylesheets/luda/core/mixins/_install.sass
189
+ - assets/stylesheets/luda/core/mixins/_media-query.sass
190
+ - assets/stylesheets/luda/core/mixins/_overlay.sass
191
+ - assets/stylesheets/luda/core/mixins/_sass-lint-fix.sass
192
+ - assets/stylesheets/luda/core/mixins/_typography.sass
193
+ - assets/stylesheets/luda/core/utilities/_align.sass
194
+ - assets/stylesheets/luda/core/utilities/_background.sass
195
+ - assets/stylesheets/luda/core/utilities/_color.sass
196
+ - assets/stylesheets/luda/core/utilities/_display.sass
197
+ - assets/stylesheets/luda/core/utilities/_flex.sass
198
+ - assets/stylesheets/luda/core/utilities/_float.sass
199
+ - assets/stylesheets/luda/core/utilities/_opacity.sass
200
+ - assets/stylesheets/luda/core/utilities/_overflow.sass
201
+ - assets/stylesheets/luda/core/utilities/_position.sass
202
+ - assets/stylesheets/luda/core/utilities/_shape.sass
203
+ - assets/stylesheets/luda/core/utilities/_size.sass
204
+ - assets/stylesheets/luda/core/utilities/_space.sass
205
+ - assets/stylesheets/luda/core/utilities/_text.sass
206
+ - assets/stylesheets/luda/core/utilities/_visibility.sass
207
+ - assets/stylesheets/luda/core/utilities/_z-index.sass
208
+ - assets/stylesheets/luda/default/_banner.sass
209
+ - assets/stylesheets/luda/default/_base.sass
210
+ - assets/stylesheets/luda/default/_functions.sass
211
+ - assets/stylesheets/luda/default/_mixins.sass
212
+ - assets/stylesheets/luda/default/_variables.sass
213
+ - assets/stylesheets/luda/default/behaviours/_disabled.sass
214
+ - assets/stylesheets/luda/default/behaviours/_focus.sass
215
+ - assets/stylesheets/luda/default/behaviours/_readonly.sass
216
+ - assets/stylesheets/luda/default/behaviours/_toggle.sass
217
+ - assets/stylesheets/luda/default/collections/_alert.sass
218
+ - assets/stylesheets/luda/default/collections/_avatar.sass
219
+ - assets/stylesheets/luda/default/collections/_breadcrumb.sass
220
+ - assets/stylesheets/luda/default/collections/_button-group.sass
221
+ - assets/stylesheets/luda/default/collections/_button-icon.sass
222
+ - assets/stylesheets/luda/default/collections/_carousel.sass
223
+ - assets/stylesheets/luda/default/collections/_dropdown.sass
224
+ - assets/stylesheets/luda/default/collections/_form-button.sass
225
+ - assets/stylesheets/luda/default/collections/_form-dropdown.sass
226
+ - assets/stylesheets/luda/default/collections/_form-group.sass
227
+ - assets/stylesheets/luda/default/collections/_form-icon.sass
228
+ - assets/stylesheets/luda/default/collections/_media.sass
229
+ - assets/stylesheets/luda/default/collections/_modal.sass
230
+ - assets/stylesheets/luda/default/collections/_nav.sass
231
+ - assets/stylesheets/luda/default/collections/_tab.sass
232
+ - assets/stylesheets/luda/default/elements/_badge.sass
233
+ - assets/stylesheets/luda/default/elements/_baseline.sass
234
+ - assets/stylesheets/luda/default/elements/_button.sass
235
+ - assets/stylesheets/luda/default/elements/_container.sass
236
+ - assets/stylesheets/luda/default/elements/_form.sass
237
+ - assets/stylesheets/luda/default/elements/_grid.sass
238
+ - assets/stylesheets/luda/default/elements/_icon.sass
239
+ - assets/stylesheets/luda/default/elements/_overlay.sass
240
+ - assets/stylesheets/luda/default/elements/_progress.sass
241
+ - assets/stylesheets/luda/default/elements/_scrollbar.sass
242
+ - assets/stylesheets/luda/default/elements/_table.sass
243
+ - assets/stylesheets/luda/default/elements/_turbolinks-progress-bar.sass
244
+ - assets/stylesheets/luda/default/elements/_typography.sass
245
+ - assets/stylesheets/luda/default/elements/form/_form-check-radio.sass
246
+ - assets/stylesheets/luda/default/elements/form/_form-element.sass
247
+ - assets/stylesheets/luda/default/elements/form/_form-helper.sass
248
+ - assets/stylesheets/luda/default/elements/form/_form-label.sass
249
+ - assets/stylesheets/luda/default/elements/form/_form-range.sass
250
+ - assets/stylesheets/luda/default/elements/form/_form-row.sass
251
+ - assets/stylesheets/luda/default/elements/typography/_code.sass
252
+ - assets/stylesheets/luda/default/elements/typography/_link.sass
253
+ - assets/stylesheets/luda/default/elements/typography/_list.sass
254
+ - assets/stylesheets/luda/default/elements/typography/_mark.sass
255
+ - assets/stylesheets/luda/default/elements/typography/_quote.sass
256
+ - assets/stylesheets/luda/default/elements/typography/_sub-sup.sass
257
+ - assets/stylesheets/luda/default/elements/typography/_typography.sass
258
+ - assets/stylesheets/luda/default/index.sass
259
+ - assets/stylesheets/luda/default/utilities/_align.sass
260
+ - assets/stylesheets/luda/default/utilities/_background.sass
261
+ - assets/stylesheets/luda/default/utilities/_color.sass
262
+ - assets/stylesheets/luda/default/utilities/_display.sass
263
+ - assets/stylesheets/luda/default/utilities/_flex.sass
264
+ - assets/stylesheets/luda/default/utilities/_float.sass
265
+ - assets/stylesheets/luda/default/utilities/_opacity.sass
266
+ - assets/stylesheets/luda/default/utilities/_overflow.sass
267
+ - assets/stylesheets/luda/default/utilities/_position.sass
268
+ - assets/stylesheets/luda/default/utilities/_shape.sass
269
+ - assets/stylesheets/luda/default/utilities/_size.sass
270
+ - assets/stylesheets/luda/default/utilities/_space.sass
271
+ - assets/stylesheets/luda/default/utilities/_text.sass
272
+ - assets/stylesheets/luda/default/utilities/_visibility.sass
273
+ - assets/stylesheets/luda/default/utilities/_z-index.sass
274
+ - lib/luda.rb
275
+ - lib/luda/config.rb
276
+ - lib/luda/engine.rb
277
+ - lib/luda/version.rb
278
+ homepage: https://luda.dev
279
+ licenses:
280
+ - MIT
281
+ metadata: {}
282
+ post_install_message:
283
+ rdoc_options: []
284
+ require_paths:
285
+ - lib
286
+ required_ruby_version: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: 2.0.0
291
+ required_rubygems_version: !ruby/object:Gem::Requirement
292
+ requirements:
293
+ - - ">="
294
+ - !ruby/object:Gem::Version
295
+ version: '0'
296
+ requirements: []
297
+ rubyforge_project:
298
+ rubygems_version: 2.7.6
299
+ signing_key:
300
+ specification_version: 4
301
+ summary: A lightweight and responsive UI framework for modern web development.
302
+ test_files: []