@ulu/frontend 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/ulu-frontend.min.css +1 -0
  4. package/dist/ulu-frontend.min.js +1 -0
  5. package/index.js +2 -0
  6. package/js/deprecated/doc-ready.js +28 -0
  7. package/js/deprecated/jquery-prototypes.js +309 -0
  8. package/js/deprecated/mini-collapsible-popper-positioning.js +126 -0
  9. package/js/deprecated/mini-collapsible.js +607 -0
  10. package/js/deprecated/script-loader.js +60 -0
  11. package/js/events/index.js +42 -0
  12. package/js/helpers/css-breakpoint.js +247 -0
  13. package/js/helpers/file-save.js +48 -0
  14. package/js/helpers/node-data-manager.js +74 -0
  15. package/js/helpers/pause-youtube-video.js +42 -0
  16. package/js/helpers/scrollbar-width-property.js +10 -0
  17. package/js/index.js +15 -0
  18. package/js/polyfills/element-closest.js +17 -0
  19. package/js/ui/flipcard.js +202 -0
  20. package/js/ui/grid.js +67 -0
  21. package/js/ui/modals.js +219 -0
  22. package/js/ui/overflow-scroller-pager.js +58 -0
  23. package/js/ui/overflow-scroller.js +160 -0
  24. package/js/ui/programmatic-modal.js +91 -0
  25. package/js/ui/resizer.js +60 -0
  26. package/js/ui/slider.js +468 -0
  27. package/js/ui/tabs.js +109 -0
  28. package/js/ui/tooltip.js +82 -0
  29. package/js/utils/array.js +28 -0
  30. package/js/utils/dom.js +122 -0
  31. package/js/utils/logger.js +69 -0
  32. package/js/utils/object.js +22 -0
  33. package/js/utils/performance.js +43 -0
  34. package/js/utils/regex.js +10 -0
  35. package/js/utils/string.js +107 -0
  36. package/js/waypoints/README.md +3 -0
  37. package/js/waypoints/anchor-menu.js +76 -0
  38. package/js/waypoints/element-waypoint.js +75 -0
  39. package/js/waypoints/examples/page-link-menu.md +106 -0
  40. package/js/waypoints/state-in-attribute.js +32 -0
  41. package/package.json +38 -0
  42. package/scss/README.md +58 -0
  43. package/scss/_breakpoint.scss +190 -0
  44. package/scss/_button.scss +241 -0
  45. package/scss/_calculate.scss +64 -0
  46. package/scss/_color.scss +211 -0
  47. package/scss/_cssvar.scss +116 -0
  48. package/scss/_element.scss +276 -0
  49. package/scss/_grid.scss +699 -0
  50. package/scss/_index.scss +29 -0
  51. package/scss/_layout.scss +202 -0
  52. package/scss/_path.scss +58 -0
  53. package/scss/_selector.scss +81 -0
  54. package/scss/_typography.scss +320 -0
  55. package/scss/_units.scss +47 -0
  56. package/scss/_utility.scss +12 -0
  57. package/scss/_utils.scss +209 -0
  58. package/scss/base/_color.scss +13 -0
  59. package/scss/base/_elements.scss +188 -0
  60. package/scss/base/_index.scss +62 -0
  61. package/scss/base/_keyframes.scss +78 -0
  62. package/scss/base/_layout.scss +100 -0
  63. package/scss/base/_normalize.scss +315 -0
  64. package/scss/base/_typography.scss +41 -0
  65. package/scss/components/README.md +5 -0
  66. package/scss/components/README.todos +15 -0
  67. package/scss/components/_button.scss +95 -0
  68. package/scss/components/_index.scss +63 -0
  69. package/scss/components/_links.scss +34 -0
  70. package/scss/components/_list-lines.scss +73 -0
  71. package/scss/components/_list-ordered.scss +16 -0
  72. package/scss/components/_list-unordered.scss +21 -0
  73. package/scss/components/_rule.scss +93 -0
  74. package/scss/helpers/_color.scss +14 -0
  75. package/scss/helpers/_display.scss +73 -0
  76. package/scss/helpers/_index.scss +67 -0
  77. package/scss/helpers/_print.scss +58 -0
  78. package/scss/helpers/_typography.scss +80 -0
  79. package/scss/helpers/_units.scss +79 -0
  80. package/scss/helpers/_utilities.scss +102 -0
  81. package/scss/stylesheets/README.md +3 -0
  82. package/scss/stylesheets/full.scss +17 -0
  83. package/trash/js-old/deprecated/doc-ready.js +28 -0
  84. package/trash/js-old/deprecated/jquery-prototypes.js +309 -0
  85. package/trash/js-old/deprecated/mini-collapsible-popper-positioning.js +126 -0
  86. package/trash/js-old/deprecated/mini-collapsible.js +607 -0
  87. package/trash/js-old/deprecated/script-loader.js +60 -0
  88. package/trash/js-old/events/index.js +42 -0
  89. package/trash/js-old/helpers/css-breakpoint.js +247 -0
  90. package/trash/js-old/helpers/file-save.js +48 -0
  91. package/trash/js-old/helpers/node-data-manager.js +74 -0
  92. package/trash/js-old/helpers/pause-youtube-video.js +42 -0
  93. package/trash/js-old/index.js +15 -0
  94. package/trash/js-old/polyfills/element-closest.js +17 -0
  95. package/trash/js-old/ui/flipcard.js +202 -0
  96. package/trash/js-old/ui/grid.js +67 -0
  97. package/trash/js-old/ui/modals.js +219 -0
  98. package/trash/js-old/ui/programmatic-modal.js +91 -0
  99. package/trash/js-old/ui/resizer.js +60 -0
  100. package/trash/js-old/ui/slider.js +469 -0
  101. package/trash/js-old/ui/tabs.js +109 -0
  102. package/trash/js-old/ui/tooltip.js +82 -0
  103. package/trash/js-old/utils/array.js +28 -0
  104. package/trash/js-old/utils/dom.js +122 -0
  105. package/trash/js-old/utils/logger.js +69 -0
  106. package/trash/js-old/utils/object.js +22 -0
  107. package/trash/js-old/utils/performance.js +43 -0
  108. package/trash/js-old/utils/regex.js +10 -0
  109. package/trash/js-old/utils/string.js +107 -0
  110. package/trash/js-old/waypoints/README.md +3 -0
  111. package/trash/js-old/waypoints/anchor-menu.js +76 -0
  112. package/trash/js-old/waypoints/element-waypoint.js +75 -0
  113. package/trash/js-old/waypoints/examples/page-link-menu.md +106 -0
  114. package/trash/js-old/waypoints/state-in-attribute.js +32 -0
  115. package/trash/js-old-230729/deprecated/doc-ready.js +28 -0
  116. package/trash/js-old-230729/deprecated/jquery-prototypes.js +309 -0
  117. package/trash/js-old-230729/deprecated/mini-collapsible-popper-positioning.js +126 -0
  118. package/trash/js-old-230729/deprecated/mini-collapsible.js +607 -0
  119. package/trash/js-old-230729/deprecated/script-loader.js +60 -0
  120. package/trash/js-old-230729/events/index.js +42 -0
  121. package/trash/js-old-230729/helpers/css-breakpoint.js +247 -0
  122. package/trash/js-old-230729/helpers/file-save.js +48 -0
  123. package/trash/js-old-230729/helpers/node-data-manager.js +74 -0
  124. package/trash/js-old-230729/helpers/pause-youtube-video.js +42 -0
  125. package/trash/js-old-230729/helpers/scrollbar-width-property.js +10 -0
  126. package/trash/js-old-230729/index.js +15 -0
  127. package/trash/js-old-230729/polyfills/element-closest.js +17 -0
  128. package/trash/js-old-230729/ui/flipcard.js +202 -0
  129. package/trash/js-old-230729/ui/grid.js +67 -0
  130. package/trash/js-old-230729/ui/modals.js +219 -0
  131. package/trash/js-old-230729/ui/overflow-scroller-pager.js +58 -0
  132. package/trash/js-old-230729/ui/overflow-scroller.js +160 -0
  133. package/trash/js-old-230729/ui/programmatic-modal.js +91 -0
  134. package/trash/js-old-230729/ui/resizer.js +60 -0
  135. package/trash/js-old-230729/ui/slider.js +468 -0
  136. package/trash/js-old-230729/ui/tabs.js +109 -0
  137. package/trash/js-old-230729/ui/tooltip.js +82 -0
  138. package/trash/js-old-230729/utils/array.js +28 -0
  139. package/trash/js-old-230729/utils/dom.js +122 -0
  140. package/trash/js-old-230729/utils/logger.js +69 -0
  141. package/trash/js-old-230729/utils/object.js +22 -0
  142. package/trash/js-old-230729/utils/performance.js +43 -0
  143. package/trash/js-old-230729/utils/regex.js +10 -0
  144. package/trash/js-old-230729/utils/string.js +107 -0
  145. package/trash/js-old-230729/waypoints/README.md +3 -0
  146. package/trash/js-old-230729/waypoints/anchor-menu.js +76 -0
  147. package/trash/js-old-230729/waypoints/element-waypoint.js +75 -0
  148. package/trash/js-old-230729/waypoints/examples/page-link-menu.md +106 -0
  149. package/trash/js-old-230729/waypoints/state-in-attribute.js +32 -0
  150. package/trash/logo-1.svg +13 -0
  151. package/trash/logo.svg +16 -0
  152. package/trash/scss-before-cqc-update/README.md +58 -0
  153. package/trash/scss-before-cqc-update/_breakpoint.scss +190 -0
  154. package/trash/scss-before-cqc-update/_button.scss +229 -0
  155. package/trash/scss-before-cqc-update/_calculate.scss +65 -0
  156. package/trash/scss-before-cqc-update/_color.scss +211 -0
  157. package/trash/scss-before-cqc-update/_cssvar.scss +116 -0
  158. package/trash/scss-before-cqc-update/_element.scss +275 -0
  159. package/trash/scss-before-cqc-update/_index.scss +29 -0
  160. package/trash/scss-before-cqc-update/_layout.scss +247 -0
  161. package/trash/scss-before-cqc-update/_path.scss +59 -0
  162. package/trash/scss-before-cqc-update/_selector.scss +82 -0
  163. package/trash/scss-before-cqc-update/_typography.scss +322 -0
  164. package/trash/scss-before-cqc-update/_units.scss +48 -0
  165. package/trash/scss-before-cqc-update/_utility.scss +13 -0
  166. package/trash/scss-before-cqc-update/_utils.scss +211 -0
  167. package/trash/scss-before-cqc-update/base/_color.scss +14 -0
  168. package/trash/scss-before-cqc-update/base/_elements.scss +189 -0
  169. package/trash/scss-before-cqc-update/base/_index.scss +63 -0
  170. package/trash/scss-before-cqc-update/base/_keyframes.scss +74 -0
  171. package/trash/scss-before-cqc-update/base/_layout.scss +88 -0
  172. package/trash/scss-before-cqc-update/base/_normalize.scss +316 -0
  173. package/trash/scss-before-cqc-update/base/_typography.scss +42 -0
  174. package/trash/scss-before-cqc-update/components/README.md +5 -0
  175. package/trash/scss-before-cqc-update/components/README.todos +15 -0
  176. package/trash/scss-before-cqc-update/components/_button.scss +96 -0
  177. package/trash/scss-before-cqc-update/components/_grid.scss +671 -0
  178. package/trash/scss-before-cqc-update/components/_index.scss +70 -0
  179. package/trash/scss-before-cqc-update/components/_links.scss +35 -0
  180. package/trash/scss-before-cqc-update/components/_list-lines.scss +74 -0
  181. package/trash/scss-before-cqc-update/components/_list-ordered.scss +17 -0
  182. package/trash/scss-before-cqc-update/components/_list-unordered.scss +22 -0
  183. package/trash/scss-before-cqc-update/components/_rule.scss +94 -0
  184. package/trash/scss-before-cqc-update/helpers/_color.scss +15 -0
  185. package/trash/scss-before-cqc-update/helpers/_display.scss +73 -0
  186. package/trash/scss-before-cqc-update/helpers/_index.scss +68 -0
  187. package/trash/scss-before-cqc-update/helpers/_print.scss +59 -0
  188. package/trash/scss-before-cqc-update/helpers/_typography.scss +73 -0
  189. package/trash/scss-before-cqc-update/helpers/_units.scss +79 -0
  190. package/trash/scss-before-cqc-update/helpers/_utilities.scss +88 -0
  191. package/trash/scss-before-cqc-update/stylesheets/README.md +3 -0
  192. package/trash/scss-before-cqc-update/stylesheets/full.scss +17 -0
  193. package/trash/scss-old/README.md +58 -0
  194. package/trash/scss-old/_breakpoint.scss +140 -0
  195. package/trash/scss-old/_button.scss +223 -0
  196. package/trash/scss-old/_calculate.scss +64 -0
  197. package/trash/scss-old/_color.scss +200 -0
  198. package/trash/scss-old/_element.scss +262 -0
  199. package/trash/scss-old/_grid.scss +558 -0
  200. package/trash/scss-old/_index.scss +25 -0
  201. package/trash/scss-old/_layout.scss +170 -0
  202. package/trash/scss-old/_path.scss +58 -0
  203. package/trash/scss-old/_selector.scss +81 -0
  204. package/trash/scss-old/_typography.scss +320 -0
  205. package/trash/scss-old/_units.scss +47 -0
  206. package/trash/scss-old/_utility.scss +12 -0
  207. package/trash/scss-old/_utils.scss +186 -0
  208. package/trash/scss-old/base/_color.scss +13 -0
  209. package/trash/scss-old/base/_elements.scss +183 -0
  210. package/trash/scss-old/base/_index.scss +62 -0
  211. package/trash/scss-old/base/_keyframes.scss +74 -0
  212. package/trash/scss-old/base/_layout.scss +81 -0
  213. package/trash/scss-old/base/_normalize.scss +316 -0
  214. package/trash/scss-old/base/_typography.scss +42 -0
  215. package/trash/scss-old/components/README.md +5 -0
  216. package/trash/scss-old/components/README.todos +15 -0
  217. package/trash/scss-old/components/_button.scss +74 -0
  218. package/trash/scss-old/components/_index.scss +63 -0
  219. package/trash/scss-old/components/_links.scss +34 -0
  220. package/trash/scss-old/components/_list-lines.scss +73 -0
  221. package/trash/scss-old/components/_list-ordered.scss +16 -0
  222. package/trash/scss-old/components/_list-unordered.scss +21 -0
  223. package/trash/scss-old/components/_rule.scss +84 -0
  224. package/trash/scss-old/helpers/_color.scss +14 -0
  225. package/trash/scss-old/helpers/_display.scss +68 -0
  226. package/trash/scss-old/helpers/_index.scss +67 -0
  227. package/trash/scss-old/helpers/_print.scss +59 -0
  228. package/trash/scss-old/helpers/_typography.scss +73 -0
  229. package/trash/scss-old/helpers/_units.scss +68 -0
  230. package/trash/scss-old/helpers/_utilities.scss +82 -0
  231. package/trash/scss-old/packages/README.md +3 -0
  232. package/trash/scss-old/packages/everything.scss +17 -0
  233. package/trash/scss-old-2/README.md +58 -0
  234. package/trash/scss-old-2/_breakpoint.scss +139 -0
  235. package/trash/scss-old-2/_button.scss +223 -0
  236. package/trash/scss-old-2/_calculate.scss +64 -0
  237. package/trash/scss-old-2/_color.scss +202 -0
  238. package/trash/scss-old-2/_element.scss +263 -0
  239. package/trash/scss-old-2/_grid.scss +558 -0
  240. package/trash/scss-old-2/_index.scss +25 -0
  241. package/trash/scss-old-2/_layout.scss +170 -0
  242. package/trash/scss-old-2/_path.scss +58 -0
  243. package/trash/scss-old-2/_selector.scss +81 -0
  244. package/trash/scss-old-2/_typography.scss +320 -0
  245. package/trash/scss-old-2/_units.scss +47 -0
  246. package/trash/scss-old-2/_utility.scss +12 -0
  247. package/trash/scss-old-2/_utils.scss +186 -0
  248. package/trash/scss-old-2/base/_color.scss +13 -0
  249. package/trash/scss-old-2/base/_elements.scss +182 -0
  250. package/trash/scss-old-2/base/_index.scss +62 -0
  251. package/trash/scss-old-2/base/_keyframes.scss +73 -0
  252. package/trash/scss-old-2/base/_layout.scss +83 -0
  253. package/trash/scss-old-2/base/_normalize.scss +315 -0
  254. package/trash/scss-old-2/base/_typography.scss +41 -0
  255. package/trash/scss-old-2/components/README.md +5 -0
  256. package/trash/scss-old-2/components/README.todos +15 -0
  257. package/trash/scss-old-2/components/_button.scss +95 -0
  258. package/trash/scss-old-2/components/_index.scss +63 -0
  259. package/trash/scss-old-2/components/_links.scss +33 -0
  260. package/trash/scss-old-2/components/_list-lines.scss +73 -0
  261. package/trash/scss-old-2/components/_list-ordered.scss +16 -0
  262. package/trash/scss-old-2/components/_list-unordered.scss +21 -0
  263. package/trash/scss-old-2/components/_rule.scss +84 -0
  264. package/trash/scss-old-2/helpers/_color.scss +14 -0
  265. package/trash/scss-old-2/helpers/_display.scss +67 -0
  266. package/trash/scss-old-2/helpers/_index.scss +67 -0
  267. package/trash/scss-old-2/helpers/_print.scss +58 -0
  268. package/trash/scss-old-2/helpers/_typography.scss +72 -0
  269. package/trash/scss-old-2/helpers/_units.scss +68 -0
  270. package/trash/scss-old-2/helpers/_utilities.scss +81 -0
  271. package/trash/scss-old-2/packages/README.md +3 -0
  272. package/trash/scss-old-2/packages/everything.scss +17 -0
  273. package/trash/scss-old-230729/README.md +58 -0
  274. package/trash/scss-old-230729/_breakpoint.scss +139 -0
  275. package/trash/scss-old-230729/_button.scss +223 -0
  276. package/trash/scss-old-230729/_calculate.scss +64 -0
  277. package/trash/scss-old-230729/_color.scss +202 -0
  278. package/trash/scss-old-230729/_element.scss +273 -0
  279. package/trash/scss-old-230729/_grid.scss +694 -0
  280. package/trash/scss-old-230729/_index.scss +25 -0
  281. package/trash/scss-old-230729/_layout.scss +193 -0
  282. package/trash/scss-old-230729/_path.scss +58 -0
  283. package/trash/scss-old-230729/_selector.scss +81 -0
  284. package/trash/scss-old-230729/_typography.scss +320 -0
  285. package/trash/scss-old-230729/_units.scss +47 -0
  286. package/trash/scss-old-230729/_utility.scss +12 -0
  287. package/trash/scss-old-230729/_utils.scss +186 -0
  288. package/trash/scss-old-230729/base/_color.scss +13 -0
  289. package/trash/scss-old-230729/base/_elements.scss +188 -0
  290. package/trash/scss-old-230729/base/_index.scss +62 -0
  291. package/trash/scss-old-230729/base/_keyframes.scss +73 -0
  292. package/trash/scss-old-230729/base/_layout.scss +83 -0
  293. package/trash/scss-old-230729/base/_normalize.scss +315 -0
  294. package/trash/scss-old-230729/base/_typography.scss +41 -0
  295. package/trash/scss-old-230729/components/README.md +5 -0
  296. package/trash/scss-old-230729/components/README.todos +15 -0
  297. package/trash/scss-old-230729/components/_button.scss +95 -0
  298. package/trash/scss-old-230729/components/_index.scss +63 -0
  299. package/trash/scss-old-230729/components/_links.scss +34 -0
  300. package/trash/scss-old-230729/components/_list-lines.scss +73 -0
  301. package/trash/scss-old-230729/components/_list-ordered.scss +16 -0
  302. package/trash/scss-old-230729/components/_list-unordered.scss +21 -0
  303. package/trash/scss-old-230729/components/_rule.scss +93 -0
  304. package/trash/scss-old-230729/helpers/_color.scss +14 -0
  305. package/trash/scss-old-230729/helpers/_display.scss +73 -0
  306. package/trash/scss-old-230729/helpers/_index.scss +67 -0
  307. package/trash/scss-old-230729/helpers/_print.scss +58 -0
  308. package/trash/scss-old-230729/helpers/_typography.scss +72 -0
  309. package/trash/scss-old-230729/helpers/_units.scss +68 -0
  310. package/trash/scss-old-230729/helpers/_utilities.scss +87 -0
  311. package/trash/scss-old-230729/packages/README.md +3 -0
  312. package/trash/scss-old-230729/packages/everything.scss +17 -0
  313. package/trash/vue/directives/background-image-url.js +12 -0
  314. package/trash/vue/helpers/add-required-components.js +14 -0
  315. package/trash/vue/ui/CollapsibleRegion/CollapsibleRegion.vue +277 -0
  316. package/trash/vue/ui/CollapsibleRegion/Demo.vue +101 -0
  317. package/trash/vue/ui/Dropdown/Dropdown.vue +184 -0
  318. package/trash/vue/ui/Modals/components/Modal.vue +49 -0
  319. package/trash/vue/ui/Modals/components/Modals.vue +103 -0
  320. package/trash/vue/ui/Modals/plugin.js +215 -0
  321. package/trash/vue/ui/Modals/readme.note +10 -0
  322. package/trash/vue/ui/Modals/reference/example-usage.vue +27 -0
  323. package/trash/vue/ui/Modals/reference/wcag-example/dialog.js +324 -0
