@ulu/frontend 0.1.0-beta.0 → 0.1.0-beta.10
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 +58 -0
- package/docs-dev/assets/chunks/modulepreload-polyfill.DaKOjhqt.js +37 -0
- package/docs-dev/assets/favicons/android-chrome-192x192.png +0 -0
- package/docs-dev/assets/favicons/android-chrome-256x256.png +0 -0
- package/docs-dev/assets/favicons/apple-touch-icon.png +0 -0
- package/docs-dev/assets/favicons/browserconfig.xml +9 -0
- package/docs-dev/assets/favicons/favicon-16x16.png +0 -0
- package/docs-dev/assets/favicons/favicon-32x32.png +0 -0
- package/docs-dev/assets/favicons/favicon.ico +0 -0
- package/docs-dev/assets/favicons/mstile-150x150.png +0 -0
- package/docs-dev/assets/favicons/safari-pinned-tab.svg +1 -0
- package/docs-dev/assets/favicons/site.webmanifest +19 -0
- package/docs-dev/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
- package/docs-dev/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Black.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-BlackItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Bold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-BoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraLight.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ExtraLightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Light.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-LightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Medium.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-MediumItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Regular.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-SemiBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-Thin.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/Inter-ThinItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Black.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-BlackItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Bold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-BoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLight.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ExtraLightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Light.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-LightItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Medium.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-MediumItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Regular.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-SemiBold.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-SemiBoldItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-Thin.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterDisplay-ThinItalic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterVariable-Italic.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/InterVariable.woff2 +0 -0
- package/docs-dev/assets/fonts/inter/LICENSE.txt +92 -0
- package/docs-dev/assets/fonts/inter/inter.css +37 -0
- package/docs-dev/assets/main.js +15657 -0
- package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.credits.txt +2 -0
- package/docs-dev/assets/placeholder/4065947-uhd_4096_2160_25fps.mp4 +0 -0
- package/docs-dev/assets/placeholder/image-1-attribution.txt +7 -0
- package/docs-dev/assets/placeholder/image-1-darkened.jpg +0 -0
- package/docs-dev/assets/placeholder/image-1-lightened.jpg +0 -0
- package/docs-dev/assets/placeholder/image-1.jpg +0 -0
- package/docs-dev/assets/style.css +18702 -0
- package/docs-dev/demos/accordion/index.html +4899 -0
- package/docs-dev/demos/button/index.html +4711 -0
- package/docs-dev/demos/callout/index.html +4751 -0
- package/docs-dev/demos/captioned-figure/index.html +4773 -0
- package/docs-dev/demos/card/index.html +5130 -0
- package/docs-dev/demos/css-icons/index.html +5362 -0
- package/docs-dev/demos/data-grid/index.html +5616 -0
- package/docs-dev/demos/data-table/index.html +4787 -0
- package/docs-dev/demos/file-save/index.html +4762 -0
- package/docs-dev/demos/flipcard/index.html +5311 -0
- package/docs-dev/demos/form-theme/index.html +4942 -0
- package/docs-dev/demos/hero/index.html +301 -0
- package/docs-dev/demos/image-grid/index.html +157 -0
- package/docs-dev/demos/index.html +4700 -0
- package/docs-dev/demos/list-inline/index.html +4727 -0
- package/docs-dev/demos/list-inline.1/index.html +4727 -0
- package/docs-dev/demos/list-lines/index.html +4717 -0
- package/docs-dev/demos/menu-stack/index.html +4841 -0
- package/docs-dev/demos/modals/index.html +4808 -0
- package/docs-dev/demos/nav-strip/index.html +4812 -0
- package/docs-dev/demos/overlay-section/index.html +4718 -0
- package/docs-dev/demos/popovers/index.html +4718 -0
- package/docs-dev/demos/print/index.html +4720 -0
- package/docs-dev/demos/pull-quote/index.html +4719 -0
- package/docs-dev/demos/rule/index.html +4769 -0
- package/docs-dev/demos/scroll-slider/index.html +204 -0
- package/docs-dev/demos/scrollpoints/index.html +4738 -0
- package/docs-dev/demos/slider/index.html +164 -0
- package/docs-dev/demos/spoke-spinner/index.html +4715 -0
- package/docs-dev/demos/tabs/index.html +4804 -0
- package/docs-dev/demos/tag/index.html +4720 -0
- package/docs-dev/demos/tile-grid-overlay/index.html +382 -0
- package/docs-dev/demos/tiles/index.html +4969 -0
- package/docs-dev/demos/tooltip/index.html +4748 -0
- package/docs-dev/guide/building-stylesheet/index.html +4769 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +4821 -0
- package/docs-dev/guide/index.html +4702 -0
- package/docs-dev/index.html +4749 -0
- package/docs-dev/javascript/events/index.html +4860 -0
- package/docs-dev/javascript/index.html +4715 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +5160 -0
- package/docs-dev/javascript/ui-collapsible/index.html +4827 -0
- package/docs-dev/javascript/ui-dialog/index.html +4861 -0
- package/docs-dev/javascript/ui-flipcard/index.html +4711 -0
- package/docs-dev/javascript/ui-grid/index.html +4768 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +4850 -0
- package/docs-dev/javascript/ui-overflow-scroller/index.html +4700 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +4718 -0
- package/docs-dev/javascript/ui-page/index.html +4715 -0
- package/docs-dev/javascript/ui-popover/index.html +4754 -0
- package/docs-dev/javascript/ui-print/index.html +4767 -0
- package/docs-dev/javascript/ui-print-details/index.html +4730 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +4700 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +4744 -0
- package/docs-dev/javascript/ui-resizer/index.html +4770 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +4729 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +4947 -0
- package/docs-dev/javascript/ui-slider/index.html +4711 -0
- package/docs-dev/javascript/ui-tabs/index.html +4832 -0
- package/docs-dev/javascript/ui-tooltip/index.html +4847 -0
- package/docs-dev/javascript/utils-class-logger/index.html +4835 -0
- package/docs-dev/javascript/utils-dom/index.html +4880 -0
- package/docs-dev/javascript/utils-file-save/index.html +4872 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +4732 -0
- package/docs-dev/javascript/utils-id/index.html +4742 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +4750 -0
- package/docs-dev/sass/base/color/index.html +4733 -0
- package/docs-dev/sass/base/elements/index.html +4904 -0
- package/docs-dev/sass/base/index/index.html +4903 -0
- package/docs-dev/sass/base/index.html +4709 -0
- package/docs-dev/sass/base/keyframes/index.html +4735 -0
- package/docs-dev/sass/base/layout/index.html +4895 -0
- package/docs-dev/sass/base/normalize/index.html +4743 -0
- package/docs-dev/sass/base/print/index.html +4739 -0
- package/docs-dev/sass/base/root/index.html +4759 -0
- package/docs-dev/sass/base/typography/index.html +4759 -0
- package/docs-dev/sass/components/accordion/index.html +5061 -0
- package/docs-dev/sass/components/adaptive-spacing/index.html +5004 -0
- package/docs-dev/sass/components/badge/index.html +4952 -0
- package/docs-dev/sass/components/button/index.html +4888 -0
- package/docs-dev/sass/components/button-verbose/index.html +5000 -0
- package/docs-dev/sass/components/callout/index.html +5031 -0
- package/docs-dev/sass/components/captioned-figure/index.html +4878 -0
- package/docs-dev/sass/components/card/index.html +5236 -0
- package/docs-dev/sass/components/card-grid/index.html +4902 -0
- package/docs-dev/sass/components/css-icon/index.html +5006 -0
- package/docs-dev/sass/components/data-grid/index.html +5134 -0
- package/docs-dev/sass/components/data-table/index.html +4887 -0
- package/docs-dev/sass/components/fill-context/index.html +4768 -0
- package/docs-dev/sass/components/flipcard/index.html +5038 -0
- package/docs-dev/sass/components/flipcard-grid/index.html +4889 -0
- package/docs-dev/sass/components/form-theme/index.html +5518 -0
- package/docs-dev/sass/components/hero/index.html +4890 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +4887 -0
- package/docs-dev/sass/components/image-grid/index.html +4894 -0
- package/docs-dev/sass/components/index/index.html +4939 -0
- package/docs-dev/sass/components/index.html +4709 -0
- package/docs-dev/sass/components/links/index.html +4738 -0
- package/docs-dev/sass/components/list-inline/index.html +4908 -0
- package/docs-dev/sass/components/list-lines/index.html +4929 -0
- package/docs-dev/sass/components/list-ordered/index.html +4734 -0
- package/docs-dev/sass/components/list-unordered/index.html +4738 -0
- package/docs-dev/sass/components/menu-stack/index.html +5067 -0
- package/docs-dev/sass/components/modal/index.html +5122 -0
- package/docs-dev/sass/components/nav-strip/index.html +4988 -0
- package/docs-dev/sass/components/overlay-section/index.html +4932 -0
- package/docs-dev/sass/components/pager/index.html +5050 -0
- package/docs-dev/sass/components/placeholder-block/index.html +4972 -0
- package/docs-dev/sass/components/popover/index.html +5047 -0
- package/docs-dev/sass/components/pull-quote/index.html +4946 -0
- package/docs-dev/sass/components/ratio-box/index.html +4892 -0
- package/docs-dev/sass/components/rule/index.html +4894 -0
- package/docs-dev/sass/components/scroll-slider/index.html +5005 -0
- package/docs-dev/sass/components/skip-link/index.html +4878 -0
- package/docs-dev/sass/components/slider/index.html +5014 -0
- package/docs-dev/sass/components/spoke-spinner/index.html +4952 -0
- package/docs-dev/sass/components/tabs/index.html +5028 -0
- package/docs-dev/sass/components/tag/index.html +5053 -0
- package/docs-dev/sass/components/tile-button/index.html +4933 -0
- package/docs-dev/sass/components/tile-grid/index.html +5068 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +4869 -0
- package/docs-dev/sass/components/vignette/index.html +4882 -0
- package/docs-dev/sass/components/wysiwyg/index.html +4898 -0
- package/docs-dev/sass/core/breakpoint/index.html +5491 -0
- package/docs-dev/sass/core/button/index.html +5625 -0
- package/docs-dev/sass/core/color/index.html +5476 -0
- package/docs-dev/sass/core/cssvar/index.html +5500 -0
- package/docs-dev/sass/core/element/index.html +5623 -0
- package/docs-dev/sass/core/index.html +4698 -0
- package/docs-dev/sass/core/layout/index.html +5458 -0
- package/docs-dev/sass/core/path/index.html +4867 -0
- package/docs-dev/sass/core/selector/index.html +4946 -0
- package/docs-dev/sass/core/typography/index.html +5872 -0
- package/docs-dev/sass/core/units/index.html +4905 -0
- package/docs-dev/sass/core/utils/index.html +6346 -0
- package/docs-dev/sass/helpers/color/index.html +4733 -0
- package/docs-dev/sass/helpers/display/index.html +4738 -0
- package/docs-dev/sass/helpers/index/index.html +4900 -0
- package/docs-dev/sass/helpers/index.html +4709 -0
- package/docs-dev/sass/helpers/print/index.html +4738 -0
- package/docs-dev/sass/helpers/typography/index.html +4761 -0
- package/docs-dev/sass/helpers/units/index.html +4907 -0
- package/docs-dev/sass/helpers/utilities/index.html +4738 -0
- package/docs-dev/sass/index.html +4760 -0
- package/js/ui/modal-builder.js +1 -1
- package/js/ui/tabs.js +24 -4
- package/package.json +8 -10
- package/scss/_color.scss +2 -1
- package/scss/base/_typography.scss +7 -7
- package/scss/components/_accordion.scss +15 -15
- package/scss/components/_adaptive-spacing.scss +3 -3
- package/scss/components/_badge.scss +5 -4
- package/scss/components/_button-verbose.scss +22 -22
- package/scss/components/_button.scss +2 -0
- package/scss/components/_callout.scss +8 -7
- package/scss/components/_captioned-figure.scss +8 -8
- package/scss/components/_card-grid.scss +2 -2
- package/scss/components/_card.scss +46 -32
- package/scss/components/_css-icon.scss +18 -13
- package/scss/components/_data-grid.scss +2 -2
- package/scss/components/_data-table.scss +9 -5
- package/scss/components/_flipcard-grid.scss +2 -2
- package/scss/components/_flipcard.scss +15 -14
- package/scss/components/_form-theme.scss +30 -30
- package/scss/components/_hero.scss +2 -2
- package/scss/components/_image-grid.scss +2 -2
- package/scss/components/_index.scss +6 -0
- package/scss/components/_list-inline.scss +80 -0
- package/scss/components/_list-lines.scss +46 -35
- package/scss/components/_list-ordered.scss +0 -1
- package/scss/components/_menu-stack.scss +3 -4
- package/scss/components/_modal.scss +24 -33
- package/scss/components/_nav-strip.scss +26 -19
- package/scss/components/_overlay-section.scss +4 -4
- package/scss/components/_pager.scss +11 -11
- package/scss/components/_placeholder-block.scss +6 -6
- package/scss/components/_popover.scss +11 -11
- package/scss/components/_pull-quote.scss +2 -2
- package/scss/components/_ratio-box.scss +2 -2
- package/scss/components/_rule.scss +5 -6
- package/scss/components/_scroll-slider.scss +3 -3
- package/scss/components/_skip-link.scss +2 -1
- package/scss/components/_slider.scss +18 -54
- package/scss/components/_tabs.scss +119 -53
- package/scss/components/_tag.scss +15 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@use "../breakpoint";
|
|
10
10
|
@use "../utils";
|
|
11
11
|
@use "../selector";
|
|
12
|
+
@use "../color";
|
|
12
13
|
|
|
13
14
|
// todo
|
|
14
15
|
// sass color adjust for smooth transition. Add a comment for this if we can’t get to this
|
|
@@ -113,7 +114,7 @@ $config: (
|
|
|
113
114
|
|
|
114
115
|
/// Change modules $config
|
|
115
116
|
/// @param {Map} $changes Map of changes
|
|
116
|
-
/// @example
|
|
117
|
+
/// @example scss
|
|
117
118
|
/// @include ulu.component-card-set(( "property" : value ));
|
|
118
119
|
|
|
119
120
|
@mixin set($changes) {
|
|
@@ -122,7 +123,7 @@ $config: (
|
|
|
122
123
|
|
|
123
124
|
/// Get a config option
|
|
124
125
|
/// @param {Map} $name Name of property
|
|
125
|
-
/// @example
|
|
126
|
+
/// @example scss
|
|
126
127
|
/// @include ulu.component-card-get(( "property" : value ));
|
|
127
128
|
|
|
128
129
|
@function get($name) {
|
|
@@ -131,6 +132,9 @@ $config: (
|
|
|
131
132
|
|
|
132
133
|
/// Mixin styles for card when it has proxy click enabled and is being interacted with (hover/focus)
|
|
133
134
|
/// @param {Boolean} $hover [false] Apply styles when the card is being hover/focused within, else applies styles to rest state of a clickable card (one who has a proxy click setup)
|
|
135
|
+
/// Prints component styles
|
|
136
|
+
/// @example scss
|
|
137
|
+
/// @include ulu.component-card-styles();
|
|
134
138
|
|
|
135
139
|
@mixin when-clickable($hover: false) {
|
|
136
140
|
$prefix: selector.class("card");
|
|
@@ -164,8 +168,8 @@ $config: (
|
|
|
164
168
|
$prefix: selector.class("card");
|
|
165
169
|
|
|
166
170
|
#{ $prefix } {
|
|
167
|
-
color: get("color");
|
|
168
|
-
background-color: get("background-color");
|
|
171
|
+
color: color.get(get("color"));
|
|
172
|
+
background-color: color.get(get("background-color"));
|
|
169
173
|
border-radius: get("border-radius");
|
|
170
174
|
box-shadow: get("box-shadow");
|
|
171
175
|
margin-top: get("margin-y");
|
|
@@ -175,34 +179,31 @@ $config: (
|
|
|
175
179
|
flex-direction: column;
|
|
176
180
|
justify-content: flex-end;
|
|
177
181
|
max-width: get("max-width");
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
z-index: 4;
|
|
191
|
-
pointer-events: none;
|
|
192
|
-
}
|
|
182
|
+
// Border is on pseudo so that it's on top of image/etc
|
|
183
|
+
&:after {
|
|
184
|
+
position: absolute;
|
|
185
|
+
content: if(get("border"), "", false);
|
|
186
|
+
top: 0;
|
|
187
|
+
bottom: 0;
|
|
188
|
+
right: 0;
|
|
189
|
+
left: 0;
|
|
190
|
+
border: get("border");
|
|
191
|
+
border-radius: get("border-radius");
|
|
192
|
+
z-index: 4;
|
|
193
|
+
pointer-events: none;
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
@include when-clickable($hover: true) {
|
|
197
|
-
background-color: get("background-color-hover");
|
|
198
|
-
color: get("color-hover");
|
|
198
|
+
background-color: color.get(get("background-color-hover"));
|
|
199
|
+
color: color.get(get("color-hover"));
|
|
199
200
|
box-shadow: get("box-shadow-hover");
|
|
200
201
|
|
|
201
202
|
@if (get("border-hover") or get("overlay-background-color-hover")) {
|
|
202
203
|
&:after {
|
|
203
204
|
content: "";
|
|
204
205
|
border: get("border-hover");
|
|
205
|
-
background-color: get("overlay-background-color-hover");
|
|
206
|
+
background-color: color.get(get("overlay-background-color-hover"));
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
}
|
|
@@ -219,14 +220,14 @@ $config: (
|
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
#{ $prefix }__title {
|
|
222
|
-
color: get("title-color");
|
|
223
|
+
color: color.get(get("title-color"));
|
|
223
224
|
margin-bottom: get("title-margin");
|
|
224
225
|
display: block;
|
|
225
226
|
font-weight: get("title-font-weight");
|
|
226
227
|
@if get("title-color-hover") {
|
|
227
228
|
&:hover,
|
|
228
229
|
&:focus {
|
|
229
|
-
color: get("title-color-hover");
|
|
230
|
+
color: color.get(get("title-color-hover"));
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
233
|
#{ $prefix }__title-link {
|
|
@@ -236,7 +237,7 @@ $config: (
|
|
|
236
237
|
@if get("title-color-hover") {
|
|
237
238
|
@include when-clickable($hover: true) {
|
|
238
239
|
#{ $prefix }__title {
|
|
239
|
-
color: get("title-color-hover");
|
|
240
|
+
color: color.get(get("title-color-hover"));
|
|
240
241
|
}
|
|
241
242
|
}
|
|
242
243
|
}
|
|
@@ -254,7 +255,7 @@ $config: (
|
|
|
254
255
|
// padding-top: get("image-ratio"); // 9:16
|
|
255
256
|
margin: get("image-margin");
|
|
256
257
|
border: get("image-border");
|
|
257
|
-
background-color: get("image-background-color");
|
|
258
|
+
background-color: color.get(get("image-background-color"));
|
|
258
259
|
border-top-right-radius: get("border-radius");
|
|
259
260
|
border-top-left-radius: get("border-radius");
|
|
260
261
|
aspect-ratio: get("image-aspect-ratio");
|
|
@@ -337,11 +338,15 @@ $config: (
|
|
|
337
338
|
position: relative;
|
|
338
339
|
flex-grow: 0;
|
|
339
340
|
z-index: 2;
|
|
340
|
-
color: get("color-overlay");
|
|
341
|
-
background-color: get("overlay-background-color");
|
|
341
|
+
color: color.get(get("color-overlay"));
|
|
342
|
+
background-color: color.get(get("overlay-background-color"));
|
|
342
343
|
min-height: 0;
|
|
343
344
|
padding-top: get("overlay-body-padding-y");
|
|
344
345
|
padding-bottom: get("overlay-body-padding-y");
|
|
346
|
+
&:not(:has(~ #{ $prefix }__footer)) {
|
|
347
|
+
border-bottom-left-radius: get("border-radius");
|
|
348
|
+
border-bottom-right-radius: get("border-radius");
|
|
349
|
+
}
|
|
345
350
|
@if (get("overlay-shading")) {
|
|
346
351
|
margin-top: 4rem;
|
|
347
352
|
&::before {
|
|
@@ -356,11 +361,20 @@ $config: (
|
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
363
|
#{ $prefix }__footer {
|
|
359
|
-
background-color: get("overlay-background-color");
|
|
360
|
-
color: get("color-overlay");
|
|
364
|
+
background-color: color.get(get("overlay-background-color"));
|
|
365
|
+
color: color.get(get("color-overlay"));
|
|
366
|
+
border-bottom-left-radius: get("border-radius");
|
|
367
|
+
border-bottom-right-radius: get("border-radius");
|
|
368
|
+
}
|
|
369
|
+
#{ $prefix }__body,
|
|
370
|
+
#{ $prefix }__footer {
|
|
371
|
+
&:last-child {
|
|
372
|
+
border-bottom-left-radius: get("border-radius");
|
|
373
|
+
border-bottom-right-radius: get("border-radius");
|
|
374
|
+
}
|
|
361
375
|
}
|
|
362
376
|
#{ $prefix }__title {
|
|
363
|
-
color: get("color-overlay");
|
|
377
|
+
color: color.get(get("color-overlay"));
|
|
364
378
|
}
|
|
365
379
|
#{ $prefix }__image {
|
|
366
380
|
position: absolute;
|
|
@@ -370,7 +384,7 @@ $config: (
|
|
|
370
384
|
right: 0;
|
|
371
385
|
overflow: hidden;
|
|
372
386
|
padding-top: 0;
|
|
373
|
-
background-color: rgb(255, 255, 255);
|
|
387
|
+
background-color: color.get(rgb(255, 255, 255));
|
|
374
388
|
border-radius: get("border-radius");
|
|
375
389
|
aspect-ratio: auto;
|
|
376
390
|
img {
|
|
@@ -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,
|
|
@@ -59,7 +62,7 @@ $config: (
|
|
|
59
62
|
|
|
60
63
|
/// Change modules $config
|
|
61
64
|
/// @param {Map} $changes Map of changes
|
|
62
|
-
/// @example
|
|
65
|
+
/// @example scss
|
|
63
66
|
/// @include ulu.component-css-icon-set(( "property" : value ));
|
|
64
67
|
|
|
65
68
|
@mixin set($changes) {
|
|
@@ -68,7 +71,7 @@ $config: (
|
|
|
68
71
|
|
|
69
72
|
/// Get a config option
|
|
70
73
|
/// @param {Map} $name Name of property
|
|
71
|
-
/// @example
|
|
74
|
+
/// @example scss
|
|
72
75
|
/// @include ulu.component-css-icon-get("property");
|
|
73
76
|
|
|
74
77
|
@function get($name) {
|
|
@@ -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
|
}
|
|
@@ -73,7 +73,7 @@ $config: (
|
|
|
73
73
|
|
|
74
74
|
/// Change modules $config
|
|
75
75
|
/// @param {Map} $changes Map of changes
|
|
76
|
-
/// @example
|
|
76
|
+
/// @example scss
|
|
77
77
|
/// @include ulu.component-data-grid-set(( "property" : value ));
|
|
78
78
|
|
|
79
79
|
@mixin set($changes) {
|
|
@@ -82,7 +82,7 @@ $config: (
|
|
|
82
82
|
|
|
83
83
|
/// Get a config option
|
|
84
84
|
/// @param {Map} $name Name of property
|
|
85
|
-
/// @example
|
|
85
|
+
/// @example scss
|
|
86
86
|
/// @include ulu.component-data-grid-get("property");
|
|
87
87
|
|
|
88
88
|
@function get($name) {
|
|
@@ -46,15 +46,17 @@ $config: (
|
|
|
46
46
|
"highlighted-row-border-color" : null,
|
|
47
47
|
"large-header-cell-padding-y" : 1em,
|
|
48
48
|
"caption-type-size" : "large",
|
|
49
|
+
"caption-background-color" : null,
|
|
49
50
|
"caption-font-weight" : bold,
|
|
50
|
-
"caption-margin" : (0
|
|
51
|
-
"caption-padding" : (0,),
|
|
51
|
+
"caption-margin" : (0,),
|
|
52
|
+
"caption-padding" : (0.5em,),
|
|
53
|
+
"caption-text-align" : left,
|
|
52
54
|
"extra-selector" : ".wysiwyg table"
|
|
53
55
|
) !default;
|
|
54
56
|
|
|
55
57
|
/// Change modules $config
|
|
56
58
|
/// @param {Map} $changes Map of changes
|
|
57
|
-
/// @example
|
|
59
|
+
/// @example scss
|
|
58
60
|
/// @include ulu.component-data-table-set(( "property" : value ));
|
|
59
61
|
|
|
60
62
|
@mixin set($changes) {
|
|
@@ -63,7 +65,7 @@ $config: (
|
|
|
63
65
|
|
|
64
66
|
/// Get a config option
|
|
65
67
|
/// @param {Map} $name Name of property
|
|
66
|
-
/// @example
|
|
68
|
+
/// @example scss
|
|
67
69
|
/// @include ulu.component-data-table-get("property");
|
|
68
70
|
|
|
69
71
|
@function get($name) {
|
|
@@ -107,9 +109,11 @@ $config: (
|
|
|
107
109
|
@include typography.size(get("caption-type-size"));
|
|
108
110
|
}
|
|
109
111
|
font-weight: get("caption-font-weight");
|
|
110
|
-
text-align:
|
|
112
|
+
text-align: get("caption-text-align");
|
|
111
113
|
margin: get("caption-margin");
|
|
112
114
|
padding: get("caption-padding");
|
|
115
|
+
background-color: get("caption-background-color");
|
|
116
|
+
border-bottom: $border;
|
|
113
117
|
}
|
|
114
118
|
th,
|
|
115
119
|
tr,
|
|
@@ -23,7 +23,7 @@ $config: (
|
|
|
23
23
|
|
|
24
24
|
/// Change modules $config
|
|
25
25
|
/// @param {Map} $changes Map of changes
|
|
26
|
-
/// @example
|
|
26
|
+
/// @example scss
|
|
27
27
|
/// @include ulu.component-flipcard-grid-set(( "property" : value ));
|
|
28
28
|
|
|
29
29
|
@mixin set($changes) {
|
|
@@ -32,7 +32,7 @@ $config: (
|
|
|
32
32
|
|
|
33
33
|
/// Get a config option
|
|
34
34
|
/// @param {Map} $name Name of property
|
|
35
|
-
/// @example
|
|
35
|
+
/// @example scss
|
|
36
36
|
/// @include ulu.component-flipcard-grid-get("property");
|
|
37
37
|
|
|
38
38
|
@function get($name) {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
/// Creates adaptive (changing at breakpoints)n between items (vertical/horizontal layout)
|
|
6
6
|
|
|
7
7
|
@use "sass:map";
|
|
8
|
+
@use "../color";
|
|
8
9
|
@use "../utils";
|
|
9
10
|
@use "../selector";
|
|
10
11
|
|
|
@@ -61,7 +62,7 @@ $config: (
|
|
|
61
62
|
|
|
62
63
|
/// Change modules $config
|
|
63
64
|
/// @param {Map} $changes Map of changes
|
|
64
|
-
/// @example
|
|
65
|
+
/// @example scss
|
|
65
66
|
/// @include ulu.component-flipcard-set(( "property" : value ));
|
|
66
67
|
|
|
67
68
|
@mixin set($changes) {
|
|
@@ -78,7 +79,7 @@ $config: (
|
|
|
78
79
|
|
|
79
80
|
/// Get a config option
|
|
80
81
|
/// @param {Map} $name Name of property
|
|
81
|
-
/// @example
|
|
82
|
+
/// @example scss
|
|
82
83
|
/// @include ulu.component-flipcard-get("property");
|
|
83
84
|
|
|
84
85
|
@function get($name) {
|
|
@@ -90,14 +91,14 @@ $config: (
|
|
|
90
91
|
|
|
91
92
|
#{ $prefix } {
|
|
92
93
|
height: 100%;
|
|
93
|
-
background-color: get("background-color");
|
|
94
|
+
background-color: color.get(get("background-color"));
|
|
94
95
|
line-height: 1.4;
|
|
95
96
|
overflow: hidden;
|
|
96
97
|
position: relative;
|
|
97
98
|
border: get("border");
|
|
98
99
|
border-radius: get("border-radius");
|
|
99
100
|
&#{ $prefix }:hover {
|
|
100
|
-
border-color: get("border-color-hover");
|
|
101
|
+
border-color: color.get(get("border-color-hover"));
|
|
101
102
|
}
|
|
102
103
|
#{ $prefix }__control-button:focus {
|
|
103
104
|
border: get("control-button-border-focus");
|
|
@@ -123,10 +124,10 @@ $config: (
|
|
|
123
124
|
transform: scale(1.15);
|
|
124
125
|
}
|
|
125
126
|
#{ $prefix }__front-content {
|
|
126
|
-
color: get("title-color-hover");
|
|
127
|
+
color: color.get(get("title-color-hover"));
|
|
127
128
|
}
|
|
128
129
|
#{ $prefix }__icon {
|
|
129
|
-
color: get("icon-color-hover");
|
|
130
|
+
color: color.get(get("icon-color-hover"));
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -140,14 +141,14 @@ $config: (
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
#{ $prefix }--w-image {
|
|
143
|
-
background-color: get("background-color-image");
|
|
144
|
+
background-color: color.get(get("background-color-image"));
|
|
144
145
|
|
|
145
146
|
&:hover {
|
|
146
147
|
#{ $prefix }__front-content {
|
|
147
|
-
color: get("title-color-image-hover");
|
|
148
|
+
color: color.get(get("title-color-image-hover"));
|
|
148
149
|
}
|
|
149
150
|
#{ $prefix }__icon {
|
|
150
|
-
color: get("icon-color-image-hover");
|
|
151
|
+
color: color.get(get("icon-color-image-hover"));
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
}
|
|
@@ -168,7 +169,7 @@ $config: (
|
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
171
|
#{ $prefix }__icon {
|
|
171
|
-
color: get('icon-color');
|
|
172
|
+
color: color.get(get('icon-color'));
|
|
172
173
|
display: block;
|
|
173
174
|
margin-top: 0.5rem;
|
|
174
175
|
}
|
|
@@ -177,7 +178,7 @@ $config: (
|
|
|
177
178
|
display: flex;
|
|
178
179
|
flex-direction: column;
|
|
179
180
|
justify-content: flex-end;
|
|
180
|
-
color: get("title-color");
|
|
181
|
+
color: color.get(get("title-color"));
|
|
181
182
|
position: relative;
|
|
182
183
|
z-index: 2;
|
|
183
184
|
padding: get('padding');
|
|
@@ -186,10 +187,10 @@ $config: (
|
|
|
186
187
|
}
|
|
187
188
|
#{ $prefix }--w-image {
|
|
188
189
|
#{ $prefix }__icon {
|
|
189
|
-
color: get("icon-color-image");
|
|
190
|
+
color: color.get(get("icon-color-image"));
|
|
190
191
|
}
|
|
191
192
|
#{ $prefix }__front-content {
|
|
192
|
-
color: get("title-color-image");
|
|
193
|
+
color: color.get(get("title-color-image"));
|
|
193
194
|
@if(get("bottom-shadow")) {
|
|
194
195
|
// bottom position includes padding so that the shadow
|
|
195
196
|
&:after {
|
|
@@ -207,7 +208,7 @@ $config: (
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
#{ $prefix }__back {
|
|
210
|
-
background-color: get("background-color-back");
|
|
211
|
+
background-color: color.get(get("background-color-back"));
|
|
211
212
|
padding: get('padding');
|
|
212
213
|
justify-content: flex-end;
|
|
213
214
|
[data-flipcard-state="open"] & {
|