@ulu/frontend 0.1.0-beta.1 → 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 +40 -2
- 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 +5 -6
- 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 +15 -51
- package/scss/components/_tabs.scss +119 -53
- package/scss/components/_tag.scss +3 -3
package/js/ui/modal-builder.js
CHANGED
|
@@ -38,7 +38,7 @@ export const defaults = {
|
|
|
38
38
|
noMinHeight: false,
|
|
39
39
|
class: "",
|
|
40
40
|
classCloseIcon: "css-icon css-icon--close",
|
|
41
|
-
classResizerIcon: "css-icon css-icon--drag",
|
|
41
|
+
classResizerIcon: "css-icon css-icon--drag-x",
|
|
42
42
|
debug: false,
|
|
43
43
|
templateCloseIcon(config) {
|
|
44
44
|
return `<span class="modal__close-icon ${ config.classCloseIcon }" aria-hidden="true"></span>`;
|
package/js/ui/tabs.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* @module ui/tabs
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
// TODO:
|
|
6
|
+
// - For Vertical tabs we should be updating the orientation when on mobile.
|
|
7
|
+
// Currently using all arrows so that the interface works in both
|
|
8
|
+
// orientations when vertical. Leaving that behavior for now but maybe consider
|
|
9
|
+
// setting this up to destroy tab interface when ui layout changes?
|
|
10
|
+
|
|
5
11
|
import AriaTablist from "aria-tablist";
|
|
6
12
|
|
|
7
13
|
const initAttr = "data-ulu-tablist-init";
|
|
@@ -127,13 +133,27 @@ function setHeights(element) {
|
|
|
127
133
|
const images = [ ...parent.querySelectorAll("img") ];
|
|
128
134
|
const imagePromises = images.map(image => imagePromise(image));
|
|
129
135
|
function imagePromise(image) {
|
|
130
|
-
return new Promise((resolve
|
|
131
|
-
image.
|
|
132
|
-
|
|
136
|
+
return new Promise((resolve) => {
|
|
137
|
+
if (image.complete) {
|
|
138
|
+
resolve(image);
|
|
139
|
+
} else {
|
|
140
|
+
image.onload = resolve;
|
|
141
|
+
// Errors should also resolve so that height matching continues
|
|
142
|
+
image.onerror = resolve;
|
|
143
|
+
}
|
|
133
144
|
});
|
|
134
145
|
}
|
|
146
|
+
// Run after images are loaded, or if no images it will resolve and run
|
|
135
147
|
Promise.all(imagePromises).then(() => {
|
|
136
|
-
const heights = panels.map(panel =>
|
|
148
|
+
const heights = panels.map(panel => {
|
|
149
|
+
let panelHeight = panel.offsetHeight;
|
|
150
|
+
if (panel.hidden) {
|
|
151
|
+
panel.hidden = false;
|
|
152
|
+
panelHeight = panel.offsetHeight;
|
|
153
|
+
panel.hidden = true;
|
|
154
|
+
}
|
|
155
|
+
return panelHeight;
|
|
156
|
+
});
|
|
137
157
|
const max = Math.max(...heights);
|
|
138
158
|
panels.forEach(panel => panel.style.minHeight = `${ max }px`);
|
|
139
159
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulu/frontend",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.10",
|
|
4
4
|
"description": "Modular Sass Theming Library",
|
|
5
5
|
"browser": "js/index.js",
|
|
6
6
|
"main": "index.js",
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
"docs:incremental": "npx @11ty/eleventy --serve --incremental --config=docs.eleventy.js",
|
|
28
28
|
"docs:nogen": "NO_DOC_GEN=true npx @11ty/eleventy --serve --incremental --config=docs.eleventy.js",
|
|
29
29
|
"docs:inspect": "node --inspect-brk ./node_modules/.bin/eleventy --serve --config=docs.eleventy.js",
|
|
30
|
-
"docs:build": "npx @11ty/eleventy --config=docs.eleventy.js",
|
|
30
|
+
"docs:build:prod": "IS_PRODUCTION=true npx @11ty/eleventy --config=docs.eleventy.js",
|
|
31
31
|
"docs:assets": "vite --config docs.vite.config.js --force",
|
|
32
|
-
"docs:assets:build": "vite build --config docs.vite.config.js"
|
|
32
|
+
"docs:assets:build": "vite build --config docs.vite.config.js",
|
|
33
|
+
"docs:assets:build:prod": "IS_PRODUCTION=true vite build --config docs.vite.config.js"
|
|
33
34
|
},
|
|
34
35
|
"repository": {
|
|
35
36
|
"type": "git",
|
|
@@ -82,9 +83,7 @@
|
|
|
82
83
|
"vite": "^5.4.11"
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
85
|
-
"@ulu/utils": "^0.0.17"
|
|
86
|
-
},
|
|
87
|
-
"optionalDependencies": {
|
|
86
|
+
"@ulu/utils": "^0.0.17",
|
|
88
87
|
"ally.js": "^1.4.1",
|
|
89
88
|
"aria-tablist": "^1.2.2",
|
|
90
89
|
"@floating-ui/dom": "^1.6.5"
|
package/scss/_color.scss
CHANGED
|
@@ -23,6 +23,7 @@ $palette: (
|
|
|
23
23
|
"type-tertiary" : rgb(157, 157, 157),
|
|
24
24
|
"headline" : inherit,
|
|
25
25
|
"background" : white,
|
|
26
|
+
"background-gray" : #F7F8F7,
|
|
26
27
|
"focus" : blue,
|
|
27
28
|
"error" : red,
|
|
28
29
|
"warning" : orange,
|
|
@@ -95,7 +96,7 @@ $color-classes: (
|
|
|
95
96
|
// Allow non lookup if the value is already a color (helps with code flow)
|
|
96
97
|
@if (meta.type-of($name) == "string") {
|
|
97
98
|
// Allow custom-properties and keyword inherit/transparent to pass through
|
|
98
|
-
@if ($name == "inherit" or $name == "transparent" or string.index($name, "var(") == 1) {
|
|
99
|
+
@if ($name == "inherit" or $name == "transparent" or $name == "currentColor" or string.index($name, "var(") == 1) {
|
|
99
100
|
@return $name;
|
|
100
101
|
// Else look up the color from the palette
|
|
101
102
|
} @else {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
/// - These are any type sizes that specify "base-class" in their configuration
|
|
13
13
|
/// - Type sizes with "base-class-prefixed" will be prefixed with the "type-" prefix
|
|
14
14
|
/// @example scss
|
|
15
|
-
///
|
|
15
|
+
/// @include ulu.base-typography-styles();
|
|
16
16
|
/// @example html {preview} Example of type size as base unprefixed
|
|
17
|
-
///
|
|
18
|
-
///
|
|
19
|
-
///
|
|
20
|
-
///
|
|
21
|
-
///
|
|
22
|
-
///
|
|
17
|
+
/// <span class="h1">A</span>
|
|
18
|
+
/// <span class="h2">A</span>
|
|
19
|
+
/// <span class="h3">A</span>
|
|
20
|
+
/// <span class="h4">A</span>
|
|
21
|
+
/// <span class="h5">A</span>
|
|
22
|
+
/// <span class="h6">A</span>
|
|
23
23
|
|
|
24
24
|
@mixin styles {
|
|
25
25
|
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
/// Module Settings
|
|
15
15
|
/// @type Map
|
|
16
|
-
/// @prop {Color} background-color [
|
|
17
|
-
/// @prop {Color} background-color-open [
|
|
16
|
+
/// @prop {Color} background-color [accordion-background] This is the background color of the accordion before it is expanded.
|
|
17
|
+
/// @prop {Color} background-color-open [accordion-background-open] This is the background color of the accordion before it is expanded. This will change the background color of the accordion's summary as well as the details.
|
|
18
18
|
/// @prop {String} border-color ["rule"]
|
|
19
19
|
/// @prop {Number} border-radius [0] This applies a rounding of edges for the accordion. If there are multiple accordions in a stack, this will only apply to the top of the first accordion and the bottom of the last accordion.
|
|
20
20
|
/// @prop {Dimension} border-width [1px] The width of the borders of the accordions
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
/// @prop {Dimension} transparent-padding-x [0] The upper and lower padding of the transparent summary.
|
|
42
42
|
|
|
43
43
|
$config: (
|
|
44
|
-
"background-color":
|
|
45
|
-
"background-color-open":
|
|
44
|
+
"background-color": "background",
|
|
45
|
+
"background-color-open": "background-gray",
|
|
46
46
|
"border-color": "rule",
|
|
47
47
|
"border-radius": 0,
|
|
48
48
|
"border-width": 1px,
|
|
@@ -59,7 +59,7 @@ $config: (
|
|
|
59
59
|
"icon-font-size": 1.5rem,
|
|
60
60
|
"icon-size": auto,
|
|
61
61
|
"icon-stroke-width": 0.15em,
|
|
62
|
-
"summary-background-color": white,
|
|
62
|
+
"summary-background-color": "white",
|
|
63
63
|
"summary-color": null,
|
|
64
64
|
"summary-background-color-hover": null,
|
|
65
65
|
"summary-color-hover": null,
|
|
@@ -72,7 +72,7 @@ $config: (
|
|
|
72
72
|
|
|
73
73
|
/// Change modules $config
|
|
74
74
|
/// @param {Map} $changes Map of changes
|
|
75
|
-
/// @example
|
|
75
|
+
/// @example scss
|
|
76
76
|
/// @include ulu.component-accordion-set(( "property" : value ));
|
|
77
77
|
|
|
78
78
|
@mixin set($changes) {
|
|
@@ -81,7 +81,7 @@ $config: (
|
|
|
81
81
|
|
|
82
82
|
/// Get a config option
|
|
83
83
|
/// @param {Map} $name Name of property
|
|
84
|
-
/// @example
|
|
84
|
+
/// @example scss
|
|
85
85
|
/// @include ulu.component-accordion-get("property");
|
|
86
86
|
|
|
87
87
|
@function get($name) {
|
|
@@ -107,7 +107,7 @@ $config: (
|
|
|
107
107
|
margin-top: get("margin");
|
|
108
108
|
margin-bottom: get("margin");
|
|
109
109
|
border: $border;
|
|
110
|
-
background-color: get("background-color");
|
|
110
|
+
background-color: color.get(get("background-color"));
|
|
111
111
|
box-shadow: get("box-shadow");
|
|
112
112
|
&:first-of-type {
|
|
113
113
|
border-top-left-radius: get("border-radius");
|
|
@@ -124,7 +124,7 @@ $config: (
|
|
|
124
124
|
}
|
|
125
125
|
&[open],
|
|
126
126
|
&.is-active {
|
|
127
|
-
background-color: get("background-color-open");
|
|
127
|
+
background-color: color.get(get("background-color-open"));
|
|
128
128
|
padding-bottom: get("padding-y");
|
|
129
129
|
z-index: 2; // Above child details
|
|
130
130
|
> #{ $prefix }__summary {
|
|
@@ -136,8 +136,8 @@ $config: (
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
#{ $prefix }__summary {
|
|
139
|
-
background-color: get("summary-background-color");
|
|
140
|
-
color: get("summary-color");
|
|
139
|
+
background-color: color.get(get("summary-background-color"));
|
|
140
|
+
color: color.get(get("summary-color"));
|
|
141
141
|
margin-left: -(get("padding-x"));
|
|
142
142
|
margin-right: -(get("padding-x"));
|
|
143
143
|
line-height: get("summary-line-height");
|
|
@@ -161,10 +161,10 @@ $config: (
|
|
|
161
161
|
@include typography.size(get("summary-type-size"));
|
|
162
162
|
}
|
|
163
163
|
&:hover {
|
|
164
|
-
background-color: get("summary-background-color-hover");
|
|
165
|
-
color: get("summary-color-hover");
|
|
164
|
+
background-color: color.get(get("summary-background-color-hover"));
|
|
165
|
+
color: color.get(get("summary-color-hover"));
|
|
166
166
|
#{ $prefix }__icon {
|
|
167
|
-
background-color: get("icon-background-color-hover");
|
|
167
|
+
background-color: color.get(get("icon-background-color-hover"));
|
|
168
168
|
color: color.get(get("icon-color-hover"));
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -174,7 +174,7 @@ $config: (
|
|
|
174
174
|
color: color.get(get("icon-color"));
|
|
175
175
|
margin-left: 0.5em;
|
|
176
176
|
order: 3;
|
|
177
|
-
background-color: get("icon-background-color");
|
|
177
|
+
background-color: color.get(get("icon-background-color"));
|
|
178
178
|
border-radius: get("icon-border-radius");
|
|
179
179
|
width: get("icon-size");
|
|
180
180
|
height: get("icon-size");
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
/// Module Settings
|
|
13
13
|
/// @type Map
|
|
14
|
-
/// @prop {Boolean} outputMargin [false]
|
|
14
|
+
/// @prop {Boolean} outputMargin [false] Toggles the output of margin classes.
|
|
15
15
|
/// @prop {Boolean} outputPadding [true] This is the background color of the accordion before it is expanded.
|
|
16
16
|
/// @prop {Boolean} outputX [true] This is the background color of the accordion before it is expanded.
|
|
17
17
|
/// @prop {Boolean} outputY [true] This is the background color of the accordion before it is expanded.
|
|
@@ -54,7 +54,7 @@ $sizes: (
|
|
|
54
54
|
|
|
55
55
|
/// Change modules $config
|
|
56
56
|
/// @param {Map} $changes Map of changes
|
|
57
|
-
/// @example
|
|
57
|
+
/// @example scss
|
|
58
58
|
/// @include ulu.component-adaptive-spacing-set(( "property" : value ));
|
|
59
59
|
|
|
60
60
|
@mixin set($changes) {
|
|
@@ -71,7 +71,7 @@ $sizes: (
|
|
|
71
71
|
|
|
72
72
|
/// Get a config option
|
|
73
73
|
/// @param {Map} $name Name of property
|
|
74
|
-
/// @example
|
|
74
|
+
/// @example scss
|
|
75
75
|
/// @include ulu.component-adaptive-spacing-get("property");
|
|
76
76
|
|
|
77
77
|
@function get($name) {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@use "sass:map";
|
|
7
7
|
@use "../utils";
|
|
8
8
|
@use "../selector";
|
|
9
|
+
@use "../color";
|
|
9
10
|
|
|
10
11
|
/// Module Settings
|
|
11
12
|
/// @type Map
|
|
@@ -34,7 +35,7 @@ $config: (
|
|
|
34
35
|
|
|
35
36
|
/// Change modules $config
|
|
36
37
|
/// @param {Map} $changes Map of changes
|
|
37
|
-
/// @example
|
|
38
|
+
/// @example scss
|
|
38
39
|
/// @include ulu.component-badge-set(( "property" : value ));
|
|
39
40
|
|
|
40
41
|
@mixin set($changes) {
|
|
@@ -43,7 +44,7 @@ $config: (
|
|
|
43
44
|
|
|
44
45
|
/// Get a config option
|
|
45
46
|
/// @param {Map} $name Name of property
|
|
46
|
-
/// @example
|
|
47
|
+
/// @example scss
|
|
47
48
|
/// @include ulu.component-badge-get("property");
|
|
48
49
|
|
|
49
50
|
@function get($name) {
|
|
@@ -94,8 +95,8 @@ $config: (
|
|
|
94
95
|
&:hover,
|
|
95
96
|
&:focus,
|
|
96
97
|
&:visited {
|
|
97
|
-
background-color: get("background-color");
|
|
98
|
-
color: get("color");
|
|
98
|
+
background-color: color.get(get("background-color"));
|
|
99
|
+
color: color.get(get("color"));
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
#{ $prefix }--clickable {
|
|
@@ -28,24 +28,24 @@ $-fallbacks: (
|
|
|
28
28
|
|
|
29
29
|
/// Module Settings
|
|
30
30
|
/// @type Map
|
|
31
|
-
/// @prop {Color} background-color [white]
|
|
32
|
-
/// @prop {Color} background-color-hover [link]
|
|
33
|
-
/// @prop {String} border-radius [border-radius]
|
|
34
|
-
/// @prop {
|
|
35
|
-
/// @prop {
|
|
36
|
-
/// @prop {String} color [type]
|
|
37
|
-
/// @prop {String} color-hover [type]
|
|
38
|
-
/// @prop {Color} icon-color [gray]
|
|
39
|
-
/// @prop {Dimension} icon-font-size [1.25rem] Font size
|
|
40
|
-
/// @prop {Number} line-height [1.2]
|
|
41
|
-
/// @prop {Dimension} margin [1em]
|
|
42
|
-
/// @prop {Dimension} margin-inline [0.75em]
|
|
43
|
-
/// @prop {Dimension} min-width [20rem]
|
|
44
|
-
/// @prop {Dimension} padding-x [0.65em]
|
|
45
|
-
/// @prop {Dimension} padding-y [1em]
|
|
46
|
-
/// @prop {String} title-color [link]
|
|
47
|
-
/// @prop {String} title-color-hover [link-hover]
|
|
48
|
-
/// @prop {Dimension} title-margin [0.5em]
|
|
31
|
+
/// @prop {Color} background-color [white] Background color for the button.
|
|
32
|
+
/// @prop {Color} background-color-hover [link] Background color for the button when hovered or focused.
|
|
33
|
+
/// @prop {String} border-radius [border-radius] Border radius of the button.
|
|
34
|
+
/// @prop {CssValue} box-shadow [true] Box shadow for the button. If set to true, uses default box-shadow.
|
|
35
|
+
/// @prop {CssValue} box-shadow-hover [true] Box shadow for the button when hovered or focused. If set to true, uses default box-shadow-hover.
|
|
36
|
+
/// @prop {String} color [type] Text color for the button.
|
|
37
|
+
/// @prop {String} color-hover [type] Text color for the button when hovered or focused.
|
|
38
|
+
/// @prop {Color} icon-color [gray] Color for button icons.
|
|
39
|
+
/// @prop {Dimension} icon-font-size [1.25rem] Font size for the button.
|
|
40
|
+
/// @prop {Number} line-height [1.2] Line height for button text.
|
|
41
|
+
/// @prop {Dimension} margin [1em] Margin for the button.
|
|
42
|
+
/// @prop {Dimension} margin-inline [0.75em] Margin for the button when using the inline modifier.
|
|
43
|
+
/// @prop {Dimension} min-width [20rem] Min-width of the button.
|
|
44
|
+
/// @prop {Dimension} padding-x [0.65em] Horizontal padding of the button.
|
|
45
|
+
/// @prop {Dimension} padding-y [1em] Vertical padding of the button.
|
|
46
|
+
/// @prop {String} title-color [link] Color of the title of the button.
|
|
47
|
+
/// @prop {String} title-color-hover [link-hover] Color of the title of the button when hovered or focused.
|
|
48
|
+
/// @prop {Dimension} title-margin [0.5em] Margin for the button's title.
|
|
49
49
|
|
|
50
50
|
$config: (
|
|
51
51
|
"background-color" : white,
|
|
@@ -70,7 +70,7 @@ $config: (
|
|
|
70
70
|
|
|
71
71
|
/// Change modules $config
|
|
72
72
|
/// @param {Map} $changes Map of changes
|
|
73
|
-
/// @example
|
|
73
|
+
/// @example scss
|
|
74
74
|
/// @include ulu.component-button-verbose-set(( "property" : value ));
|
|
75
75
|
|
|
76
76
|
@mixin set($changes) {
|
|
@@ -79,7 +79,7 @@ $config: (
|
|
|
79
79
|
|
|
80
80
|
/// Get a config option
|
|
81
81
|
/// @param {Map} $name Name of property
|
|
82
|
-
/// @example
|
|
82
|
+
/// @example scss
|
|
83
83
|
/// @include ulu.component-button-verbose-get(( "property" : value ));
|
|
84
84
|
|
|
85
85
|
@function get($name) {
|
|
@@ -102,7 +102,7 @@ $config: (
|
|
|
102
102
|
margin-bottom: get("margin");
|
|
103
103
|
max-width: 100%;
|
|
104
104
|
width: get("min-width");
|
|
105
|
-
background-color: get("background-color");
|
|
105
|
+
background-color: color.get(get("background-color"));
|
|
106
106
|
padding: get("padding-y") get("padding-x");
|
|
107
107
|
padding-right: (get("padding-x") * 2) + 1em;
|
|
108
108
|
color: color.get(get("color"));
|
|
@@ -126,7 +126,7 @@ $config: (
|
|
|
126
126
|
right: get("padding-x");
|
|
127
127
|
transform: translateY(-50%);
|
|
128
128
|
font-size: get("icon-font-size");
|
|
129
|
-
color: get("icon-color");
|
|
129
|
+
color: color.get(get("icon-color"));
|
|
130
130
|
}
|
|
131
131
|
.button-verbose--inline {
|
|
132
132
|
display: inline-block;
|
|
@@ -20,6 +20,7 @@ $config: (
|
|
|
20
20
|
|
|
21
21
|
/// Change modules $config
|
|
22
22
|
/// @param {Map} $changes Map of changes
|
|
23
|
+
/// @example scss
|
|
23
24
|
/// @include ulu.component-button-set(( "property" : value ));
|
|
24
25
|
|
|
25
26
|
@mixin set($changes) {
|
|
@@ -28,6 +29,7 @@ $config: (
|
|
|
28
29
|
|
|
29
30
|
/// Get a config option
|
|
30
31
|
/// @param {Map} $name Name of property
|
|
32
|
+
/// @example scss
|
|
31
33
|
/// @include ulu.component-button-get("property");
|
|
32
34
|
|
|
33
35
|
@function get($name) {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@use "../utils";
|
|
11
11
|
@use "../selector";
|
|
12
12
|
@use "../element";
|
|
13
|
+
@use "../color";
|
|
13
14
|
|
|
14
15
|
// Used for function fallback
|
|
15
16
|
$-fallbacks: (
|
|
@@ -93,7 +94,7 @@ $styles: (
|
|
|
93
94
|
|
|
94
95
|
/// Change modules $config
|
|
95
96
|
/// @param {Map} $changes Map of changes
|
|
96
|
-
/// @example
|
|
97
|
+
/// @example scss
|
|
97
98
|
/// @include ulu.component-callout-set(( "property" : value ));
|
|
98
99
|
|
|
99
100
|
@mixin set($changes) {
|
|
@@ -102,7 +103,7 @@ $styles: (
|
|
|
102
103
|
|
|
103
104
|
/// Get a config option
|
|
104
105
|
/// @param {Map} $name Name of property
|
|
105
|
-
/// @example
|
|
106
|
+
/// @example scss
|
|
106
107
|
/// @include ulu.component-callout-get("property");
|
|
107
108
|
|
|
108
109
|
@function get($name) {
|
|
@@ -133,7 +134,7 @@ $styles: (
|
|
|
133
134
|
top: 0;
|
|
134
135
|
bottom: 0;
|
|
135
136
|
width: $width;
|
|
136
|
-
background-color: $color;
|
|
137
|
+
background-color: color.get($color);
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -145,7 +146,7 @@ $styles: (
|
|
|
145
146
|
$prefix: selector.class("callout");
|
|
146
147
|
|
|
147
148
|
#{ $prefix } {
|
|
148
|
-
background-color: get("background-color");
|
|
149
|
+
background-color: color.get(get("background-color"));
|
|
149
150
|
padding: get("padding");
|
|
150
151
|
border: get("border");
|
|
151
152
|
margin-bottom: get("margin");
|
|
@@ -160,11 +161,11 @@ $styles: (
|
|
|
160
161
|
}
|
|
161
162
|
@each $name, $style in $styles {
|
|
162
163
|
#{ $prefix }--#{ $name } {
|
|
163
|
-
background-color: map.get($style, "background-color");
|
|
164
|
-
color: map.get($style, "color");
|
|
164
|
+
background-color: color.get(map.get($style, "background-color"));
|
|
165
|
+
color: color.get(map.get($style, "color"));
|
|
165
166
|
border: map.get($style, "border");
|
|
166
167
|
border-radius: map.get($style, "border-radius");
|
|
167
|
-
border-color: map.get($style, "border-color");
|
|
168
|
+
border-color: color.get(map.get($style, "border-color"));
|
|
168
169
|
box-shadow: map.get($style, "box-shadow");
|
|
169
170
|
padding: map.get($style, "padding");
|
|
170
171
|
@if map.get($style, "left-cap") {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@use "../utils";
|
|
11
11
|
@use "../element";
|
|
12
12
|
@use "../typography";
|
|
13
|
+
@use "../color";
|
|
13
14
|
|
|
14
15
|
// Used for function fallback
|
|
15
16
|
$-fallbacks: (
|
|
@@ -52,7 +53,7 @@ $config: (
|
|
|
52
53
|
|
|
53
54
|
/// Change modules $config
|
|
54
55
|
/// @param {Map} $changes Map of changes
|
|
55
|
-
/// @example
|
|
56
|
+
/// @example scss
|
|
56
57
|
/// @include ulu.component-captioned-figure-set(( "property" : value ));
|
|
57
58
|
|
|
58
59
|
@mixin set($changes) {
|
|
@@ -61,7 +62,7 @@ $config: (
|
|
|
61
62
|
|
|
62
63
|
/// Get a config option
|
|
63
64
|
/// @param {Map} $name Name of property
|
|
64
|
-
/// @example
|
|
65
|
+
/// @example scss
|
|
65
66
|
/// @include ulu.component-captioned-figure-get("property");
|
|
66
67
|
|
|
67
68
|
@function get($name) {
|
|
@@ -71,7 +72,6 @@ $config: (
|
|
|
71
72
|
|
|
72
73
|
/// Prints component styles
|
|
73
74
|
/// @example scss
|
|
74
|
-
/// @example
|
|
75
75
|
/// @include ulu.component-captioned-figure-styles();
|
|
76
76
|
|
|
77
77
|
@mixin styles {
|
|
@@ -83,7 +83,7 @@ $config: (
|
|
|
83
83
|
display: block;
|
|
84
84
|
position: relative;
|
|
85
85
|
margin-bottom: get("margin-bottom");
|
|
86
|
-
background-color: get("background-color");
|
|
86
|
+
background-color: color.get(get("background-color"));
|
|
87
87
|
> img {
|
|
88
88
|
width: 100%;
|
|
89
89
|
height: auto;
|
|
@@ -102,20 +102,20 @@ $config: (
|
|
|
102
102
|
}
|
|
103
103
|
#{ $prefix }__caption {
|
|
104
104
|
position: absolute;
|
|
105
|
-
color: get("color");
|
|
105
|
+
color: color.get(get("color"));
|
|
106
106
|
@include typography.size(get("type-size"), $only-font-size: true);
|
|
107
107
|
line-height: get("line-height");
|
|
108
108
|
max-width: get("caption-max-width");
|
|
109
|
-
background-color: get("caption-background-color");
|
|
109
|
+
background-color: color.get(get("caption-background-color"));
|
|
110
110
|
padding: get("caption-padding");
|
|
111
111
|
backdrop-filter: get("caption-backdrop-filter");
|
|
112
112
|
}
|
|
113
113
|
#{ $prefix }--traditional {
|
|
114
114
|
#{ $prefix }__caption {
|
|
115
115
|
position: static;
|
|
116
|
-
color: get("traditional-caption-color");
|
|
116
|
+
color: color.get(get("traditional-caption-color"));
|
|
117
117
|
max-width: get("traditional-caption-max-width");
|
|
118
|
-
background-color: get("traditional-caption-background-color");
|
|
118
|
+
background-color: color.get(get("traditional-caption-background-color"));
|
|
119
119
|
padding: get("traditional-caption-padding");
|
|
120
120
|
text-align: get("traditional-caption-text-align");
|
|
121
121
|
@if (get("traditional-caption-text-align") == right) {
|
|
@@ -25,7 +25,7 @@ $config: (
|
|
|
25
25
|
|
|
26
26
|
/// Change modules $config
|
|
27
27
|
/// @param {Map} $changes Map of changes
|
|
28
|
-
/// @example
|
|
28
|
+
/// @example scss
|
|
29
29
|
/// @include ulu.component-card-grid-set(( "property" : value ));
|
|
30
30
|
|
|
31
31
|
@mixin set($changes) {
|
|
@@ -34,7 +34,7 @@ $config: (
|
|
|
34
34
|
|
|
35
35
|
/// Get a config option
|
|
36
36
|
/// @param {Map} $name Name of property
|
|
37
|
-
/// @example
|
|
37
|
+
/// @example scss
|
|
38
38
|
/// @include ulu.component-card-grid-get("property");
|
|
39
39
|
|
|
40
40
|
@function get($name) {
|