@ulu/frontend 0.1.0-beta.9 → 0.1.0-beta.90
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.
- package/CHANGELOG.md +606 -0
- package/README.dev.md +3 -3
- package/README.md +14 -4
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +36 -29
- package/docs-dev/.nojekyll +1 -0
- package/docs-dev/assets/main.js +8290 -635
- package/docs-dev/assets/placeholder/icon-calendar.svg +1 -0
- package/docs-dev/assets/placeholder/icon-check.svg +1 -0
- package/docs-dev/assets/style.css +789 -338
- package/docs-dev/changelog/index.html +6985 -0
- package/docs-dev/demos/accordion/index.html +1126 -334
- package/docs-dev/demos/badge/index.html +5535 -0
- package/docs-dev/demos/basic-hero/index.html +111 -0
- package/docs-dev/demos/breakpoints-manager/index.html +5546 -0
- package/docs-dev/demos/button/index.html +1172 -338
- package/docs-dev/demos/button-group/index.html +5532 -0
- package/docs-dev/demos/button-verbose/index.html +5538 -0
- package/docs-dev/demos/callout/index.html +1177 -344
- package/docs-dev/demos/captioned-figure/index.html +1120 -327
- package/docs-dev/demos/card/index.html +1186 -754
- package/docs-dev/demos/card-grid/index.html +5657 -0
- package/docs-dev/demos/counter-list/index.html +5540 -0
- package/docs-dev/demos/css-icons/index.html +1148 -332
- package/docs-dev/demos/data-grid/index.html +1120 -327
- package/docs-dev/demos/data-table/index.html +1298 -372
- package/docs-dev/demos/details-group/index.html +5567 -0
- package/docs-dev/demos/file-save/index.html +1120 -327
- package/docs-dev/demos/flipcard/index.html +1120 -327
- package/docs-dev/demos/form-theme/index.html +1144 -364
- package/docs-dev/demos/headline-label/index.html +5502 -0
- package/docs-dev/demos/hero/index.html +12 -4
- package/docs-dev/demos/image-grid/index.html +12 -4
- package/docs-dev/demos/index.html +1121 -328
- package/docs-dev/demos/list-inline/index.html +1120 -327
- package/docs-dev/demos/list-lines/index.html +1120 -327
- package/docs-dev/demos/menu-stack/index.html +1159 -351
- package/docs-dev/demos/modals/index.html +1259 -343
- package/docs-dev/demos/nav-strip/index.html +1120 -327
- package/docs-dev/demos/overlay-section/index.html +1205 -342
- package/docs-dev/demos/panel/index.html +5562 -0
- package/docs-dev/demos/popovers/index.html +1368 -333
- package/docs-dev/demos/print/index.html +1120 -327
- package/docs-dev/demos/pull-quote/index.html +1120 -327
- package/docs-dev/demos/rail/index.html +5598 -0
- package/docs-dev/demos/rule/index.html +1137 -332
- package/docs-dev/demos/scroll-slider/index.html +72 -106
- package/docs-dev/demos/scrollpoints/index.html +1121 -328
- package/docs-dev/demos/slider/index.html +12 -4
- package/docs-dev/demos/spoke-spinner/index.html +1120 -327
- package/docs-dev/demos/{list-inline.1 → sticky-list}/index.html +1159 -363
- package/docs-dev/demos/tabs/index.html +1156 -327
- package/docs-dev/demos/tag/index.html +1120 -327
- package/docs-dev/demos/theme-toggle/index.html +5579 -0
- package/docs-dev/demos/tile-grid-overlay/index.html +12 -4
- package/docs-dev/demos/tiles/index.html +1120 -327
- package/docs-dev/demos/tooltip/index.html +1120 -327
- package/docs-dev/demos/wysiwyg/index.html +5552 -0
- package/docs-dev/guide/building-stylesheet/index.html +1120 -327
- package/docs-dev/guide/developing-ulu-scss-module/index.html +1120 -327
- package/docs-dev/guide/index.html +1120 -327
- package/docs-dev/index.html +1120 -327
- package/docs-dev/javascript/events/index.html +1158 -327
- package/docs-dev/javascript/index.html +1120 -327
- package/docs-dev/javascript/settings/index.html +5705 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +1134 -343
- package/docs-dev/javascript/ui-collapsible/index.html +1119 -328
- package/docs-dev/javascript/ui-details-group/index.html +5622 -0
- package/docs-dev/javascript/ui-dialog/index.html +1151 -345
- package/docs-dev/javascript/ui-flipcard/index.html +1180 -333
- package/docs-dev/javascript/ui-grid/index.html +1130 -365
- package/docs-dev/javascript/ui-modal-builder/index.html +1303 -372
- package/docs-dev/javascript/ui-overflow-scroller/index.html +1119 -328
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +1119 -328
- package/docs-dev/javascript/ui-page/index.html +1119 -328
- package/docs-dev/javascript/ui-popover/index.html +1129 -342
- package/docs-dev/javascript/ui-print/index.html +1117 -334
- package/docs-dev/javascript/ui-print-details/index.html +1119 -328
- package/docs-dev/javascript/ui-programmatic-modal/index.html +1119 -328
- package/docs-dev/javascript/ui-proxy-click/index.html +1208 -332
- package/docs-dev/javascript/ui-resizer/index.html +1400 -344
- package/docs-dev/javascript/ui-scroll-slider/index.html +1159 -336
- package/docs-dev/javascript/ui-scrollpoint/index.html +1129 -345
- package/docs-dev/javascript/ui-slider/index.html +1317 -335
- package/docs-dev/javascript/ui-tabs/index.html +1138 -384
- package/docs-dev/javascript/ui-theme-toggle/index.html +5710 -0
- package/docs-dev/javascript/ui-tooltip/index.html +1136 -349
- package/docs-dev/javascript/utils-class-logger/index.html +1120 -329
- package/docs-dev/javascript/utils-css/index.html +5524 -0
- package/docs-dev/javascript/utils-dom/index.html +1153 -442
- package/docs-dev/javascript/utils-file-save/index.html +1119 -328
- package/docs-dev/javascript/utils-floating-ui/index.html +1119 -328
- package/docs-dev/javascript/utils-id/index.html +1119 -328
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +1119 -328
- package/docs-dev/javascript/utils-system/index.html +5827 -0
- package/docs-dev/sass/base/color/index.html +1119 -328
- package/docs-dev/sass/base/elements/index.html +1127 -336
- package/docs-dev/sass/base/index/index.html +1119 -328
- package/docs-dev/sass/base/index.html +1120 -327
- package/docs-dev/sass/base/keyframes/index.html +1120 -329
- package/docs-dev/sass/base/layout/index.html +1119 -328
- package/docs-dev/sass/base/normalize/index.html +1119 -328
- package/docs-dev/sass/base/print/index.html +1119 -328
- package/docs-dev/sass/base/root/index.html +1119 -328
- package/docs-dev/sass/base/typography/index.html +1119 -328
- package/docs-dev/sass/components/accordion/index.html +1142 -344
- package/docs-dev/sass/components/adaptive-spacing/index.html +1119 -328
- package/docs-dev/sass/components/badge/index.html +1145 -343
- package/docs-dev/sass/components/basic-hero/index.html +5685 -0
- package/docs-dev/sass/components/button/index.html +1119 -328
- package/docs-dev/sass/components/button-group/index.html +5683 -0
- package/docs-dev/sass/components/button-verbose/index.html +1205 -339
- package/docs-dev/sass/components/callout/index.html +1224 -414
- package/docs-dev/sass/components/captioned-figure/index.html +1243 -337
- package/docs-dev/sass/components/card/index.html +1215 -352
- package/docs-dev/sass/components/card-grid/index.html +1119 -328
- package/docs-dev/sass/components/counter-list/index.html +5767 -0
- package/docs-dev/sass/components/css-icon/index.html +1140 -342
- package/docs-dev/sass/components/data-grid/index.html +1139 -341
- package/docs-dev/sass/components/data-table/index.html +1327 -346
- package/docs-dev/sass/components/fill-context/index.html +1119 -328
- package/docs-dev/sass/components/flipcard/index.html +1161 -339
- package/docs-dev/sass/components/flipcard-grid/index.html +1119 -328
- package/docs-dev/sass/components/form-theme/index.html +1334 -447
- package/docs-dev/sass/components/headline-label/index.html +5713 -0
- package/docs-dev/sass/components/hero/index.html +1179 -340
- package/docs-dev/sass/components/horizontal-rule/index.html +1119 -328
- package/docs-dev/sass/components/image-grid/index.html +1119 -328
- package/docs-dev/sass/components/index/index.html +1136 -338
- package/docs-dev/sass/components/index.html +1120 -327
- package/docs-dev/sass/components/links/index.html +1119 -328
- package/docs-dev/sass/components/list-inline/index.html +1119 -328
- package/docs-dev/sass/components/list-lines/index.html +1119 -328
- package/docs-dev/sass/components/list-ordered/index.html +1119 -328
- package/docs-dev/sass/components/list-unordered/index.html +1119 -328
- package/docs-dev/sass/components/menu-stack/index.html +1156 -352
- package/docs-dev/sass/components/modal/index.html +1173 -347
- package/docs-dev/sass/components/nav-strip/index.html +1127 -336
- package/docs-dev/sass/components/overlay-section/index.html +1127 -336
- package/docs-dev/sass/components/pager/index.html +1119 -328
- package/docs-dev/sass/components/panel/index.html +5913 -0
- package/docs-dev/sass/components/placeholder-block/index.html +1119 -328
- package/docs-dev/sass/components/popover/index.html +1179 -352
- package/docs-dev/sass/components/pull-quote/index.html +1131 -340
- package/docs-dev/sass/components/rail/index.html +5700 -0
- package/docs-dev/sass/components/ratio-box/index.html +1127 -336
- package/docs-dev/sass/components/rule/index.html +1120 -329
- package/docs-dev/sass/components/scroll-slider/index.html +1129 -350
- package/docs-dev/sass/components/skip-link/index.html +1119 -328
- package/docs-dev/sass/components/slider/index.html +1173 -394
- package/docs-dev/sass/components/spoke-spinner/index.html +1121 -330
- package/docs-dev/sass/components/sticky-list/index.html +5903 -0
- package/docs-dev/sass/components/table-sticky/index.html +5677 -0
- package/docs-dev/sass/components/tabs/index.html +1154 -348
- package/docs-dev/sass/components/tag/index.html +1121 -330
- package/docs-dev/sass/components/tile-button/index.html +1119 -328
- package/docs-dev/sass/components/tile-grid/index.html +1119 -328
- package/docs-dev/sass/components/tile-grid-overlay/index.html +1119 -328
- package/docs-dev/sass/components/vignette/index.html +1131 -334
- package/docs-dev/sass/components/wysiwyg/index.html +1159 -350
- package/docs-dev/sass/core/breakpoint/index.html +1212 -369
- package/docs-dev/sass/core/button/index.html +1151 -358
- package/docs-dev/sass/core/color/index.html +1291 -368
- package/docs-dev/sass/core/cssvar/index.html +1119 -328
- package/docs-dev/sass/core/element/index.html +1440 -367
- package/docs-dev/sass/core/index.html +1119 -328
- package/docs-dev/sass/core/layout/index.html +1173 -363
- package/docs-dev/sass/core/path/index.html +1119 -328
- package/docs-dev/sass/core/selector/index.html +1119 -328
- package/docs-dev/sass/core/typography/index.html +1119 -328
- package/docs-dev/sass/core/units/index.html +1127 -330
- package/docs-dev/sass/core/utils/index.html +2389 -449
- package/docs-dev/sass/helpers/color/index.html +1119 -328
- package/docs-dev/sass/helpers/display/index.html +1120 -329
- package/docs-dev/sass/helpers/index/index.html +1119 -328
- package/docs-dev/sass/helpers/index.html +1120 -327
- package/docs-dev/sass/helpers/print/index.html +759 -298
- package/docs-dev/sass/helpers/typography/index.html +1119 -328
- package/docs-dev/sass/helpers/units/index.html +1119 -328
- package/docs-dev/sass/helpers/utilities/index.html +1121 -330
- package/docs-dev/sass/index.html +1120 -327
- package/js/events/index.js +17 -5
- package/js/index.js +1 -0
- package/js/settings.js +97 -0
- package/js/ui/breakpoints.js +19 -16
- package/js/ui/collapsible.js +8 -1
- package/js/ui/details-group.js +112 -0
- package/js/ui/dialog.js +103 -44
- package/js/ui/dialog.todo +2 -36
- package/js/ui/flipcard.js +37 -57
- package/js/ui/grid.js +15 -13
- package/js/ui/index.js +1 -0
- package/js/ui/modal-builder.js +127 -70
- package/js/ui/overflow-scroller.js +6 -4
- package/js/ui/page.js +2 -2
- package/js/ui/popover.js +38 -38
- package/js/ui/print.js +16 -25
- package/js/ui/programmatic-modal.js +9 -3
- package/js/ui/proxy-click.js +50 -36
- package/js/ui/resizer.js +408 -39
- package/js/ui/scroll-slider.js +24 -30
- package/js/ui/scrollpoint.js +29 -64
- package/js/ui/slider.js +108 -63
- package/js/ui/tabs.js +23 -36
- package/js/ui/theme-toggle.js +332 -94
- package/js/ui/tooltip.js +27 -32
- package/js/utils/class-logger.js +3 -3
- package/js/utils/css.js +13 -0
- package/js/utils/dom.js +23 -64
- package/js/utils/font-awesome.js +19 -0
- package/js/utils/index.js +2 -1
- package/js/utils/system.js +155 -0
- package/package.json +23 -8
- package/scss/README.md +4 -0
- package/scss/_breakpoint.scss +39 -5
- package/scss/_button.scss +7 -5
- package/scss/_color.scss +40 -9
- package/scss/_element.scss +124 -2
- package/scss/_layout.scss +7 -8
- package/scss/_units.scss +3 -2
- package/scss/_utils.scss +387 -16
- package/scss/base/_elements.scss +0 -1
- package/scss/base/_keyframes.scss +10 -0
- package/scss/base/_layout.scss +1 -0
- package/scss/base/_print.scss +2 -0
- package/scss/base/_root.scss +2 -0
- package/scss/components/README.todos +14 -0
- package/scss/components/_accordion.scss +33 -19
- package/scss/components/_badge.scss +23 -4
- package/scss/components/_basic-hero.scss +112 -0
- package/scss/components/_button-group.scss +90 -0
- package/scss/components/_button-verbose.scss +100 -18
- package/scss/components/_callout.scss +125 -78
- package/scss/components/_captioned-figure.scss +17 -0
- package/scss/components/_card-grid.scss +1 -1
- package/scss/components/_card.scss +228 -66
- package/scss/components/_counter-list.scss +151 -0
- package/scss/components/_css-icon.scss +35 -21
- package/scss/components/_data-grid.scss +55 -12
- package/scss/components/_data-table.scss +39 -3
- package/scss/components/_flipcard.scss +8 -3
- package/scss/components/_form-theme.scss +119 -108
- package/scss/components/_headline-label.scss +83 -0
- package/scss/components/_hero.scss +12 -10
- package/scss/components/_index.scss +42 -0
- package/scss/components/_menu-stack.scss +42 -26
- package/scss/components/_modal.scss +58 -29
- package/scss/components/_nav-strip.scss +2 -0
- package/scss/components/_overlay-section.scss +2 -5
- package/scss/components/_panel.scss +246 -0
- package/scss/components/_popover.scss +165 -64
- package/scss/components/_pull-quote.scss +13 -13
- package/scss/components/_rail.scss +120 -0
- package/scss/components/_ratio-box.scss +2 -5
- package/scss/components/_rule.scss +1 -0
- package/scss/components/_scroll-slider.scss +1 -5
- package/scss/components/_slider.scss +49 -72
- package/scss/components/_spoke-spinner.scss +2 -2
- package/scss/components/_sticky-list.scss +206 -0
- package/scss/components/_tabs.scss +22 -4
- package/scss/components/_vignette.scss +3 -5
- package/scss/components/_wysiwyg.scss +21 -13
- package/scss/helpers/_display.scss +15 -18
- package/scss/helpers/_print.scss +12 -7
- package/scss/helpers/_utilities.scss +42 -32
- package/types/events/index.d.ts +10 -1
- package/types/events/index.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/settings.d.ts +70 -0
- package/types/settings.d.ts.map +1 -0
- package/types/ui/breakpoints.d.ts +14 -14
- package/types/ui/breakpoints.d.ts.map +1 -1
- package/types/ui/collapsible.d.ts.map +1 -1
- package/types/ui/details-group.d.ts +38 -0
- package/types/ui/details-group.d.ts.map +1 -0
- package/types/ui/dialog.d.ts +20 -14
- package/types/ui/dialog.d.ts.map +1 -1
- package/types/ui/flipcard.d.ts +16 -10
- package/types/ui/flipcard.d.ts.map +1 -1
- package/types/ui/grid.d.ts +4 -6
- package/types/ui/grid.d.ts.map +1 -1
- package/types/ui/index.d.ts +2 -1
- package/types/ui/modal-builder.d.ts +116 -11
- package/types/ui/modal-builder.d.ts.map +1 -1
- package/types/ui/overflow-scroller.d.ts +2 -2
- package/types/ui/overflow-scroller.d.ts.map +1 -1
- package/types/ui/popover.d.ts +6 -7
- package/types/ui/popover.d.ts.map +1 -1
- package/types/ui/print.d.ts +0 -4
- package/types/ui/print.d.ts.map +1 -1
- package/types/ui/programmatic-modal.d.ts.map +1 -1
- package/types/ui/proxy-click.d.ts +19 -3
- package/types/ui/proxy-click.d.ts.map +1 -1
- package/types/ui/resizer.d.ts +116 -16
- package/types/ui/resizer.d.ts.map +1 -1
- package/types/ui/scroll-slider.d.ts +5 -7
- package/types/ui/scroll-slider.d.ts.map +1 -1
- package/types/ui/scrollpoint.d.ts +3 -8
- package/types/ui/scrollpoint.d.ts.map +1 -1
- package/types/ui/slider.d.ts +33 -14
- package/types/ui/slider.d.ts.map +1 -1
- package/types/ui/tabs.d.ts +6 -8
- package/types/ui/tabs.d.ts.map +1 -1
- package/types/ui/theme-toggle.d.ts +51 -7
- package/types/ui/theme-toggle.d.ts.map +1 -1
- package/types/ui/tooltip.d.ts +3 -5
- package/types/ui/tooltip.d.ts.map +1 -1
- package/types/utils/css.d.ts +11 -0
- package/types/utils/css.d.ts.map +1 -0
- package/types/utils/dom.d.ts +12 -32
- package/types/utils/dom.d.ts.map +1 -1
- package/types/utils/font-awesome.d.ts +5 -0
- package/types/utils/font-awesome.d.ts.map +1 -0
- package/types/utils/index.d.ts +2 -1
- package/types/utils/system.d.ts +113 -0
- package/types/utils/system.d.ts.map +1 -0
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
/// @prop {Dimension} size [1.1em] The width, height and font size of the css-icon.
|
|
31
31
|
/// @prop {Dimension} stroke-border-radius [1px] The rounding of the strokes for css-icon.
|
|
32
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)
|
|
33
34
|
/// @prop {Dimension} text-offset [0.05em] When using an icon with text, adds a margin to match the text height.
|
|
34
35
|
/// @prop {Dimension} text-size [1em] font-size of the icon when using text.
|
|
35
36
|
/// @prop {Dimension} vertical-align [-0.2em] Vertical-align for css-icon
|
|
@@ -45,6 +46,7 @@ $config: (
|
|
|
45
46
|
"size" : 1.15em,
|
|
46
47
|
"stroke-border-radius" : null,
|
|
47
48
|
"stroke-width" : 3px,
|
|
49
|
+
"drag-gap-multiplier" : 0.75,
|
|
48
50
|
"text-offset" : 0.05em,
|
|
49
51
|
"text-size" : 1em,
|
|
50
52
|
"vertical-align" : -0.25em,
|
|
@@ -122,8 +124,8 @@ $config: (
|
|
|
122
124
|
-moz-osx-font-smoothing: grayscale;
|
|
123
125
|
-webkit-font-smoothing: antialiased;
|
|
124
126
|
// Icons that share pseudos for strokes
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
&::before,
|
|
128
|
+
&::after {
|
|
127
129
|
// content: "";
|
|
128
130
|
display: block;
|
|
129
131
|
position: absolute;
|
|
@@ -186,7 +188,7 @@ $config: (
|
|
|
186
188
|
|
|
187
189
|
.css-icon--circle-info,
|
|
188
190
|
.css-icon--circle-question {
|
|
189
|
-
|
|
191
|
+
&::before {
|
|
190
192
|
content: "i";
|
|
191
193
|
text-align: center;
|
|
192
194
|
font-size: get("text-size");
|
|
@@ -206,7 +208,7 @@ $config: (
|
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
.css-icon--circle-question {
|
|
209
|
-
|
|
211
|
+
&::before {
|
|
210
212
|
content: "?";
|
|
211
213
|
}
|
|
212
214
|
}
|
|
@@ -227,13 +229,13 @@ $config: (
|
|
|
227
229
|
clip-path: polygon(10% 10%, 90% 50%, 10% 90%);
|
|
228
230
|
}
|
|
229
231
|
[class*="css-icon--arrow"] {
|
|
230
|
-
|
|
232
|
+
&::before {
|
|
231
233
|
content: "";
|
|
232
234
|
width: 70%;
|
|
233
235
|
left: 0;
|
|
234
236
|
}
|
|
235
237
|
// Note triangle clip-path is defined above with the solid triangle
|
|
236
|
-
|
|
238
|
+
&::after {
|
|
237
239
|
content: "";
|
|
238
240
|
border-radius: 0;
|
|
239
241
|
height: 100%;
|
|
@@ -244,8 +246,8 @@ $config: (
|
|
|
244
246
|
}
|
|
245
247
|
[class*="css-icon--angle"] {
|
|
246
248
|
transform: rotate(135deg);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
+
&::before,
|
|
250
|
+
&::after {
|
|
249
251
|
content: "";
|
|
250
252
|
top: 30%;
|
|
251
253
|
left: 30%;
|
|
@@ -253,14 +255,14 @@ $config: (
|
|
|
253
255
|
transform: none;
|
|
254
256
|
margin-top: 0;
|
|
255
257
|
}
|
|
256
|
-
|
|
258
|
+
&::after {
|
|
257
259
|
width: $stroke-width;
|
|
258
260
|
height: 70%;
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
263
|
@include for-each-stroke() using ($alt-width, $alt-border-radius) {
|
|
262
264
|
&[class*="css-icon--angle"] {
|
|
263
|
-
|
|
265
|
+
&::after {
|
|
264
266
|
width: $alt-width;
|
|
265
267
|
}
|
|
266
268
|
}
|
|
@@ -283,26 +285,26 @@ $config: (
|
|
|
283
285
|
|
|
284
286
|
.css-icon--plus,
|
|
285
287
|
.css-icon--plus-to-minus {
|
|
286
|
-
|
|
288
|
+
&::before {
|
|
287
289
|
transform: translateX(-50%) rotate(90deg);
|
|
288
290
|
}
|
|
289
|
-
|
|
291
|
+
&::after {
|
|
290
292
|
transform: translateX(-50%);
|
|
291
293
|
}
|
|
292
294
|
}
|
|
293
295
|
.css-icon--minus {
|
|
294
|
-
|
|
296
|
+
&::before {
|
|
295
297
|
content: none;
|
|
296
298
|
}
|
|
297
|
-
|
|
299
|
+
&::after {
|
|
298
300
|
transform: translateX(-50%);
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
303
|
.css-icon--close {
|
|
302
|
-
|
|
304
|
+
&::before {
|
|
303
305
|
transform: translate(-50%) rotate(45deg);
|
|
304
306
|
}
|
|
305
|
-
|
|
307
|
+
&::after {
|
|
306
308
|
transform: translate(-50%) rotate(-45deg);
|
|
307
309
|
}
|
|
308
310
|
}
|
|
@@ -310,21 +312,23 @@ $config: (
|
|
|
310
312
|
&::before {
|
|
311
313
|
content: "";
|
|
312
314
|
// Make up for margin-top by default
|
|
313
|
-
margin-top: -($stroke-width + $stroke-width);
|
|
315
|
+
margin-top: -(($stroke-width + $stroke-width) * get("drag-gap-multiplier"));
|
|
314
316
|
}
|
|
315
317
|
&::after {
|
|
316
318
|
content: "";
|
|
317
|
-
margin-top: $stroke-width;
|
|
319
|
+
margin-top: $stroke-width * get("drag-gap-multiplier");
|
|
318
320
|
}
|
|
319
321
|
}
|
|
320
322
|
|
|
321
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);
|
|
322
326
|
&[class*="css-icon--drag"] {
|
|
323
327
|
&::before {
|
|
324
|
-
margin-top: -($alt-width + $alt-width);
|
|
328
|
+
margin-top: -(($alt-width + $alt-width) * get("drag-gap-multiplier"));
|
|
325
329
|
}
|
|
326
330
|
&::after {
|
|
327
|
-
margin-top: $alt-width;
|
|
331
|
+
margin-top: $alt-width * get("drag-gap-multiplier");
|
|
328
332
|
}
|
|
329
333
|
}
|
|
330
334
|
}
|
|
@@ -373,6 +377,16 @@ $config: (
|
|
|
373
377
|
.css-icon--arrow-down {
|
|
374
378
|
transform: rotate(90deg);
|
|
375
379
|
}
|
|
380
|
+
.css-icon--drag-both {
|
|
381
|
+
transform: rotate(-45deg);
|
|
382
|
+
&::before {
|
|
383
|
+
transform: translateX(-50%) scale(0.8);
|
|
384
|
+
margin-top: -($stroke-width);
|
|
385
|
+
}
|
|
386
|
+
&::after {
|
|
387
|
+
transform: translateX(-50%) scaleX(0.5) scaleY(0.8);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
376
390
|
|
|
377
391
|
// Active icons
|
|
378
392
|
.css-icon--plus-to-minus {
|
|
@@ -425,7 +439,7 @@ $config: (
|
|
|
425
439
|
transition: none;
|
|
426
440
|
transform: translate(-50%) rotate(-45deg);
|
|
427
441
|
}
|
|
428
|
-
|
|
442
|
+
&::before {
|
|
429
443
|
box-shadow: none;
|
|
430
444
|
transform: translate(-50%) rotate(45deg);
|
|
431
445
|
}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
/// A page grid layout component that uses data attribute instead of class names, for brevity and readability
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
-
/// Content Block
|
|
7
|
-
/// @demo data-grid
|
|
8
|
-
|
|
9
6
|
@use "sass:map";
|
|
10
7
|
@use "sass:math";
|
|
11
8
|
|
|
@@ -38,6 +35,7 @@
|
|
|
38
35
|
$config: (
|
|
39
36
|
"attribute": "data-grid",
|
|
40
37
|
"attribute-container": "data-grid-container",
|
|
38
|
+
"attribute-init": "data-grid-init",
|
|
41
39
|
"breakpoint": false, // Fallback to default
|
|
42
40
|
"columns": 12,
|
|
43
41
|
"gutter": 14px,
|
|
@@ -49,6 +47,7 @@ $config: (
|
|
|
49
47
|
"sticky-top": var(--ulu-sticky-top-offset, 0),
|
|
50
48
|
"rule-color" : "rule",
|
|
51
49
|
"rule-size" : 1px,
|
|
50
|
+
"rule-fade-duration" : 400ms,
|
|
52
51
|
"extra-breakpoints": (
|
|
53
52
|
"medium" : (
|
|
54
53
|
"breakpoint": "medium",
|
|
@@ -134,6 +133,7 @@ $config: (
|
|
|
134
133
|
/// @param {Map} $extra-rule-styles Map of other rule styles to add (map of maps of size, and color), key is the styles name ("name": ("size" : 4px, "color" : "color name" || color))
|
|
135
134
|
/// @param {String} $extra-gutter-scales A map of gutter scales used like `data-grid="gutter-scale: large`, configuration map property becomes scale name and value is the amount (multiplier) to apply to the grid's gutter ie `( "large" : 2.25 )`
|
|
136
135
|
/// @param {Map} $attribute Attribute to use for selecting grid and children. Children attribute get's "-item" as a suffix ("ie. data-grid, data-grid-item")
|
|
136
|
+
/// @param {CssDuration} $rule-fade-duration The amount of time for rules to fade in (after init, script positioning), set to falsey value to disable rule fade in (rules will always be shown)
|
|
137
137
|
|
|
138
138
|
@mixin create(
|
|
139
139
|
$columns: get("columns"),
|
|
@@ -146,17 +146,20 @@ $config: (
|
|
|
146
146
|
$extra-rule-styles: get("extra-rule-styles"),
|
|
147
147
|
$extra-gutter-scales: get("extra-gutter-scales"),
|
|
148
148
|
$attribute: get("attribute"),
|
|
149
|
+
$attribute-init: get("attribute-init"),
|
|
149
150
|
$include-container: true,
|
|
150
151
|
$container-attribute: get("attribute-container"),
|
|
151
152
|
$container-gutter-scales: true,
|
|
152
153
|
$sticky-top: get("sticky-top"),
|
|
153
|
-
$sticky-bottom: get("sticky-bottom")
|
|
154
|
+
$sticky-bottom: get("sticky-bottom"),
|
|
155
|
+
$rule-fade-duration: get("rule-fade-duration")
|
|
154
156
|
) {
|
|
155
157
|
$attribute-item: "#{ $attribute }-item";
|
|
156
158
|
$select-grid: '[#{ $attribute }*="columns: #{ $columns }"]';
|
|
159
|
+
$select-grid-not-init: '[#{ $attribute }]:not([#{ $attribute-init }])';
|
|
157
160
|
$select-item: '[#{ $attribute-item }]';
|
|
158
|
-
$select-rule-col: "
|
|
159
|
-
$select-rule-row: "
|
|
161
|
+
$select-rule-col: "::before";
|
|
162
|
+
$select-rule-row: "::after";
|
|
160
163
|
$select-container: "[#{ $container-attribute }]";
|
|
161
164
|
// These through off syntax highlighting when inside interpolation
|
|
162
165
|
$position-class-column-first: get("position-class-column-first");
|
|
@@ -215,6 +218,20 @@ $config: (
|
|
|
215
218
|
}
|
|
216
219
|
}
|
|
217
220
|
}
|
|
221
|
+
// Rules: Applies to both column and row
|
|
222
|
+
&#{'[#{ $attribute }*="rules"]'} {
|
|
223
|
+
> #{ $select-item } {
|
|
224
|
+
position: relative;
|
|
225
|
+
@if ($rule-fade-duration) {
|
|
226
|
+
&#{ $select-rule-col },
|
|
227
|
+
&#{ $select-rule-row } {
|
|
228
|
+
// For when grid init fades them in
|
|
229
|
+
opacity: 1;
|
|
230
|
+
transition: opacity $rule-fade-duration ease-in;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
218
235
|
// Rules: Row
|
|
219
236
|
&#{'[#{ $attribute }*="rules-row:"]'} {
|
|
220
237
|
> #{ $select-item } {
|
|
@@ -227,12 +244,6 @@ $config: (
|
|
|
227
244
|
}
|
|
228
245
|
}
|
|
229
246
|
}
|
|
230
|
-
// Rules: Applies to both column and row
|
|
231
|
-
&#{'[#{ $attribute }*="rules"]'} {
|
|
232
|
-
> #{ $select-item } {
|
|
233
|
-
position: relative;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
247
|
// Rules: Column
|
|
237
248
|
&#{'[#{ $attribute }*="rules-column:"]'} {
|
|
238
249
|
> #{ $select-item } {
|
|
@@ -580,6 +591,21 @@ $config: (
|
|
|
580
591
|
}
|
|
581
592
|
}
|
|
582
593
|
}
|
|
594
|
+
|
|
595
|
+
// Disable grid rules until init attribute it present (from positioning script)
|
|
596
|
+
// - In order to keep the rules for this compact it will only hide them if the init
|
|
597
|
+
// is not present
|
|
598
|
+
|
|
599
|
+
@if ($rule-fade-duration) {
|
|
600
|
+
#{ $select-grid-not-init } {
|
|
601
|
+
> #{ $select-item } {
|
|
602
|
+
&#{ $select-rule-col },
|
|
603
|
+
&#{ $select-rule-row } {
|
|
604
|
+
opacity: 0 !important;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
583
609
|
}
|
|
584
610
|
|
|
585
611
|
@mixin -create-extra-breakpoint(
|
|
@@ -635,6 +661,23 @@ $config: (
|
|
|
635
661
|
}
|
|
636
662
|
}
|
|
637
663
|
|
|
664
|
+
&#{'[#{ $attribute }*="gutters-row:"]'} {
|
|
665
|
+
> #{ $select-item } {
|
|
666
|
+
padding-top: $gutter;
|
|
667
|
+
padding-bottom: $gutter;
|
|
668
|
+
}
|
|
669
|
+
@if $extra-gutter-scales {
|
|
670
|
+
@each $scale, $amount in $extra-gutter-scales {
|
|
671
|
+
&#{'[#{ $attribute }*="gutter-scale: #{ $scale }"]'} {
|
|
672
|
+
> #{ $select-item } {
|
|
673
|
+
padding-top: $gutter * $amount;
|
|
674
|
+
padding-bottom: $gutter * $amount;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
638
681
|
@include -create-column-widths(
|
|
639
682
|
$columns: $columns,
|
|
640
683
|
$attribute-item: $attribute-item,
|
|
@@ -24,16 +24,47 @@ $-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 {Color} footer-color [null] Font color for the table footer.
|
|
37
|
+
/// @prop {Number} line-height [true] Line height for the table.
|
|
38
|
+
/// @prop {Dimension} column-min-width [6em] Min-width of the th element.
|
|
39
|
+
/// @prop {Dimension} first-column-large-min-width [15em] When using "--large-first" style, the min width of the first th element.
|
|
40
|
+
/// @prop {Dimension} border-width [1px] Border width of the table.
|
|
41
|
+
/// @prop {Color} border-color [#dddddd] Border color for the table.
|
|
42
|
+
/// @prop {Color} striped-row-background-color [#eeeeee] Background color for even rows if using "--striped" styling.
|
|
43
|
+
/// @prop {Color} muted-row-background-color [#ccc] Background color for odd rows if using "--striped" styling.
|
|
44
|
+
/// @prop {Color} muted-row-border-color [null] Border color for odd rows if using "--striped" styling.
|
|
45
|
+
/// @prop {Color} highlighted-row-background-color [#ccc] Background color row if using "__row-highlighted" styling.
|
|
46
|
+
/// @prop {Color} highlighted-row-border-color [null] Border color row if using "__row-highlighted" styling.
|
|
47
|
+
/// @prop {Dimension} large-header-cell-padding-y [1em] Vertical padding of header if using "--large-header" styling.
|
|
48
|
+
/// @prop {String} caption-type-size ["large"] Type size of table caption.
|
|
49
|
+
/// @prop {Color} caption-background-color [null] Background color of table caption.
|
|
50
|
+
/// @prop {CssValue} caption-font-weight [bold] Font weight of caption.
|
|
51
|
+
/// @prop {CssBalue} caption-border-bottom [null] Bottom border of the caption.
|
|
52
|
+
/// @prop {Dimension} caption-margin [(0,)] Margin of the caption.
|
|
53
|
+
/// @prop {Dimension} caption-padding [(0.65em 0)] Padding of the caption.
|
|
54
|
+
/// @prop {CssValue} caption-text-align [left] Text align of the caption.
|
|
55
|
+
/// @prop {String} extra-selector [".wysiwyg table"] Additional selectors to include table styling.
|
|
27
56
|
|
|
28
57
|
$config: (
|
|
29
58
|
"cell-padding" : (0.5em,),
|
|
30
59
|
"text-align" : left,
|
|
31
60
|
"type-size" : "small",
|
|
32
61
|
"background-color" : white,
|
|
33
|
-
"header-background-color" : #
|
|
62
|
+
"header-background-color" : #f5f4f4,
|
|
34
63
|
"body-background-color" : white,
|
|
35
64
|
"footer-background-color" : #f3f3f3,
|
|
36
65
|
"color" : "type-secondary",
|
|
66
|
+
"header-color" : "headline",
|
|
67
|
+
"footer-color" : null,
|
|
37
68
|
"line-height" : true,
|
|
38
69
|
"column-min-width" : 6em,
|
|
39
70
|
"first-column-large-min-width" : 15em,
|
|
@@ -48,8 +79,9 @@ $config: (
|
|
|
48
79
|
"caption-type-size" : "large",
|
|
49
80
|
"caption-background-color" : null,
|
|
50
81
|
"caption-font-weight" : bold,
|
|
82
|
+
"caption-border-bottom" : null,
|
|
51
83
|
"caption-margin" : (0,),
|
|
52
|
-
"caption-padding" : (0.
|
|
84
|
+
"caption-padding" : (0.65em 0),
|
|
53
85
|
"caption-text-align" : left,
|
|
54
86
|
"extra-selector" : ".wysiwyg table"
|
|
55
87
|
) !default;
|
|
@@ -113,7 +145,7 @@ $config: (
|
|
|
113
145
|
margin: get("caption-margin");
|
|
114
146
|
padding: get("caption-padding");
|
|
115
147
|
background-color: get("caption-background-color");
|
|
116
|
-
border-bottom:
|
|
148
|
+
border-bottom: get("caption-border-bottom");
|
|
117
149
|
}
|
|
118
150
|
th,
|
|
119
151
|
tr,
|
|
@@ -137,11 +169,15 @@ $config: (
|
|
|
137
169
|
thead tr {
|
|
138
170
|
background-color: color.get(get("header-background-color"));
|
|
139
171
|
}
|
|
172
|
+
thead th {
|
|
173
|
+
color: color.get(get("header-color"));
|
|
174
|
+
}
|
|
140
175
|
tbody tr {
|
|
141
176
|
background-color: color.get(get("body-background-color"));
|
|
142
177
|
}
|
|
143
178
|
tfoot tr {
|
|
144
179
|
background-color: color.get(get("footer-background-color"));
|
|
180
|
+
color: color.get(get("footer-color"));
|
|
145
181
|
}
|
|
146
182
|
th,
|
|
147
183
|
td {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
////
|
|
3
3
|
/// @group flipcard
|
|
4
4
|
////
|
|
5
|
-
///
|
|
5
|
+
/// Flipcard (content revealed on backside of card after click)
|
|
6
6
|
|
|
7
7
|
@use "sass:map";
|
|
8
8
|
@use "../color";
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
/// @prop {Color} title-color-image-hover [blue] Color of the front page text when using an image and hovered or focused.
|
|
33
33
|
/// @prop {Boolean} bottom-shadow [true] Boolean that enables a bottom shadow to the image flipcard.
|
|
34
34
|
|
|
35
|
-
|
|
36
35
|
$config: (
|
|
37
36
|
"anim-delay" : 200ms,
|
|
38
37
|
"anim-duration" : 430ms,
|
|
@@ -86,6 +85,12 @@ $config: (
|
|
|
86
85
|
@return utils.require-map-get($config, $name, "flipcard [config]");
|
|
87
86
|
}
|
|
88
87
|
|
|
88
|
+
/// Prints component styles
|
|
89
|
+
/// @demo flipcard
|
|
90
|
+
/// @example scss
|
|
91
|
+
/// @example
|
|
92
|
+
/// @include ulu.component-flipcard-styles();
|
|
93
|
+
|
|
89
94
|
@mixin styles {
|
|
90
95
|
$prefix: selector.class("flipcard");
|
|
91
96
|
|
|
@@ -193,7 +198,7 @@ $config: (
|
|
|
193
198
|
color: color.get(get("title-color-image"));
|
|
194
199
|
@if(get("bottom-shadow")) {
|
|
195
200
|
// bottom position includes padding so that the shadow
|
|
196
|
-
|
|
201
|
+
&::after {
|
|
197
202
|
content: '';
|
|
198
203
|
display: block;
|
|
199
204
|
position: absolute;
|