@ulu/frontend 0.1.0-beta.90 → 0.1.0-beta.92
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 +9 -0
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/changelog/index.html +82 -0
- package/docs-dev/demos/accordion/index.html +60 -0
- package/docs-dev/demos/badge/index.html +60 -0
- package/docs-dev/demos/badge-stack/index.html +5576 -0
- package/docs-dev/demos/badge.1/index.html +5595 -0
- package/docs-dev/demos/breakpoints-manager/index.html +60 -0
- package/docs-dev/demos/button/index.html +60 -0
- package/docs-dev/demos/button-group/index.html +60 -0
- package/docs-dev/demos/button-verbose/index.html +60 -0
- package/docs-dev/demos/callout/index.html +60 -0
- package/docs-dev/demos/captioned-figure/index.html +60 -0
- package/docs-dev/demos/card/index.html +76 -16
- package/docs-dev/demos/card-grid/index.html +60 -0
- package/docs-dev/demos/counter-list/index.html +60 -0
- package/docs-dev/demos/css-icons/index.html +60 -0
- package/docs-dev/demos/data-grid/index.html +60 -0
- package/docs-dev/demos/data-table/index.html +160 -100
- package/docs-dev/demos/details-group/index.html +60 -0
- package/docs-dev/demos/file-save/index.html +60 -0
- package/docs-dev/demos/flipcard/index.html +60 -0
- package/docs-dev/demos/form-theme/index.html +60 -0
- package/docs-dev/demos/headline-label/index.html +60 -0
- package/docs-dev/demos/index.html +60 -0
- package/docs-dev/demos/list-inline/index.html +60 -0
- package/docs-dev/demos/list-lines/index.html +60 -0
- package/docs-dev/demos/menu-stack/index.html +60 -0
- package/docs-dev/demos/modals/index.html +60 -0
- package/docs-dev/demos/nav-strip/index.html +60 -0
- package/docs-dev/demos/overlay-section/index.html +60 -0
- package/docs-dev/demos/panel/index.html +60 -0
- package/docs-dev/demos/popovers/index.html +60 -0
- package/docs-dev/demos/print/index.html +60 -0
- package/docs-dev/demos/pull-quote/index.html +60 -0
- package/docs-dev/demos/rail/index.html +60 -0
- package/docs-dev/demos/rule/index.html +60 -0
- package/docs-dev/demos/scrollpoints/index.html +60 -0
- package/docs-dev/demos/spoke-spinner/index.html +60 -0
- package/docs-dev/demos/sticky-list/index.html +60 -0
- package/docs-dev/demos/tabs/index.html +60 -0
- package/docs-dev/demos/tag/index.html +60 -0
- package/docs-dev/demos/theme-toggle/index.html +60 -0
- package/docs-dev/demos/tiles/index.html +60 -0
- package/docs-dev/demos/tooltip/index.html +60 -0
- package/docs-dev/demos/wysiwyg/index.html +60 -0
- package/docs-dev/guide/building-stylesheet/index.html +60 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +60 -0
- package/docs-dev/guide/index.html +60 -0
- package/docs-dev/index.html +60 -0
- package/docs-dev/javascript/events/index.html +60 -0
- package/docs-dev/javascript/index.html +60 -0
- package/docs-dev/javascript/settings/index.html +60 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +60 -0
- package/docs-dev/javascript/ui-collapsible/index.html +60 -0
- package/docs-dev/javascript/ui-details-group/index.html +60 -0
- package/docs-dev/javascript/ui-dialog/index.html +60 -0
- package/docs-dev/javascript/ui-flipcard/index.html +60 -0
- package/docs-dev/javascript/ui-grid/index.html +60 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +60 -0
- package/docs-dev/javascript/ui-overflow-scroller/index.html +60 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +60 -0
- package/docs-dev/javascript/ui-page/index.html +60 -0
- package/docs-dev/javascript/ui-popover/index.html +60 -0
- package/docs-dev/javascript/ui-print/index.html +60 -0
- package/docs-dev/javascript/ui-print-details/index.html +60 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +60 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +60 -0
- package/docs-dev/javascript/ui-resizer/index.html +60 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +60 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +60 -0
- package/docs-dev/javascript/ui-slider/index.html +60 -0
- package/docs-dev/javascript/ui-tabs/index.html +60 -0
- package/docs-dev/javascript/ui-theme-toggle/index.html +60 -0
- package/docs-dev/javascript/ui-tooltip/index.html +60 -0
- package/docs-dev/javascript/utils-class-logger/index.html +60 -0
- package/docs-dev/javascript/utils-css/index.html +60 -0
- package/docs-dev/javascript/utils-dom/index.html +60 -0
- package/docs-dev/javascript/utils-file-save/index.html +60 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +60 -0
- package/docs-dev/javascript/utils-id/index.html +60 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +60 -0
- package/docs-dev/javascript/utils-system/index.html +60 -0
- package/docs-dev/sass/base/color/index.html +60 -0
- package/docs-dev/sass/base/elements/index.html +68 -8
- package/docs-dev/sass/base/index/index.html +61 -1
- package/docs-dev/sass/base/index.html +60 -0
- package/docs-dev/sass/base/keyframes/index.html +60 -0
- package/docs-dev/sass/base/layout/index.html +61 -1
- package/docs-dev/sass/base/normalize/index.html +60 -0
- package/docs-dev/sass/base/print/index.html +61 -1
- package/docs-dev/sass/base/root/index.html +64 -4
- package/docs-dev/sass/base/typography/index.html +60 -0
- package/docs-dev/sass/components/accordion/index.html +60 -0
- package/docs-dev/sass/components/adaptive-spacing/index.html +60 -0
- package/docs-dev/sass/components/badge/index.html +81 -14
- package/docs-dev/sass/components/badge-stack/index.html +5751 -0
- package/docs-dev/sass/components/basic-hero/index.html +60 -0
- package/docs-dev/sass/components/button/index.html +60 -0
- package/docs-dev/sass/components/button-group/index.html +60 -0
- package/docs-dev/sass/components/button-verbose/index.html +60 -0
- package/docs-dev/sass/components/callout/index.html +60 -0
- package/docs-dev/sass/components/captioned-figure/index.html +60 -0
- package/docs-dev/sass/components/card/index.html +60 -0
- package/docs-dev/sass/components/card-grid/index.html +60 -0
- package/docs-dev/sass/components/counter-list/index.html +60 -0
- package/docs-dev/sass/components/css-icon/index.html +60 -0
- package/docs-dev/sass/components/data-grid/index.html +60 -0
- package/docs-dev/sass/components/data-table/index.html +60 -0
- package/docs-dev/sass/components/fill-context/index.html +60 -0
- package/docs-dev/sass/components/flipcard/index.html +60 -0
- package/docs-dev/sass/components/flipcard-grid/index.html +60 -0
- package/docs-dev/sass/components/form-theme/index.html +60 -0
- package/docs-dev/sass/components/headline-label/index.html +60 -0
- package/docs-dev/sass/components/hero/index.html +60 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +60 -0
- package/docs-dev/sass/components/image-grid/index.html +60 -0
- package/docs-dev/sass/components/index/index.html +71 -10
- package/docs-dev/sass/components/index.html +60 -0
- package/docs-dev/sass/components/links/index.html +60 -0
- package/docs-dev/sass/components/list-inline/index.html +60 -0
- package/docs-dev/sass/components/list-lines/index.html +60 -0
- package/docs-dev/sass/components/list-ordered/index.html +60 -0
- package/docs-dev/sass/components/list-unordered/index.html +60 -0
- package/docs-dev/sass/components/menu-stack/index.html +60 -0
- package/docs-dev/sass/components/modal/index.html +60 -0
- package/docs-dev/sass/components/nav-strip/index.html +60 -0
- package/docs-dev/sass/components/overlay-section/index.html +60 -0
- package/docs-dev/sass/components/pager/index.html +60 -0
- package/docs-dev/sass/components/panel/index.html +60 -0
- package/docs-dev/sass/components/placeholder-block/index.html +60 -0
- package/docs-dev/sass/components/popover/index.html +60 -0
- package/docs-dev/sass/components/pull-quote/index.html +60 -0
- package/docs-dev/sass/components/rail/index.html +60 -0
- package/docs-dev/sass/components/ratio-box/index.html +60 -0
- package/docs-dev/sass/components/rule/index.html +60 -0
- package/docs-dev/sass/components/scroll-slider/index.html +60 -0
- package/docs-dev/sass/components/skip-link/index.html +60 -0
- package/docs-dev/sass/components/slider/index.html +60 -0
- package/docs-dev/sass/components/spoke-spinner/index.html +60 -0
- package/docs-dev/sass/components/sticky-list/index.html +60 -0
- package/docs-dev/sass/components/tabs/index.html +60 -0
- package/docs-dev/sass/components/tag/index.html +60 -0
- package/docs-dev/sass/components/tile-button/index.html +60 -0
- package/docs-dev/sass/components/tile-grid/index.html +60 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +60 -0
- package/docs-dev/sass/components/vignette/index.html +60 -0
- package/docs-dev/sass/components/wysiwyg/index.html +60 -0
- package/docs-dev/sass/core/breakpoint/index.html +60 -0
- package/docs-dev/sass/core/button/index.html +60 -0
- package/docs-dev/sass/core/color/index.html +60 -0
- package/docs-dev/sass/core/cssvar/index.html +60 -0
- package/docs-dev/sass/core/element/index.html +60 -0
- package/docs-dev/sass/core/index.html +60 -0
- package/docs-dev/sass/core/layout/index.html +60 -0
- package/docs-dev/sass/core/path/index.html +60 -0
- package/docs-dev/sass/core/selector/index.html +60 -0
- package/docs-dev/sass/core/typography/index.html +60 -0
- package/docs-dev/sass/core/units/index.html +60 -0
- package/docs-dev/sass/core/utils/index.html +60 -0
- package/docs-dev/sass/helpers/color/index.html +60 -0
- package/docs-dev/sass/helpers/display/index.html +60 -0
- package/docs-dev/sass/helpers/index/index.html +60 -0
- package/docs-dev/sass/helpers/index.html +60 -0
- package/docs-dev/sass/helpers/typography/index.html +60 -0
- package/docs-dev/sass/helpers/units/index.html +60 -0
- package/docs-dev/sass/helpers/utilities/index.html +60 -0
- package/docs-dev/sass/index.html +60 -0
- package/package.json +1 -1
- package/scss/base/_index.scss +1 -1
- package/scss/components/_badge-stack.scss +84 -0
- package/scss/components/_badge.scss +7 -3
- package/scss/components/_index.scss +6 -0
package/scss/base/_index.scss
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group badge-stack
|
|
3
|
+
/// Stacks badges
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
@use "sass:map";
|
|
7
|
+
@use "../utils";
|
|
8
|
+
@use "../selector";
|
|
9
|
+
@use "../color";
|
|
10
|
+
@use "badge";
|
|
11
|
+
|
|
12
|
+
/// Module Settings
|
|
13
|
+
/// @type Map
|
|
14
|
+
/// @prop {Dimension} width [10rem] Width of the badge stack
|
|
15
|
+
/// @prop {Dimension} overlap [-5px] Right margin for stacked items
|
|
16
|
+
/// @prop {Dimension} border-width [3px] Border width for stacked items
|
|
17
|
+
|
|
18
|
+
$config: (
|
|
19
|
+
"width": 10rem,
|
|
20
|
+
"overlap": -5px,
|
|
21
|
+
"border-width": 3px,
|
|
22
|
+
"border-color" : "accent"
|
|
23
|
+
) !default;
|
|
24
|
+
|
|
25
|
+
/// Change modules $config
|
|
26
|
+
/// @param {Map} $changes Map of changes
|
|
27
|
+
/// @example scss
|
|
28
|
+
/// @include ulu.component-badge-stack-set(( "property" : value ));
|
|
29
|
+
|
|
30
|
+
@mixin set($changes) {
|
|
31
|
+
$config: map.merge($config, $changes) !global;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/// Get a config option
|
|
35
|
+
/// @param {Map} $name Name of property
|
|
36
|
+
/// @example scss
|
|
37
|
+
/// @include ulu.component-badge-stack-get("property");
|
|
38
|
+
|
|
39
|
+
@function get($name) {
|
|
40
|
+
@return utils.require-map-get($config, $name, "badge-stack [config]");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/// Prints component styles
|
|
44
|
+
/// @demo badge-stack
|
|
45
|
+
/// @example scss
|
|
46
|
+
/// @include ulu.component-badge-stack-styles();
|
|
47
|
+
|
|
48
|
+
@mixin styles {
|
|
49
|
+
$prefix: selector.class("badge-stack");
|
|
50
|
+
$prefix-badge: selector.class("badge");
|
|
51
|
+
|
|
52
|
+
#{ $prefix } {
|
|
53
|
+
width: get("width");
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
#{ $prefix }__item {
|
|
57
|
+
flex: 0 1 min-content;
|
|
58
|
+
margin-right: get("overlap");
|
|
59
|
+
|
|
60
|
+
#{ $prefix-badge }__inner {
|
|
61
|
+
// box-shadow: ulu.element-get("box-shadow");
|
|
62
|
+
position: relative;
|
|
63
|
+
&:before {
|
|
64
|
+
content: '';
|
|
65
|
+
display: block;
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: -1px;
|
|
68
|
+
bottom: -1px;
|
|
69
|
+
left: -1px;
|
|
70
|
+
right: -1px;
|
|
71
|
+
border-radius: badge.get("border-radius");
|
|
72
|
+
border: get("border-width") solid color.get(get("border-color"));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
#{ $prefix-badge } {
|
|
76
|
+
&:focus,
|
|
77
|
+
&:hover {
|
|
78
|
+
#{ $prefix-badge }__inner {
|
|
79
|
+
z-index: 2;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -26,8 +26,9 @@ $-fallbacks: (
|
|
|
26
26
|
/// @prop {Number} font-size [1.3rem] Font size (basic ie. 1.3rem) for badge
|
|
27
27
|
/// @prop {Number} font-weight [bold] Font weight
|
|
28
28
|
/// @prop {Number} font-family [true] Specify font family, defaults to typography font-family-sans
|
|
29
|
-
/// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
|
|
30
29
|
/// @prop {Number} width [10rem] Width of badge (default size)
|
|
30
|
+
/// @prop {Number} hover-scale [1.2] Scale of badge (if clickable) on hover (enlarges badge)
|
|
31
|
+
/// @prop {List} sizes [Object] List of other sizes (large by default), each size is a map of (width, font-size)
|
|
31
32
|
|
|
32
33
|
$config: (
|
|
33
34
|
"background-color": gray,
|
|
@@ -37,6 +38,7 @@ $config: (
|
|
|
37
38
|
"font-weight": bold,
|
|
38
39
|
"font-family": true,
|
|
39
40
|
"width": 7rem,
|
|
41
|
+
"hover-scale": 1.2,
|
|
40
42
|
"sizes" : (
|
|
41
43
|
"small" : (
|
|
42
44
|
"font-size" : 1.2rem,
|
|
@@ -117,11 +119,13 @@ $config: (
|
|
|
117
119
|
color: color.get(get("color"));
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
#{ $prefix }--clickable
|
|
122
|
+
#{ $prefix }--clickable,
|
|
123
|
+
button#{ $prefix },
|
|
124
|
+
a#{ $prefix } {
|
|
121
125
|
&:hover,
|
|
122
126
|
&:focus {
|
|
123
127
|
#{ $prefix }__inner {
|
|
124
|
-
transform: scale(
|
|
128
|
+
transform: scale(get("hover-scale"));
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@forward "accordion" as accordion-*;
|
|
7
7
|
@forward "adaptive-spacing" as adaptive-spacing-*;
|
|
8
8
|
@forward "badge" as badge-*;
|
|
9
|
+
@forward "badge-stack" as badge-stack-*;
|
|
9
10
|
@forward "basic-hero" as basic-hero-*;
|
|
10
11
|
@forward "button" as button-*;
|
|
11
12
|
@forward "button-group" as button-group-*;
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
@use "adaptive-spacing";
|
|
63
64
|
@use "accordion";
|
|
64
65
|
@use "badge";
|
|
66
|
+
@use "badge-stack";
|
|
65
67
|
@use "basic-hero";
|
|
66
68
|
@use "button";
|
|
67
69
|
@use "button-group";
|
|
@@ -119,6 +121,7 @@ $all-includes: (
|
|
|
119
121
|
"accordion",
|
|
120
122
|
"adaptive-spacing",
|
|
121
123
|
"badge",
|
|
124
|
+
"badge-stack",
|
|
122
125
|
"basic-hero",
|
|
123
126
|
"button",
|
|
124
127
|
"button-group",
|
|
@@ -223,6 +226,9 @@ $current-includes: $all-includes;
|
|
|
223
226
|
@if (list.index($includes, "badge")) {
|
|
224
227
|
@include badge.styles;
|
|
225
228
|
}
|
|
229
|
+
@if (list.index($includes, "badge-stack")) {
|
|
230
|
+
@include badge-stack.styles;
|
|
231
|
+
}
|
|
226
232
|
@if (list.index($includes, "basic-hero")) {
|
|
227
233
|
@include basic-hero.styles;
|
|
228
234
|
}
|