@@ -0,0 +1,93 @@
1
+ ////
2
+ /// @group rule
3
+ ////
4
+
5
+ @use "sass:map";
6
+ @use "../utils";
7
+ @use "../element";
8
+ @use "../color";
9
+ @use "../selector";
10
+
11
+ /// Module Settings
12
+ /// @type Map
13
+ /// @prop {Number} $config.short-width Short rule width (like an inline rule, normally used above headings), Setting this to false will disable output
14
+ /// @prop {Number} $config.short-border-width Short rule width of border
15
+
16
+ $config: (
17
+ "short-width" : 2.75rem,
18
+ "short-border-width" : 4px,
19
+ "short-modifiers" : false
20
+ ) !default;
21
+
22
+ /// Change modules $config
23
+ /// @param {Map} $changes Map of changes
24
+ /// @example scss - General example, replace module-name with module's name
25
+ /// @include module-name.set(( "property" : value ));
26
+
27
+ @mixin set($changes) {
28
+ $config: map.merge($config, $changes) !global;
29
+ }
30
+
31
+ /// Get a config option
32
+ /// @param {Map} $name Name of property
33
+ /// @example scss - General example, replace module-name with module's name
34
+ /// @include module-name.get("property");
35
+
36
+ @function get($name) {
37
+ @return utils.require-map-get($config, $name, "rule [config]");
38
+ }
39
+
40
+ /// Output styles
41
+
42
+ @mixin styles {
43
+
44
+ $class: selector.class("rule");
45
+
46
+ #{ $class } {
47
+ @include element.rule();
48
+ }
49
+ #{ $class }--content-on-top {
50
+ position: relative;
51
+ > * {
52
+ background-color: white; // User woud need to specific per context needed or something
53
+ position: absolute;
54
+ top: 50%;
55
+ left: 50%;
56
+ transform: translate(-50%, -50%);
57
+ max-width: 100%;
58
+ padding: 0.5em;
59
+ margin: 0;
60
+ }
61
+ }
62
+
63
+ // Output user's styles presets
64
+ @each $name, $value in element.$rule-styles {
65
+ #{ $class }--#{ $name } {
66
+ @include element.rule-style($name);
67
+ }
68
+ }
69
+ // Output user's margin presets
70
+ @each $name, $value in element.$rule-margins {
71
+ #{ $class }--margin-#{ $name } {
72
+ @include element.rule-margin($name);
73
+ }
74
+ }
75
+
76
+ // Meant to be user by tself without content
77
+ $short-width: get("short-width");
78
+ @if ($short-width) {
79
+ #{ $class }--short {
80
+ width: $short-width;
81
+ max-width: 100%;
82
+ border-bottom-width: get("short-border-width");
83
+ }
84
+ @if get("short-modifiers") {
85
+ @each $mod, $opts in get("short-modifiers") {
86
+ #{ $class }--short {
87
+ width: map.get($opts, "width");
88
+ border-bottom-width: map.get($opts, "border-width");
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,14 @@
1
+ ////
2
+ /// @group color
3
+ ////
4
+
5
+ @use "../utils";
6
+ @use "../color";
7
+
8
+ /// Prints color-context and color-[name] styles as helper classes (bottom of stylesheet)
9
+
10
+ @mixin styles {
11
+ @include utils.file-header('helpers', 'color');
12
+ @include color.all-context-styles("helper-class");
13
+ @include color.all-color-class-styles();
14
+ }
@@ -0,0 +1,73 @@
1
+ ////
2
+ /// @group display
3
+ ////
4
+
5
+ @use "sass:map";
6
+
7
+ @use "../utils";
8
+ @use "../utility";
9
+ @use "../layout";
10
+ @use "../element";
11
+ @use "../breakpoint";
12
+ @use "../selector";
13
+
14
+ /// Print utilities helper styles
15
+ /// @example scss
16
+ /// @include ulu.helper-display-styles();
17
+
18
+ @mixin styles {
19
+
20
+ @include utils.file-header('helpers', 'display');
21
+
22
+ $hiddenVisuallyPrefix: selector.class("hidden-visually");
23
+
24
+ #{ $hiddenVisuallyPrefix } {
25
+ @include element.hidden-visually();
26
+ }
27
+ #{ $hiddenVisuallyPrefix }-focusable {
28
+ &:not(:active):not(:focus) {
29
+ @include element.hidden-visually();
30
+ }
31
+ }
32
+ // Consider removing
33
+ .clearfix,
34
+ .cf {
35
+ @include layout.clearfix();
36
+ }
37
+ .display-block {
38
+ display: block;
39
+ }
40
+ .display-flex {
41
+ display: flex;
42
+ }
43
+ .display-inline-flex {
44
+ display: inline-flex;
45
+ }
46
+ .display-inline {
47
+ display: inline;
48
+ }
49
+ .display-inline-all * {
50
+ display: inline;
51
+ }
52
+ .display-inline-block {
53
+ display: inline-block;
54
+ }
55
+ .hidden,
56
+ .display-none {
57
+ display: none;
58
+ }
59
+
60
+ // Display none per breakpoint
61
+ @each $name in map.keys(breakpoint.$sizes) {
62
+ @include breakpoint.min($name) {
63
+ .hidden-min-#{ $name } {
64
+ display: none;
65
+ }
66
+ }
67
+ @include breakpoint.max($name) {
68
+ .hidden-max-#{ $name } {
69
+ display: none;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,67 @@
1
+ ////
2
+ /// @group all
3
+ ////
4
+
5
+ @forward "typography" as typography-*;
6
+ @forward "display" as display-*;
7
+ @forward "utilities" as utilities-*;
8
+ @forward "print" as print-*;
9
+ @forward "units" as units-*;
10
+ @forward "color" as color-*;
11
+
12
+ @use "sass:map";
13
+ @use "../utils";
14
+ @use "typography";
15
+ @use "display";
16
+ @use "utilities";
17
+ @use "units";
18
+ @use "print";
19
+ @use "color";
20
+
21
+ // Used to check against user's includes
22
+
23
+ $-all-includes: (
24
+ "typography" : true,
25
+ "units" : true,
26
+ "display" : true,
27
+ "utilities" : true,
28
+ "print" : true,
29
+ "color" : true
30
+ );
31
+
32
+ /// Prints all Helper styles
33
+ /// @name helper-styles
34
+ /// @param {List} $includes AA list of changes to this module's includes
35
+ /// @example scss
36
+ /// @include ulu.helper-styles();
37
+
38
+ @mixin styles($includes: null) {
39
+ @include utils.file-header("helpers");
40
+ @if $includes {
41
+ @include utils.require-list-contains($-all-includes, $includes);
42
+ $-all-includes: map.merge($-all-includes, $includes) !global;
43
+ }
44
+ @if (map.get($-all-includes, "typography")) {
45
+ @include typography.styles;
46
+ }
47
+ @if (map.get($-all-includes, "units")) {
48
+ @include units.styles;
49
+ }
50
+ @if (map.get($-all-includes, "display")) {
51
+ @include display.styles;
52
+ }
53
+ @if (map.get($-all-includes, "utilities")) {
54
+ @include utilities.styles;
55
+ }
56
+ @if (map.get($-all-includes, "print")) {
57
+ @include print.styles;
58
+ }
59
+ @if (map.get($-all-includes, "color")) {
60
+ @include color.styles;
61
+ }
62
+ }
63
+
64
+
65
+
66
+
67
+
@@ -0,0 +1,58 @@
1
+ ////
2
+ /// @group print
3
+ ////
4
+
5
+ /// Printed Media Styles
6
+ /// @example scss
7
+ /// @include ulu.helper-print-styles();
8
+
9
+ @mixin styles {
10
+ // Note: this is an old framework stylesheet (may be outdated)
11
+ @media (print) {
12
+ .no-print {
13
+ display: none;
14
+ }
15
+ * {
16
+ background: transparent !important;
17
+ color: black !important;
18
+ box-shadow: none !important;
19
+ text-shadow: none !important;
20
+ filter: none !important;
21
+ }
22
+
23
+ /* Black prints faster: h5bp.com/s */
24
+ a,
25
+ a:visited {
26
+ text-decoration: underline;
27
+ }
28
+
29
+ /* Don't show links for images, or javascript/internal links */
30
+ pre,
31
+ blockquote {
32
+ border: 1px solid #999;
33
+ page-break-inside: avoid;
34
+ }
35
+
36
+ /*thead {
37
+ display: table-header-group;
38
+ }*/
39
+
40
+ /* h5bp.com/t */
41
+ tr, img {
42
+ page-break-inside: avoid;
43
+ }
44
+ img {
45
+ max-width: 100% !important;
46
+ }
47
+ p,
48
+ h2,
49
+ h3 {
50
+ orphans: 3;
51
+ widows: 3;
52
+ }
53
+ h2,
54
+ h3 {
55
+ page-break-after: avoid;
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,80 @@
1
+ ////
2
+ /// @group typography
3
+ ////
4
+
5
+ @use "sass:map";
6
+ @use "../utils";
7
+ @use "../selector";
8
+ @use "../typography";
9
+
10
+ /// Prints Typography Helper styles
11
+ /// @example scss
12
+ /// @include ulu.helper-typography-styles();
13
+ /// @example raw Example of type size as helper prefixed
14
+ /// <span class="type-large-xxx">A</span>
15
+ /// <span class="type-large-xx">A</span>
16
+ /// <span class="type-large-x">A</span>
17
+ /// <span class="type-large">A</span>
18
+ /// <span class="type-base">A</span>
19
+ /// <span class="type-small">A</span>
20
+ /// <span class="type-small-x">A</span>
21
+
22
+ @mixin styles {
23
+
24
+ @include utils.file-header('helpers', 'typography');
25
+
26
+ $prefix: selector.class("type");
27
+
28
+ @each $size, $values in typography.$sizes {
29
+ @if (map.get($values, "helper-class")) {
30
+ @if (map.get($values, "helper-class-prefixed")) {
31
+ #{ $prefix }-#{$size} {
32
+ @include typography.size($size);
33
+ }
34
+ } @else {
35
+ .#{$size} {
36
+ @include typography.size($size);
37
+ }
38
+ }
39
+ }
40
+ }
41
+ #{ $prefix }-inherit {
42
+ font-size: inherit;
43
+ line-height: inherit;
44
+ }
45
+ #{ $prefix }-light { font-weight: typography.get("font-weight-light"); }
46
+ #{ $prefix }-normal { font-weight: typography.get("font-weight-normal"); }
47
+ #{ $prefix }-semibold { font-weight: typography.get("font-weight-semibold"); }
48
+ #{ $prefix }-bold { font-weight: typography.get("font-weight-bold"); }
49
+ #{ $prefix }-truncate {
50
+ text-overflow: ellipsis;
51
+ overflow: hidden;
52
+ white-space: nowrap;
53
+ }
54
+
55
+ #{ $prefix }-italic { font-style: italic; }
56
+
57
+ #{ $prefix }-center { text-align: center; }
58
+ #{ $prefix }-left { text-align: left; }
59
+ #{ $prefix }-right { text-align: right; }
60
+
61
+ #{ $prefix }-upper {
62
+ text-transform: uppercase;
63
+ letter-spacing: typography.get("letter-spacing-uppercase");
64
+ }
65
+ #{ $prefix }-lower { text-transform: lowercase; }
66
+ #{ $prefix }-title { text-transform: capitalize; }
67
+
68
+ #{ $prefix }-family { font-family: typography.get("font-family"); }
69
+ #{ $prefix }-family-sans { font-family: typography.get("font-family-sans"); }
70
+ #{ $prefix }-family-serif { font-family: typography.get("font-family-serif"); }
71
+ #{ $prefix }-family-mono { font-family: typography.get("font-family-monospace"); }
72
+
73
+ #{ $prefix }-word-break { @include typography.word-break(); }
74
+ #{ $prefix }-word-break-all { @include typography.word-break(true); }
75
+
76
+ #{ $prefix }-max-width { max-width: typography.get("max-width"); }
77
+ #{ $prefix }-max-width-small { max-width: typography.get("max-width-small"); }
78
+ #{ selector.class("line-height") }-dense { line-height: typography.get("line-height-dense"); }
79
+ #{ selector.class("line-height") }-spaced { line-height: typography.get("line-height-spaced"); }
80
+ }
@@ -0,0 +1,79 @@
1
+ ////
2
+ /// @group units
3
+ ////
4
+
5
+ @use "sass:map";
6
+ @use "../units";
7
+ @use "../utils";
8
+ @use "../selector";
9
+
10
+
11
+ /// Module Settings
12
+ /// @type Map
13
+ /// @prop {Number} $config.sides Sides to print for helper classes (ie. reduce output of uneeded sides)
14
+
15
+ $config: (
16
+ "sides": ("top", "bottom", "left", "right")
17
+ ) !default;
18
+
19
+ /// Change modules $config
20
+ /// @param {Map} $changes Map of changes
21
+ /// @example scss - General example, replace module-name with module's name
22
+ /// @include module-name.set(( "property" : value ));
23
+ @mixin set($changes) {
24
+ $config: map.merge($config, $changes) !global;
25
+ }
26
+
27
+ /// Get a config option
28
+ /// @param {Map} $name Name of property
29
+ /// @example scss - General example, replace module-name with module's name
30
+ /// @include module-name.get("property");
31
+
32
+ @function get($name) {
33
+ @return utils.require-map-get($config, $name, "units [config]");
34
+ }
35
+
36
+ /// Prints all unit helper classes
37
+
38
+ @mixin styles {
39
+ @include utils.file-header('helpers', 'leading');
40
+ @include create-property-classes("margin", selector.class("margin"), true);
41
+ @include create-property-classes("padding", selector.class("padding"));
42
+ }
43
+
44
+ /// Creates the unit classes with all variations (from unit presets)
45
+ /// - This can be used by itself if not outputing .styles() or if you wanted to change the default prefixes
46
+ @mixin create-property-classes($property, $prefix, $isMargin: false) {
47
+ // On all sides
48
+ #{ $prefix } {
49
+ #{ $property } : units.get(1);
50
+ }
51
+ @if ($isMargin) {
52
+ #{ $prefix }-auto {
53
+ margin: auto;
54
+ }
55
+ }
56
+
57
+ @each $name, $value in units.$config {
58
+ #{ $prefix }-#{ $name } {
59
+ #{ $property }: units.get($name);
60
+ }
61
+ }
62
+ // Individual sides
63
+ @each $side in get("sides") {
64
+ $full-prop: #{ $property }-#{ $side };
65
+ #{ $prefix }-#{ $side } {
66
+ #{ $full-prop }: units.get(1);
67
+ }
68
+ @if ($isMargin) {
69
+ #{ $prefix }-#{ $side }-auto {
70
+ #{ $full-prop }: auto;
71
+ }
72
+ }
73
+ @each $name, $value in units.$config {
74
+ #{ $prefix }-#{ $side }-#{ $name } {
75
+ #{ $full-prop }: units.get($name);
76
+ }
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,102 @@
1
+ ////
2
+ /// @group utilities
3
+ ////
4
+
5
+ @use "../utils";
6
+ @use "../utility";
7
+ @use "../layout";
8
+
9
+ /// Print utilities helper styles
10
+ /// @example scss
11
+ /// @include ulu.helper-utilities-styles();
12
+
13
+ @mixin styles {
14
+
15
+ @include utils.file-header('helpers', 'utilities');
16
+
17
+ // Consider removing
18
+ .no-scroll-y {
19
+ overflow-y: hidden;
20
+ }
21
+ .no-scroll-x {
22
+ overflow-x: hidden;
23
+ }
24
+ .full-height {
25
+ height: 100%;
26
+ }
27
+ .full-width {
28
+ width: 100%;
29
+ }
30
+ .flex-basis-full {
31
+ flex-basis: 100%;
32
+ }
33
+ .full-min-height {
34
+ min-height: 100%;
35
+ }
36
+ .image-fill {
37
+ width: 100%;
38
+ height: 100%;
39
+ object-fit: cover;
40
+ }
41
+ .image-full-width img,
42
+ .image-full-width {
43
+ width: 100%;
44
+ height: auto;
45
+ }
46
+ .margin-auto,
47
+ .center {
48
+ margin-left: auto;
49
+ margin-right: auto;
50
+ }
51
+ .margin-left-auto {
52
+ margin-left: auto;
53
+ }
54
+ .margin-right-auto {
55
+ margin-right: auto;
56
+ }
57
+ .no-margin {
58
+ margin: 0;
59
+ }
60
+ .no-margin-top {
61
+ margin-top: 0;
62
+ }
63
+ .no-margin-bottom {
64
+ margin-bottom: 0;
65
+ }
66
+ .no-margin-left {
67
+ margin-left: 0;
68
+ }
69
+ .no-margin-right {
70
+ margin-right: 0;
71
+ }
72
+ .no-padding {
73
+ padding: 0;
74
+ }
75
+ .no-padding-top {
76
+ padding-top: 0;
77
+ }
78
+ .no-padding-bottom {
79
+ padding-bottom: 0;
80
+ }
81
+ .no-padding-left {
82
+ padding-left: 0;
83
+ }
84
+ .no-padding-right {
85
+ padding-right: 0;
86
+ }
87
+ .align-self-start {
88
+ align-self: start;
89
+ }
90
+ .align-self-center {
91
+ align-self: center;
92
+ }
93
+ .align-self-end {
94
+ align-self: end;
95
+ }
96
+ .align-self-baseline {
97
+ align-self: baseline;
98
+ }
99
+ // .justify-self-center {
100
+ // justify-self: center;
101
+ // }
102
+ }
@@ -0,0 +1,3 @@
1
+ # About Stylesheets
2
+
3
+ Stylesheets are imports than bring in certain sets of stylesheets or libraries.
@@ -0,0 +1,17 @@
1
+ ////
2
+ /// @group packages
3
+ ////
4
+
5
+ /// Stylesheet includes everything user just imports it
6
+ /// - Note: Not configurable as far as output of styles (use minimal)
7
+
8
+ @forward "../";
9
+
10
+ @use "../base";
11
+ @use "../components";
12
+ @use "../helpers";
13
+
14
+ // Output all stylesheets
15
+ @include base.styles();
16
+ @include components.styles();
17
+ @include helpers.styles();
@@ -0,0 +1,28 @@
1
+ // =============================================================================
2
+ // Doc Ready - Script
3
+ // =============================================================================
4
+
5
+ // Version: 1.0.0
6
+
7
+ // Description: Simple script that will add a property to the window for
8
+ // other scripts to access. Functions will be fired after
9
+ // DomContentLoaded.
10
+
11
+
12
+ (function(d) {
13
+ var callbacks = [],
14
+ fired = false;
15
+
16
+ window.onDocReady = function(callback) {
17
+ if (fired) callback();
18
+ else callbacks.push(callback);
19
+ };
20
+
21
+ d.addEventListener("DOMContentLoaded", function() {
22
+ fired = true;
23
+ for (var i = 0; i < callbacks.length; i++) {
24
+ callbacks[i]();
25
+ }
26
+ });
27
+
28
+ }(document));