@ulu/frontend 0.1.0-beta.3 → 0.1.0-beta.30

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 (242) hide show
  1. package/CHANGELOG.md +205 -1
  2. package/dist/ulu-frontend.min.css +1 -1
  3. package/dist/ulu-frontend.min.js +19 -18
  4. package/docs-dev/assets/main.js +832 -421
  5. package/docs-dev/assets/placeholder/icon-calendar.svg +1 -0
  6. package/docs-dev/assets/placeholder/icon-check.svg +1 -0
  7. package/docs-dev/assets/style.css +629 -233
  8. package/docs-dev/changelog/index.html +5660 -0
  9. package/docs-dev/changelog/updates-and-changes/index.html +5109 -0
  10. package/docs-dev/demos/accordion/index.html +758 -295
  11. package/docs-dev/demos/basic-hero/index.html +111 -0
  12. package/docs-dev/demos/button/index.html +758 -295
  13. package/docs-dev/demos/button-verbose/index.html +5118 -0
  14. package/docs-dev/demos/callout/index.html +783 -307
  15. package/docs-dev/demos/captioned-figure/index.html +758 -295
  16. package/docs-dev/demos/card/index.html +819 -719
  17. package/docs-dev/demos/card-grid/index.html +5241 -0
  18. package/docs-dev/demos/card-new/index.html +5088 -0
  19. package/docs-dev/demos/card-old/index.html +5223 -0
  20. package/docs-dev/demos/card.1/index.html +5223 -0
  21. package/docs-dev/demos/card.TRASH/index.html +5541 -0
  22. package/docs-dev/demos/css-icons/index.html +758 -295
  23. package/docs-dev/demos/data-grid/index.html +866 -483
  24. package/docs-dev/demos/data-table/index.html +783 -320
  25. package/docs-dev/demos/details-group/index.html +5114 -0
  26. package/docs-dev/demos/file-save/index.html +758 -295
  27. package/docs-dev/demos/flipcard/index.html +758 -295
  28. package/docs-dev/demos/form-theme/index.html +776 -326
  29. package/docs-dev/demos/hero/index.html +12 -4
  30. package/docs-dev/demos/image-grid/index.html +12 -4
  31. package/docs-dev/demos/index.html +758 -295
  32. package/docs-dev/demos/list-inline/index.html +5100 -0
  33. package/docs-dev/demos/list-inline.1/index.html +4727 -0
  34. package/docs-dev/demos/list-lines/index.html +5090 -0
  35. package/docs-dev/demos/menu-stack/index.html +777 -314
  36. package/docs-dev/demos/modals/index.html +758 -295
  37. package/docs-dev/demos/nav-strip/index.html +778 -351
  38. package/docs-dev/demos/overlay-section/index.html +758 -295
  39. package/docs-dev/demos/popovers/index.html +860 -299
  40. package/docs-dev/demos/print/index.html +758 -295
  41. package/docs-dev/demos/pull-quote/index.html +758 -295
  42. package/docs-dev/demos/rule/index.html +758 -295
  43. package/docs-dev/demos/scroll-slider/index.html +72 -106
  44. package/docs-dev/demos/scrollpoints/index.html +758 -295
  45. package/docs-dev/demos/slider/index.html +12 -4
  46. package/docs-dev/demos/spoke-spinner/index.html +758 -295
  47. package/docs-dev/demos/sticky-list/index.html +5103 -0
  48. package/docs-dev/demos/tabs/index.html +758 -295
  49. package/docs-dev/demos/tag/index.html +758 -295
  50. package/docs-dev/demos/theme-toggle/index.html +5159 -0
  51. package/docs-dev/demos/tile-grid-overlay/index.html +12 -4
  52. package/docs-dev/demos/tiles/index.html +758 -295
  53. package/docs-dev/demos/tooltip/index.html +758 -295
  54. package/docs-dev/guide/building-stylesheet/index.html +758 -295
  55. package/docs-dev/guide/developing-ulu-scss-module/index.html +758 -295
  56. package/docs-dev/guide/index.html +758 -295
  57. package/docs-dev/guide/updates-and-changes/index.html +5033 -0
  58. package/docs-dev/index.html +758 -295
  59. package/docs-dev/javascript/events/index.html +755 -294
  60. package/docs-dev/javascript/index.html +758 -295
  61. package/docs-dev/javascript/settings/index.html +5214 -0
  62. package/docs-dev/javascript/ui-breakpoints/index.html +755 -294
  63. package/docs-dev/javascript/ui-collapsible/index.html +755 -294
  64. package/docs-dev/javascript/ui-details-group/index.html +5214 -0
  65. package/docs-dev/javascript/ui-dialog/index.html +755 -294
  66. package/docs-dev/javascript/ui-flipcard/index.html +755 -294
  67. package/docs-dev/javascript/ui-grid/index.html +755 -294
  68. package/docs-dev/javascript/ui-modal-builder/index.html +755 -294
  69. package/docs-dev/javascript/ui-overflow-scroller/index.html +755 -294
  70. package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +755 -294
  71. package/docs-dev/javascript/ui-page/index.html +755 -294
  72. package/docs-dev/javascript/ui-popover/index.html +755 -294
  73. package/docs-dev/javascript/ui-print/index.html +755 -294
  74. package/docs-dev/javascript/ui-print-details/index.html +755 -294
  75. package/docs-dev/javascript/ui-programmatic-modal/index.html +755 -294
  76. package/docs-dev/javascript/ui-proxy-click/index.html +755 -294
  77. package/docs-dev/javascript/ui-resizer/index.html +755 -294
  78. package/docs-dev/javascript/ui-scroll-slider/index.html +755 -294
  79. package/docs-dev/javascript/ui-scrollpoint/index.html +755 -294
  80. package/docs-dev/javascript/ui-slider/index.html +755 -294
  81. package/docs-dev/javascript/ui-tabs/index.html +755 -294
  82. package/docs-dev/javascript/ui-theme-toggle/index.html +5298 -0
  83. package/docs-dev/javascript/ui-tooltip/index.html +755 -294
  84. package/docs-dev/javascript/utils-class-logger/index.html +755 -294
  85. package/docs-dev/javascript/utils-dom/index.html +819 -298
  86. package/docs-dev/javascript/utils-file-save/index.html +755 -294
  87. package/docs-dev/javascript/utils-floating-ui/index.html +755 -294
  88. package/docs-dev/javascript/utils-id/index.html +755 -294
  89. package/docs-dev/javascript/utils-pause-youtube-video/index.html +755 -294
  90. package/docs-dev/sass/base/color/index.html +755 -294
  91. package/docs-dev/sass/base/elements/index.html +755 -294
  92. package/docs-dev/sass/base/index/index.html +755 -294
  93. package/docs-dev/sass/base/index.html +758 -295
  94. package/docs-dev/sass/base/keyframes/index.html +755 -294
  95. package/docs-dev/sass/base/layout/index.html +755 -294
  96. package/docs-dev/sass/base/normalize/index.html +755 -294
  97. package/docs-dev/sass/base/print/index.html +755 -294
  98. package/docs-dev/sass/base/root/index.html +755 -294
  99. package/docs-dev/sass/base/typography/index.html +755 -294
  100. package/docs-dev/sass/components/accordion/index.html +761 -300
  101. package/docs-dev/sass/components/adaptive-spacing/index.html +755 -294
  102. package/docs-dev/sass/components/badge/index.html +763 -302
  103. package/docs-dev/sass/components/basic-hero/index.html +5265 -0
  104. package/docs-dev/sass/components/button/index.html +755 -294
  105. package/docs-dev/sass/components/button-verbose/index.html +813 -303
  106. package/docs-dev/sass/components/callout/index.html +780 -355
  107. package/docs-dev/sass/components/captioned-figure/index.html +878 -302
  108. package/docs-dev/sass/components/card/index.html +817 -313
  109. package/docs-dev/sass/components/card-grid/index.html +755 -294
  110. package/docs-dev/sass/components/css-icon/index.html +772 -304
  111. package/docs-dev/sass/components/data-grid/index.html +755 -294
  112. package/docs-dev/sass/components/data-table/index.html +951 -305
  113. package/docs-dev/sass/components/fill-context/index.html +755 -294
  114. package/docs-dev/sass/components/flipcard/index.html +791 -299
  115. package/docs-dev/sass/components/flipcard-grid/index.html +755 -294
  116. package/docs-dev/sass/components/form-theme/index.html +926 -363
  117. package/docs-dev/sass/components/hero/index.html +811 -302
  118. package/docs-dev/sass/components/horizontal-rule/index.html +755 -294
  119. package/docs-dev/sass/components/image-grid/index.html +755 -294
  120. package/docs-dev/sass/components/index/index.html +768 -304
  121. package/docs-dev/sass/components/index.html +758 -295
  122. package/docs-dev/sass/components/links/index.html +755 -294
  123. package/docs-dev/sass/components/list-inline/index.html +5279 -0
  124. package/docs-dev/sass/components/list-lines/index.html +787 -330
  125. package/docs-dev/sass/components/list-ordered/index.html +757 -296
  126. package/docs-dev/sass/components/list-unordered/index.html +755 -294
  127. package/docs-dev/sass/components/menu-stack/index.html +789 -315
  128. package/docs-dev/sass/components/modal/index.html +776 -308
  129. package/docs-dev/sass/components/nav-strip/index.html +767 -306
  130. package/docs-dev/sass/components/overlay-section/index.html +763 -302
  131. package/docs-dev/sass/components/pager/index.html +755 -294
  132. package/docs-dev/sass/components/placeholder-block/index.html +755 -294
  133. package/docs-dev/sass/components/popover/index.html +812 -315
  134. package/docs-dev/sass/components/pull-quote/index.html +767 -306
  135. package/docs-dev/sass/components/ratio-box/index.html +755 -294
  136. package/docs-dev/sass/components/rule/index.html +763 -302
  137. package/docs-dev/sass/components/scroll-slider/index.html +755 -294
  138. package/docs-dev/sass/components/skip-link/index.html +763 -302
  139. package/docs-dev/sass/components/slider/index.html +762 -301
  140. package/docs-dev/sass/components/spoke-spinner/index.html +755 -294
  141. package/docs-dev/sass/components/sticky-list/index.html +5483 -0
  142. package/docs-dev/sass/components/tabs/index.html +764 -303
  143. package/docs-dev/sass/components/tag/index.html +755 -294
  144. package/docs-dev/sass/components/tile-button/index.html +755 -294
  145. package/docs-dev/sass/components/tile-grid/index.html +755 -294
  146. package/docs-dev/sass/components/tile-grid-overlay/index.html +755 -294
  147. package/docs-dev/sass/components/vignette/index.html +769 -302
  148. package/docs-dev/sass/components/wysiwyg/index.html +755 -294
  149. package/docs-dev/sass/core/breakpoint/index.html +755 -294
  150. package/docs-dev/sass/core/button/index.html +755 -294
  151. package/docs-dev/sass/core/color/index.html +793 -325
  152. package/docs-dev/sass/core/cssvar/index.html +755 -294
  153. package/docs-dev/sass/core/element/index.html +755 -294
  154. package/docs-dev/sass/core/index.html +755 -294
  155. package/docs-dev/sass/core/layout/index.html +755 -294
  156. package/docs-dev/sass/core/path/index.html +755 -294
  157. package/docs-dev/sass/core/selector/index.html +755 -294
  158. package/docs-dev/sass/core/typography/index.html +755 -294
  159. package/docs-dev/sass/core/units/index.html +755 -294
  160. package/docs-dev/sass/core/utils/index.html +1481 -382
  161. package/docs-dev/sass/helpers/color/index.html +755 -294
  162. package/docs-dev/sass/helpers/display/index.html +755 -294
  163. package/docs-dev/sass/helpers/index/index.html +755 -294
  164. package/docs-dev/sass/helpers/index.html +758 -295
  165. package/docs-dev/sass/helpers/print/index.html +755 -294
  166. package/docs-dev/sass/helpers/typography/index.html +755 -294
  167. package/docs-dev/sass/helpers/units/index.html +755 -294
  168. package/docs-dev/sass/helpers/utilities/index.html +755 -294
  169. package/docs-dev/sass/index.html +758 -295
  170. package/js/index.js +1 -0
  171. package/js/settings.js +78 -0
  172. package/js/ui/details-group.js +121 -0
  173. package/js/ui/index.js +1 -0
  174. package/js/ui/modal-builder.js +3 -2
  175. package/js/ui/overflow-scroller.js +5 -4
  176. package/js/ui/popover.js +1 -0
  177. package/js/ui/programmatic-modal.js +9 -3
  178. package/js/ui/slider.js +7 -6
  179. package/js/ui/theme-toggle.js +330 -89
  180. package/js/utils/dom.js +43 -1
  181. package/js/utils/font-awesome.js +18 -0
  182. package/js/utils/index.js +2 -1
  183. package/package.json +9 -6
  184. package/scss/_color.scss +9 -2
  185. package/scss/_layout.scss +1 -4
  186. package/scss/_utils.scss +187 -11
  187. package/scss/components/README.todos +14 -0
  188. package/scss/components/_accordion.scss +17 -18
  189. package/scss/components/_badge.scss +3 -2
  190. package/scss/components/_basic-hero.scss +112 -0
  191. package/scss/components/_button-verbose.scss +66 -12
  192. package/scss/components/_callout.scss +43 -54
  193. package/scss/components/_captioned-figure.scss +23 -5
  194. package/scss/components/_card-grid.scss +1 -1
  195. package/scss/components/_card.scss +190 -70
  196. package/scss/components/_css-icon.scss +16 -11
  197. package/scss/components/_data-table.scss +41 -4
  198. package/scss/components/_flipcard.scss +20 -14
  199. package/scss/components/_form-theme.scss +135 -123
  200. package/scss/components/_hero.scss +9 -0
  201. package/scss/components/_index.scss +18 -0
  202. package/scss/components/_list-inline.scss +80 -0
  203. package/scss/components/_list-lines.scss +44 -33
  204. package/scss/components/_list-ordered.scss +0 -1
  205. package/scss/components/_menu-stack.scss +42 -26
  206. package/scss/components/_modal.scss +23 -19
  207. package/scss/components/_nav-strip.scss +25 -16
  208. package/scss/components/_overlay-section.scss +2 -1
  209. package/scss/components/_pager.scss +6 -6
  210. package/scss/components/_placeholder-block.scss +4 -4
  211. package/scss/components/_popover.scss +174 -73
  212. package/scss/components/_pull-quote.scss +12 -12
  213. package/scss/components/_rule.scss +0 -1
  214. package/scss/components/_scroll-slider.scss +1 -1
  215. package/scss/components/_skip-link.scss +2 -1
  216. package/scss/components/_slider.scss +17 -38
  217. package/scss/components/_sticky-list.scss +206 -0
  218. package/scss/components/_tabs.scss +5 -2
  219. package/scss/components/_tag.scss +1 -1
  220. package/scss/components/_vignette.scss +1 -0
  221. package/types/index.d.ts +1 -0
  222. package/types/settings.d.ts +38 -0
  223. package/types/settings.d.ts.map +1 -0
  224. package/types/ui/details-group.d.ts +43 -0
  225. package/types/ui/details-group.d.ts.map +1 -0
  226. package/types/ui/index.d.ts +1 -0
  227. package/types/ui/modal-builder.d.ts +2 -2
  228. package/types/ui/modal-builder.d.ts.map +1 -1
  229. package/types/ui/overflow-scroller.d.ts +2 -2
  230. package/types/ui/overflow-scroller.d.ts.map +1 -1
  231. package/types/ui/popover.d.ts.map +1 -1
  232. package/types/ui/programmatic-modal.d.ts.map +1 -1
  233. package/types/ui/slider.d.ts +2 -2
  234. package/types/ui/slider.d.ts.map +1 -1
  235. package/types/ui/tabs.d.ts.map +1 -1
  236. package/types/ui/theme-toggle.d.ts +58 -7
  237. package/types/ui/theme-toggle.d.ts.map +1 -1
  238. package/types/utils/dom.d.ts +19 -1
  239. package/types/utils/dom.d.ts.map +1 -1
  240. package/types/utils/font-awesome.d.ts +5 -0
  241. package/types/utils/font-awesome.d.ts.map +1 -0
  242. package/types/utils/index.d.ts +1 -0
