@ulu/frontend 0.1.0-beta.9 → 0.1.0-beta.91
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 +610 -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/_index.scss +1 -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
|
@@ -14,10 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
// Used for function fallback
|
|
16
16
|
$-fallbacks: (
|
|
17
|
-
"border" : (
|
|
18
|
-
"function" : meta.get-function("get-rule-style", false, "element"),
|
|
19
|
-
"property" : "light"
|
|
20
|
-
),
|
|
21
17
|
"border-radius" : (
|
|
22
18
|
"function" : meta.get-function("get", false, "element"),
|
|
23
19
|
"property" : "border-radius"
|
|
@@ -27,69 +23,56 @@ $-fallbacks: (
|
|
|
27
23
|
/// Module Settings
|
|
28
24
|
/// @type Map
|
|
29
25
|
/// @prop {Color} background-color [rgb(240, 240, 240)] The background color of the Callout.
|
|
30
|
-
/// @prop {
|
|
26
|
+
/// @prop {Color} border-color ["rule-light"] The border color of the Callout.
|
|
31
27
|
/// @prop {Boolean} border-radius [true] The border radius of the Callout.
|
|
28
|
+
/// @prop {Dimension} border-width [1px] The border width of the Callout.
|
|
32
29
|
/// @prop {CssValue} box-shadow [none] The box-shadow of the Callout.
|
|
33
|
-
/// @prop {Boolean}
|
|
34
|
-
/// @prop {
|
|
35
|
-
/// @prop {
|
|
30
|
+
/// @prop {Boolean} caps-disabled [false] If set will not output any cap styles for both base and styles
|
|
31
|
+
/// @prop {Boolean} cap [false] Toggles the use of caps on default callout
|
|
32
|
+
/// @prop {Boolean} cap-side ["left"] The side that gets the cap
|
|
33
|
+
/// @prop {Number} cap-match-radius [true] The cap should have be rounded to match the parent's border radius
|
|
34
|
+
/// @prop {Map} cap-options The options for cap (see element.cap for options)
|
|
36
35
|
/// @prop {Dimension} margin [2rem] Bottom margin of the Callout.
|
|
37
36
|
/// @prop {Dimension} padding [1.5rem] Padding of the Callout.
|
|
38
37
|
|
|
39
38
|
$config: (
|
|
40
39
|
"background-color" : rgb(240, 240, 240),
|
|
41
|
-
"border" :
|
|
42
|
-
"border-radius" :
|
|
40
|
+
"border-color" : "rule-light",
|
|
41
|
+
"border-radius" : 6px,
|
|
42
|
+
"border-width" : 1px,
|
|
43
43
|
"box-shadow" : none,
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
44
|
+
"caps-disabled" : false,
|
|
45
|
+
"cap" : false,
|
|
46
|
+
"cap-side" : "left",
|
|
47
|
+
"cap-match-radius" : false,
|
|
48
|
+
"cap-options" : (
|
|
49
|
+
"color" : rgb(160, 160, 160),
|
|
50
|
+
"size" : 0.5rem,
|
|
51
|
+
),
|
|
47
52
|
"margin" : 2rem,
|
|
48
53
|
"padding" : 1.5rem,
|
|
49
54
|
) !default;
|
|
50
55
|
|
|
56
|
+
/// Styles Map (for unique variations/modifiers)
|
|
57
|
+
/// - Adjust this with set-styles
|
|
58
|
+
/// @type Map
|
|
59
|
+
|
|
51
60
|
$styles: (
|
|
52
|
-
"background-dark" : (
|
|
53
|
-
"background-color" : rgb(240, 240, 240)
|
|
54
|
-
),
|
|
55
61
|
"outline" : (
|
|
56
62
|
"background-color": transparent
|
|
57
63
|
),
|
|
58
|
-
"
|
|
59
|
-
"background-color" :
|
|
60
|
-
"border-color" : gray
|
|
61
|
-
),
|
|
62
|
-
"informative" : (
|
|
63
|
-
"background-color" : #e7f6f8,
|
|
64
|
-
"left-cap-color" : #00bde3,
|
|
65
|
-
"left-cap" : true,
|
|
66
|
-
"left-cap-width": 0.5rem
|
|
64
|
+
"info" : (
|
|
65
|
+
"background-color" : "info-background",
|
|
67
66
|
),
|
|
68
67
|
"warning" : (
|
|
69
|
-
"background-color" :
|
|
70
|
-
"left-cap-color" : #ffbe2e,
|
|
71
|
-
"left-cap" : true,
|
|
72
|
-
"left-cap-width": 0.5rem
|
|
68
|
+
"background-color" : "info-background",
|
|
73
69
|
),
|
|
74
70
|
"success" : (
|
|
75
|
-
"background-color" :
|
|
76
|
-
"left-cap-color" : #00a91c,
|
|
77
|
-
"left-cap" : true,
|
|
78
|
-
"left-cap-width": 0.5rem
|
|
71
|
+
"background-color" : "success-background",
|
|
79
72
|
),
|
|
80
73
|
"danger" : (
|
|
81
|
-
"background-color" :
|
|
82
|
-
"left-cap-color" : #d54309,
|
|
83
|
-
"left-cap" : true,
|
|
84
|
-
"left-cap-width": 0.5rem
|
|
74
|
+
"background-color" : "danger-background",
|
|
85
75
|
),
|
|
86
|
-
"emergency" : (
|
|
87
|
-
"background-color" : #9c3d10,
|
|
88
|
-
"left-cap-color" : #9c3d10,
|
|
89
|
-
"left-cap" : true,
|
|
90
|
-
"color" : white,
|
|
91
|
-
"left-cap-width": 0.5rem
|
|
92
|
-
)
|
|
93
76
|
) !default;
|
|
94
77
|
|
|
95
78
|
/// Change modules $config
|
|
@@ -112,64 +95,128 @@ $styles: (
|
|
|
112
95
|
}
|
|
113
96
|
|
|
114
97
|
/// Set callout style variations
|
|
115
|
-
///
|
|
98
|
+
/// - Styles that modify padding when using mix-match caps on/off should be included last
|
|
99
|
+
/// @param {Map} $changes Map of changes (options for style include [background-color, color, border-color, border-radius, border-width, box-shadow, padding, cap, cap-options]
|
|
116
100
|
/// @param {String} $merge-mode Merge mode see utils.map-merge() [null|"deep"|"overwrite"]
|
|
117
101
|
|
|
118
102
|
@mixin set-styles($changes, $merge-mode: null) {
|
|
119
103
|
$styles: utils.map-merge($styles, $changes, $merge-mode) !global;
|
|
120
104
|
}
|
|
121
105
|
|
|
122
|
-
/// Output styling for a callout that adds a left cap
|
|
123
|
-
/// @param {Dimension} $width The width of the left cap
|
|
124
|
-
/// @param {Color} $color The left cap color
|
|
125
|
-
|
|
126
|
-
@mixin left-cap($width: get("left-cap-width"), $color: get("left-cap-color")) {
|
|
127
|
-
position: relative;
|
|
128
|
-
border-top-left-radius: 0;
|
|
129
|
-
border-bottom-left-radius: 0;
|
|
130
|
-
&::before {
|
|
131
|
-
position: absolute;
|
|
132
|
-
content: "";
|
|
133
|
-
left: 0;
|
|
134
|
-
top: 0;
|
|
135
|
-
bottom: 0;
|
|
136
|
-
width: $width;
|
|
137
|
-
background-color: color.get($color);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
106
|
/// Output component stylesheet
|
|
142
107
|
/// @example scss
|
|
143
108
|
/// @include ulu.component-callout-styles();
|
|
144
109
|
|
|
145
110
|
@mixin styles {
|
|
146
|
-
$prefix: selector.class("callout");
|
|
111
|
+
$prefix: selector.class("callout");
|
|
112
|
+
$padding: get("padding");
|
|
113
|
+
$padding-info: utils.get-spacing($padding);
|
|
114
|
+
$cap-options: get("cap-options");
|
|
115
|
+
$cap-size: map.get($cap-options, "size");
|
|
116
|
+
$cap-side: get("cap-side");
|
|
147
117
|
|
|
148
118
|
#{ $prefix } {
|
|
119
|
+
position: relative; // For cap
|
|
149
120
|
background-color: color.get(get("background-color"));
|
|
150
|
-
padding:
|
|
151
|
-
border: get("border");
|
|
121
|
+
padding: $padding;
|
|
122
|
+
border: get("border-width") solid color.get(get("border-color"));
|
|
152
123
|
margin-bottom: get("margin");
|
|
153
124
|
box-shadow: get("box-shadow");
|
|
154
125
|
border-radius: get("border-radius");
|
|
155
126
|
& >:first-child {
|
|
156
127
|
margin-top: 0;
|
|
157
128
|
}
|
|
158
|
-
|
|
159
|
-
|
|
129
|
+
|
|
130
|
+
// If we have left cap on default we reuse this for all
|
|
131
|
+
// Else we will print it out manually for each unique style
|
|
132
|
+
@if (not get("caps-disabled")) {
|
|
133
|
+
$cap-defaults: (
|
|
134
|
+
"offset" : get("border-width"),
|
|
135
|
+
"border-radius" : if(get("cap-match-radius"), get("border-radius"), null),
|
|
136
|
+
// "padding-adjust" : map.get($padding-info, $cap-side)
|
|
137
|
+
);
|
|
138
|
+
@include element.cap(
|
|
139
|
+
$side: $cap-side,
|
|
140
|
+
$options: map.merge($cap-defaults, $cap-options)
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// If the left cap is disabled we still include it's CSS but we hide it
|
|
145
|
+
// so that other styles of callouts can use it
|
|
146
|
+
@if (not get("cap")) {
|
|
147
|
+
&::before {
|
|
148
|
+
content: none;
|
|
149
|
+
}
|
|
150
|
+
// Since this is hidden and reused we need to not use padding adjust unless it
|
|
151
|
+
// was visible
|
|
152
|
+
} @else if ($cap-size) {
|
|
153
|
+
padding-#{ $cap-side }: calc(map.get($padding-info, $cap-side) + $cap-size);
|
|
160
154
|
}
|
|
161
155
|
}
|
|
156
|
+
|
|
157
|
+
@include -output-style-modifiers();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Output Each Style Modifier
|
|
161
|
+
// - Note if cap is not disabled this will just update appearance values of cap styling
|
|
162
|
+
@mixin -output-style-modifiers() {
|
|
163
|
+
$prefix: selector.class("callout");
|
|
164
|
+
$caps-enabled: not get("caps-disabled");
|
|
165
|
+
$cap-side: get("cap-side");
|
|
166
|
+
|
|
162
167
|
@each $name, $style in $styles {
|
|
168
|
+
$cap: map.get($style, "cap");
|
|
169
|
+
$padding: map.get($style, "padding");
|
|
170
|
+
$border-radius: map.get($style, "border-radius");
|
|
171
|
+
$background-color: map.get($style, "background-color");
|
|
172
|
+
$color: map.get($style, "color");
|
|
173
|
+
$border-color: map.get($style, "border-color");
|
|
174
|
+
$border-width: map.get($style, "border-width");
|
|
175
|
+
$box-shadow: map.get($style, "box-shadow");
|
|
176
|
+
$cap-match-radius: map.get($style, "cap-match-radius");
|
|
177
|
+
|
|
163
178
|
#{ $prefix }--#{ $name } {
|
|
164
|
-
background-color: color.get(
|
|
165
|
-
color: color.get(
|
|
166
|
-
border:
|
|
167
|
-
border-
|
|
168
|
-
border-
|
|
169
|
-
box-shadow:
|
|
170
|
-
padding:
|
|
171
|
-
|
|
172
|
-
|
|
179
|
+
background-color: color.get($background-color);
|
|
180
|
+
color: color.get($color);
|
|
181
|
+
border-radius: $border-radius;
|
|
182
|
+
border-color: color.get($border-color);
|
|
183
|
+
border-width: $border-width;
|
|
184
|
+
box-shadow: $box-shadow;
|
|
185
|
+
padding: $padding;
|
|
186
|
+
|
|
187
|
+
@if ($cap and $caps-enabled) {
|
|
188
|
+
$match-radius: utils.if-type("bool", $cap-match-radius, get("cap-match-radius"));
|
|
189
|
+
// Padding adjust always has to be set (since size could change or padding)
|
|
190
|
+
$padding-info: utils.get-spacing(if($padding, $padding, get("padding")));
|
|
191
|
+
$cap-radius: utils.if-type("number", $border-radius, get("border-radius"));
|
|
192
|
+
$cap-options: utils.ensure-map(map.get($style, "cap-options"));
|
|
193
|
+
$cap-defaults: (
|
|
194
|
+
"size" : map.get(get("cap-options"), "size"),
|
|
195
|
+
"padding-adjust" : map.get($padding-info, $cap-side),
|
|
196
|
+
"offset" : $border-width,
|
|
197
|
+
"border-radius" : if($match-radius, $cap-radius, null)
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
@include element.cap-appearance(
|
|
201
|
+
$side: $cap-side,
|
|
202
|
+
$options: map.merge($cap-defaults, $cap-options),
|
|
203
|
+
$before: true
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
// Because the main callout's cap may not be visible
|
|
207
|
+
&::before {
|
|
208
|
+
content: "";
|
|
209
|
+
}
|
|
210
|
+
// If set to false remove the cap (if enabled) and reset default cap padding adjust
|
|
211
|
+
} @else if ($cap == false and $caps-enabled) {
|
|
212
|
+
// if this style doesn't set padding
|
|
213
|
+
@if (not $padding) {
|
|
214
|
+
$padding-info: utils.get-spacing(get("padding"));
|
|
215
|
+
padding-#{ $cap-side }: map.get($padding-info, $cap-side);
|
|
216
|
+
}
|
|
217
|
+
&::before {
|
|
218
|
+
content: none;
|
|
219
|
+
}
|
|
173
220
|
}
|
|
174
221
|
}
|
|
175
222
|
}
|
|
@@ -30,6 +30,23 @@ $-fallbacks: (
|
|
|
30
30
|
|
|
31
31
|
/// Module Settings
|
|
32
32
|
/// @type Map
|
|
33
|
+
/// @prop {Boolean} text-alignment-matches [false] Toggles matching alignment.
|
|
34
|
+
/// @prop {Boolean} text-alignment-matches-center-only [true] Toggles matching alignment, but only if center.
|
|
35
|
+
/// @prop {Color} background-color [white] Background color of the component.
|
|
36
|
+
/// @prop {CssValue} box-shadow [true] Box shadow the captioned figure.
|
|
37
|
+
/// @prop {Dimension} margin-bottom [true] Bottom margin of the captioned figure.
|
|
38
|
+
/// @prop {Number} line-height [true] Line height of the captioned figure caption.
|
|
39
|
+
/// @prop {Dimension} caption-padding [0.5em] Padding of the captioned figure caption.
|
|
40
|
+
/// @prop {Color} color [null] Font color of the captioned figure caption.
|
|
41
|
+
/// @prop {String} type-size ["small"] Font size of the captioned figure caption.
|
|
42
|
+
/// @prop {Dimension} caption-max-width [min(100%, 15em)] Max width of the captioned figure caption.
|
|
43
|
+
/// @prop {Color} caption-background-color [rgba(255,255,255,0.7)] background color of the captioned figure caption.
|
|
44
|
+
/// @prop {CssValue} caption-backdrop-filter [blur(2px)] Filter of the backdrop of the captioned figure.
|
|
45
|
+
/// @prop {Color} traditional-caption-color [null] Traditional style for font color.
|
|
46
|
+
/// @prop {Color} traditional-caption-background-color [transparent] Traditional style for caption background color.
|
|
47
|
+
/// @prop {Dimension} traditional-caption-padding [0.5em] Traditional style for caption padding.
|
|
48
|
+
/// @prop {Dimension} traditional-caption-max-width [35em] Traditional style for caption max width.
|
|
49
|
+
/// @prop {CssValue} traditional-caption-text-align [right] Traditional style for caption text-align.
|
|
33
50
|
|
|
34
51
|
$config: (
|
|
35
52
|
"text-alignment-matches" : false,
|