@@ -17,6 +17,7 @@
17
17
 
18
18
  @use "sass:map";
19
19
  @use "sass:math";
20
+ @use "../color";
20
21
 
21
22
  @use "../utils";
22
23
 
@@ -29,6 +30,7 @@
29
30
  /// @prop {Dimension} size [1.1em] The width, height and font size of the css-icon.
30
31
  /// @prop {Dimension} stroke-border-radius [1px] The rounding of the strokes for css-icon.
31
32
  /// @prop {Dimension} stroke-width [0.15em] The stroke width of the css-icon.
33
+ /// @prop {Dimension} drag-gap-multiplier [0.75] Multiplier used to adjust the space between drag-x/drag-y icons (used for all stroke sizes)
32
34
  /// @prop {Dimension} text-offset [0.05em] When using an icon with text, adds a margin to match the text height.
33
35
  /// @prop {Dimension} text-size [1em] font-size of the icon when using text.
34
36
  /// @prop {Dimension} vertical-align [-0.2em] Vertical-align for css-icon
@@ -44,6 +46,7 @@ $config: (
44
46
  "size" : 1.15em,
45
47
  "stroke-border-radius" : null,
46
48
  "stroke-width" : 3px,
49
+ "drag-gap-multiplier" : 0.75,
47
50
  "text-offset" : 0.05em,
48
51
  "text-size" : 1em,
49
52
  "vertical-align" : -0.25em,
@@ -100,7 +103,7 @@ $config: (
100
103
  /// @include ulu.component-css-icon-styles();
101
104
 
102
105
  @mixin styles {
103
- $border: get("stroke-width") solid get("color");
106
+ $border: get("stroke-width") solid color.get(get("color"));
104
107
  $size: get("size");
105
108
  $stroke-width: get("stroke-width");
106
109
  $half-height: math.div(get("size"), 2);
@@ -130,7 +133,7 @@ $config: (
130
133
  height: $stroke-width;
131
134
  top: 50%;
132
135
  left: 50%;
133
- background-color: get("color");
136
+ background-color: color.get(get("color"));
134
137
  transform: translateX(-50%);
135
138
  margin-top: -($half-stroke-width);
136
139
  border-radius: get("stroke-border-radius");
@@ -158,7 +161,7 @@ $config: (
158
161
  // Solid icons
159
162
  [class*="css-icon--circle"],
160
163
  [class*="css-icon--square"] {
161
- background-color: get("color");
164
+ background-color: color.get(get("color"));
162
165
  }
163
166
  [class*="css-icon--circle"] {
164
167
  border-radius: 50%;
@@ -192,7 +195,7 @@ $config: (
192
195
  font-family: get("font-family");
193
196
  font-weight: bold;
194
197
  margin-top: get("text-offset");
195
- color: get("color");
198
+ color: color.get(get("color"));
196
199
  height: auto;
197
200
  left: 0;
198
201
  right: 0;
@@ -222,7 +225,7 @@ $config: (
222
225
  // Arrow uses same equilateral triangle
223
226
  [class*="css-icon--triangle"],
224
227
  [class*="css-icon--arrow"]::after {
225
- background-color: get("color");
228
+ background-color: color.get(get("color"));
226
229
  clip-path: polygon(10% 10%, 90% 50%, 10% 90%);
227
230
  }
228
231
  [class*="css-icon--arrow"] {
@@ -309,21 +312,23 @@ $config: (
309
312
  &::before {
310
313
  content: "";
311
314
  // Make up for margin-top by default
312
- margin-top: -($stroke-width + $stroke-width);
315
+ margin-top: -(($stroke-width + $stroke-width) * get("drag-gap-multiplier"));
313
316
  }
314
317
  &::after {
315
318
  content: "";
316
- margin-top: $stroke-width;
319
+ margin-top: $stroke-width * get("drag-gap-multiplier");
317
320
  }
318
321
  }
319
322
 
320
323
  @include for-each-stroke() using ($alt-width, $alt-border-radius) {
324
+ // $drag-gap-multiplier: map.get($props, "drag-gap-multiplier");
325
+ // $drag-gap-multiplier: if($drag-gap-multiplier, $drag-gap-multiplier, 0);
321
326
  &[class*="css-icon--drag"] {
322
327
  &::before {
323
- margin-top: -($alt-width + $alt-width);
328
+ margin-top: -(($alt-width + $alt-width) * get("drag-gap-multiplier"));
324
329
  }
325
330
  &::after {
326
- margin-top: $alt-width;
331
+ margin-top: $alt-width * get("drag-gap-multiplier");
327
332
  }
328
333
  }
329
334
  }
@@ -344,7 +349,7 @@ $config: (
344
349
  margin-top: 0;
345
350
  }
346
351
  &::before {
347
- box-shadow: 0px ($stroke-width * 2 + 1px) get("color");
352
+ box-shadow: 0px ($stroke-width * 2 + 1px) color.get(get("color"));
348
353
  margin-bottom: ($stroke-width * 3) + 2px;
349
354
  }
350
355
  }
@@ -352,7 +357,7 @@ $config: (
352
357
  &.css-icon--menu,
353
358
  &.css-icon--menu-to-close {
354
359
  &::before {
355
- box-shadow: 0px ($alt-width * 2 + 1px) get("color");
360
+ box-shadow: 0px ($alt-width * 2 + 1px) color.get(get("color"));
356
361
  margin-bottom: ($alt-width * 3) + 2px;
357
362
  }
358
363
  }
@@ -24,16 +24,45 @@ $-fallbacks: (
24
24
 
25
25
  /// Module Settings
26
26
  /// @type Map
27
+ /// @prop {Dimension} cell-padding [(0.5em,)] Padding of the th and td elements.
28
+ /// @prop {CssValue} text-align [left] Text align of the table.
29
+ /// @prop {String} type-size ["small"] Font size of the table.
30
+ /// @prop {Color} background-color [white] Background color of table container.
31
+ /// @prop {Color} header-background-color [#f5f4f4] Background color of the the table header.
32
+ /// @prop {Color} body-background-color [white] Background color of table body.
33
+ /// @prop {Color} footer-background-color [#f3f3f3] Background color of table footer.
34
+ /// @prop {Color} color ["type-secondary"] Font color of the table.
35
+ /// @prop {Color} header-color ["headline"] Font color for the table header.
36
+ /// @prop {Number} line-height [true] Line height for the table.
37
+ /// @prop {Dimension} column-min-width [6em] Min-width of the th element.
38
+ /// @prop {Dimension} first-column-large-min-width [15em] When using "--large-first" style, the min width of the first th element.
39
+ /// @prop {Dimension} border-width [1px] Border width of the table.
40
+ /// @prop {Color} border-color [#dddddd] Border color for the table.
41
+ /// @prop {Color} striped-row-background-color [#eeeeee] Background color for even rows if using "--striped" styling.
42
+ /// @prop {Color} muted-row-background-color [#ccc] Background color for odd rows if using "--striped" styling.
43
+ /// @prop {Color} muted-row-border-color [null] Border color for odd rows if using "--striped" styling.
44
+ /// @prop {Color} highlighted-row-background-color [#ccc] Background color row if using "__row-highlighted" styling.
45
+ /// @prop {Color} highlighted-row-border-color [null] Border color row if using "__row-highlighted" styling.
46
+ /// @prop {Dimension} large-header-cell-padding-y [1em] Vertical padding of header if using "--large-header" styling.
47
+ /// @prop {String} caption-type-size ["large"] Type size of table caption.
48
+ /// @prop {Color} caption-background-color [null] Background color of table caption.
49
+ /// @prop {CssValue} caption-font-weight [bold] Font weight of caption.
50
+ /// @prop {CssBalue} caption-border-bottom [null] Bottom border of the caption.
51
+ /// @prop {Dimension} caption-margin [(0,)] Margin of the caption.
52
+ /// @prop {Dimension} caption-padding [(0.65em 0)] Padding of the caption.
53
+ /// @prop {CssValue} caption-text-align [left] Text align of the caption.
54
+ /// @prop {String} extra-selector [".wysiwyg table"] Additional selectors to include table styling.
27
55
 
28
56
  $config: (
29
57
  "cell-padding" : (0.5em,),
30
58
  "text-align" : left,
31
59
  "type-size" : "small",
32
60
  "background-color" : white,
33
- "header-background-color" : #eeeeee,
61
+ "header-background-color" : #f5f4f4,
34
62
  "body-background-color" : white,
35
63
  "footer-background-color" : #f3f3f3,
36
64
  "color" : "type-secondary",
65
+ "header-color" : "headline",
37
66
  "line-height" : true,
38
67
  "column-min-width" : 6em,
39
68
  "first-column-large-min-width" : 15em,
@@ -46,9 +75,12 @@ $config: (
46
75
  "highlighted-row-border-color" : null,
47
76
  "large-header-cell-padding-y" : 1em,
48
77
  "caption-type-size" : "large",
78
+ "caption-background-color" : null,
49
79
  "caption-font-weight" : bold,
50
- "caption-margin" : (0 0 1em 0),
51
- "caption-padding" : (0,),
80
+ "caption-border-bottom" : null,
81
+ "caption-margin" : (0,),
82
+ "caption-padding" : (0.65em 0),
83
+ "caption-text-align" : left,
52
84
  "extra-selector" : ".wysiwyg table"
53
85
  ) !default;
54
86
 
@@ -107,9 +139,11 @@ $config: (
107
139
  @include typography.size(get("caption-type-size"));
108
140
  }
109
141
  font-weight: get("caption-font-weight");
110
- text-align: left;
142
+ text-align: get("caption-text-align");
111
143
  margin: get("caption-margin");
112
144
  padding: get("caption-padding");
145
+ background-color: get("caption-background-color");
146
+ border-bottom: get("caption-border-bottom");
113
147
  }
114
148
  th,
115
149
  tr,
@@ -133,6 +167,9 @@ $config: (
133
167
  thead tr {
134
168
  background-color: color.get(get("header-background-color"));
135
169
  }
170
+ thead th {
171
+ color: color.get(get("header-color"));
172
+ }
136
173
  tbody tr {
137
174
  background-color: color.get(get("body-background-color"));
138
175
  }
@@ -2,9 +2,10 @@
2
2
  ////
3
3
  /// @group flipcard
4
4
  ////
5
- /// Creates adaptive (changing at breakpoints)n between items (vertical/horizontal layout)
5
+ /// Flipcard (content revealed on backside of card after click)
6
6
 
7
7
  @use "sass:map";
8
+ @use "../color";
8
9
  @use "../utils";
9
10
  @use "../selector";
10
11
 
@@ -31,7 +32,6 @@
31
32
  /// @prop {Color} title-color-image-hover [blue] Color of the front page text when using an image and hovered or focused.
32
33
  /// @prop {Boolean} bottom-shadow [true] Boolean that enables a bottom shadow to the image flipcard.
33
34
 
34
-
35
35
  $config: (
36
36
  "anim-delay" : 200ms,
37
37
  "anim-duration" : 430ms,
@@ -85,19 +85,25 @@ $config: (
85
85
  @return utils.require-map-get($config, $name, "flipcard [config]");
86
86
  }
87
87
 
88
+ /// Prints component styles
89
+ /// @demo flipcard
90
+ /// @example scss
91
+ /// @example
92
+ /// @include ulu.component-flipcard-styles();
93
+
88
94
  @mixin styles {
89
95
  $prefix: selector.class("flipcard");
90
96
 
91
97
  #{ $prefix } {
92
98
  height: 100%;
93
- background-color: get("background-color");
99
+ background-color: color.get(get("background-color"));
94
100
  line-height: 1.4;
95
101
  overflow: hidden;
96
102
  position: relative;
97
103
  border: get("border");
98
104
  border-radius: get("border-radius");
99
105
  &#{ $prefix }:hover {
100
- border-color: get("border-color-hover");
106
+ border-color: color.get(get("border-color-hover"));
101
107
  }
102
108
  #{ $prefix }__control-button:focus {
103
109
  border: get("control-button-border-focus");
@@ -123,10 +129,10 @@ $config: (
123
129
  transform: scale(1.15);
124
130
  }
125
131
  #{ $prefix }__front-content {
126
- color: get("title-color-hover");
132
+ color: color.get(get("title-color-hover"));
127
133
  }
128
134
  #{ $prefix }__icon {
129
- color: get("icon-color-hover");
135
+ color: color.get(get("icon-color-hover"));
130
136
  }
131
137
  }
132
138
  @media (prefers-reduced-motion: no-preference) {
@@ -140,14 +146,14 @@ $config: (
140
146
  }
141
147
  }
142
148
  #{ $prefix }--w-image {
143
- background-color: get("background-color-image");
149
+ background-color: color.get(get("background-color-image"));
144
150
 
145
151
  &:hover {
146
152
  #{ $prefix }__front-content {
147
- color: get("title-color-image-hover");
153
+ color: color.get(get("title-color-image-hover"));
148
154
  }
149
155
  #{ $prefix }__icon {
150
- color: get("icon-color-image-hover");
156
+ color: color.get(get("icon-color-image-hover"));
151
157
  }
152
158
  }
153
159
  }
@@ -168,7 +174,7 @@ $config: (
168
174
  }
169
175
  }
170
176
  #{ $prefix }__icon {
171
- color: get('icon-color');
177
+ color: color.get(get('icon-color'));
172
178
  display: block;
173
179
  margin-top: 0.5rem;
174
180
  }
@@ -177,7 +183,7 @@ $config: (
177
183
  display: flex;
178
184
  flex-direction: column;
179
185
  justify-content: flex-end;
180
- color: get("title-color");
186
+ color: color.get(get("title-color"));
181
187
  position: relative;
182
188
  z-index: 2;
183
189
  padding: get('padding');
@@ -186,10 +192,10 @@ $config: (
186
192
  }
187
193
  #{ $prefix }--w-image {
188
194
  #{ $prefix }__icon {
189
- color: get("icon-color-image");
195
+ color: color.get(get("icon-color-image"));
190
196
  }
191
197
  #{ $prefix }__front-content {
192
- color: get("title-color-image");
198
+ color: color.get(get("title-color-image"));
193
199
  @if(get("bottom-shadow")) {
194
200
  // bottom position includes padding so that the shadow
195
201
  &:after {
@@ -207,7 +213,7 @@ $config: (
207
213
  }
208
214
  }
209
215
  #{ $prefix }__back {
210
- background-color: get("background-color-back");
216
+ background-color: color.get(get("background-color-back"));
211
217
  padding: get('padding');
212
218
  justify-content: flex-end;
213
219
  [data-flipcard-state="open"] & {