@ulu/frontend 0.1.0-beta.115 → 0.1.0-beta.117
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 +8 -1
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/changelog/index.html +74 -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 +60 -0
- package/docs-dev/demos/breadcrumb/index.html +60 -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 +60 -0
- 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 +60 -0
- package/docs-dev/demos/definition-list/index.html +6011 -0
- 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/progress-bar/index.html +60 -0
- package/docs-dev/demos/progress-circle/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/skeleton/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 +511 -1291
- package/docs-dev/javascript/index.html +60 -0
- package/docs-dev/javascript/settings/index.html +64 -380
- package/docs-dev/javascript/ui-breakpoints/index.html +545 -1115
- package/docs-dev/javascript/ui-collapsible/index.html +545 -1115
- package/docs-dev/javascript/ui-details-group/index.html +60 -390
- package/docs-dev/javascript/ui-dialog/index.html +60 -240
- package/docs-dev/javascript/ui-flipcard/index.html +64 -380
- package/docs-dev/javascript/ui-grid/index.html +341 -2503
- package/docs-dev/javascript/ui-modal-builder/index.html +341 -2503
- package/docs-dev/javascript/ui-overflow-scroller/index.html +335 -2467
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +335 -2467
- package/docs-dev/javascript/ui-page/index.html +64 -380
- package/docs-dev/javascript/ui-popover/index.html +64 -380
- package/docs-dev/javascript/ui-print/index.html +64 -380
- package/docs-dev/javascript/ui-print-details/index.html +64 -380
- package/docs-dev/javascript/ui-programmatic-modal/index.html +64 -380
- package/docs-dev/javascript/ui-proxy-click/index.html +64 -380
- package/docs-dev/javascript/ui-resizer/index.html +64 -380
- package/docs-dev/javascript/ui-scroll-slider/index.html +64 -380
- package/docs-dev/javascript/ui-scrollpoint/index.html +64 -380
- package/docs-dev/javascript/ui-slider/index.html +64 -380
- package/docs-dev/javascript/ui-tabs/index.html +64 -380
- package/docs-dev/javascript/ui-theme-toggle/index.html +64 -380
- package/docs-dev/javascript/ui-tooltip/index.html +64 -380
- package/docs-dev/javascript/utils-class-logger/index.html +64 -380
- package/docs-dev/javascript/utils-css/index.html +64 -380
- package/docs-dev/javascript/utils-dom/index.html +64 -380
- package/docs-dev/javascript/utils-file-save/index.html +64 -380
- package/docs-dev/javascript/utils-floating-ui/index.html +64 -380
- package/docs-dev/javascript/utils-id/index.html +64 -380
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +64 -380
- package/docs-dev/javascript/utils-system/index.html +64 -380
- package/docs-dev/sass/base/color/index.html +64 -380
- package/docs-dev/sass/base/elements/index.html +64 -380
- package/docs-dev/sass/base/index/index.html +64 -380
- package/docs-dev/sass/base/index.html +60 -0
- package/docs-dev/sass/base/keyframes/index.html +64 -380
- package/docs-dev/sass/base/layout/index.html +64 -380
- package/docs-dev/sass/base/normalize/index.html +64 -380
- package/docs-dev/sass/base/print/index.html +64 -380
- package/docs-dev/sass/base/root/index.html +60 -0
- package/docs-dev/sass/base/typography/index.html +60 -0
- package/docs-dev/sass/components/accordion/index.html +61 -1
- package/docs-dev/sass/components/adaptive-spacing/index.html +60 -0
- package/docs-dev/sass/components/badge/index.html +60 -0
- package/docs-dev/sass/components/badge-stack/index.html +60 -0
- package/docs-dev/sass/components/basic-hero/index.html +60 -0
- package/docs-dev/sass/components/breadcrumb/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/definition-list/index.html +6107 -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/progress-bar/index.html +60 -0
- package/docs-dev/sass/components/progress-circle/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/skeleton/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 +2 -2
- package/scss/components/_definition-list.scss +170 -0
- package/scss/components/_index.scss +6 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group definition-list
|
|
3
|
+
/// Definition list styles
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
@use "sass:map";
|
|
7
|
+
@use "sass:meta";
|
|
8
|
+
@use "sass:math";
|
|
9
|
+
|
|
10
|
+
@use "../selector";
|
|
11
|
+
@use "../utils";
|
|
12
|
+
@use "../color";
|
|
13
|
+
@use "../typography";
|
|
14
|
+
@use "../breakpoint";
|
|
15
|
+
@use "../element";
|
|
16
|
+
|
|
17
|
+
// Used for function fallback
|
|
18
|
+
$-fallbacks: (
|
|
19
|
+
"term-font-weight": (
|
|
20
|
+
"function": meta.get-function("get", false, "typography"),
|
|
21
|
+
"property": "font-weight-bold"
|
|
22
|
+
),
|
|
23
|
+
"line-height": (
|
|
24
|
+
"function": meta.get-function("get", false, "typography"),
|
|
25
|
+
"property": "line-height-dense"
|
|
26
|
+
),
|
|
27
|
+
"separator-border": (
|
|
28
|
+
"function": meta.get-function("get-rule-style", false, "element"),
|
|
29
|
+
"arguments": ("light",)
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
/// Module Settings
|
|
34
|
+
/// @type Map
|
|
35
|
+
/// @prop {String} term-font-weight [true] The font-weight of the dt element.
|
|
36
|
+
/// @prop {Dimension} line-height [true] The line-height of the definition list.
|
|
37
|
+
/// @prop {CssUnit} item-margin [0.75em] The spacing for each item.
|
|
38
|
+
/// @prop {Boolean} separator [true] Whether to show a separator between items.
|
|
39
|
+
/// @prop {Border} separator-border [true] The border style for the separator.
|
|
40
|
+
/// @prop {Dimension} separator-padding [0.75em] The padding for the separator.
|
|
41
|
+
/// @prop {String} table-breakpoint [medium] The breakpoint for the table layout.
|
|
42
|
+
/// @prop {String} table-template-columns [(25% 75%)] The grid-template-columns for the table layout.
|
|
43
|
+
/// @prop {Dimension} table-gap [1rem] The gap for the table layout.
|
|
44
|
+
/// @prop {String} inline-description-separator [","] The separator for multiple dd elements in inline layout.
|
|
45
|
+
/// @prop {String} inline-term-separator [":"] The separator for dt elements in inline layout.
|
|
46
|
+
|
|
47
|
+
$config: (
|
|
48
|
+
"margin" : (0 0 1.5em 0),
|
|
49
|
+
"term-font-weight": true,
|
|
50
|
+
"line-height": true,
|
|
51
|
+
"item-margin" : 1em,
|
|
52
|
+
"separator": true,
|
|
53
|
+
"separator-border": true,
|
|
54
|
+
"table-breakpoint": "medium",
|
|
55
|
+
"table-template-columns": (25% 75%),
|
|
56
|
+
"table-gap": 1rem,
|
|
57
|
+
"inline-description-separator": ",",
|
|
58
|
+
"inline-term-separator": ":",
|
|
59
|
+
"compact-item-margin" : 0.5em
|
|
60
|
+
) !default;
|
|
61
|
+
|
|
62
|
+
/// Change modules $config
|
|
63
|
+
/// @param {Map} $changes Map of changes
|
|
64
|
+
/// @example scss
|
|
65
|
+
/// @include ulu.component-definition-list-set(( "property" : value ));
|
|
66
|
+
|
|
67
|
+
@mixin set($changes) {
|
|
68
|
+
$config: map.merge($config, $changes) !global;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/// Get a config option
|
|
72
|
+
/// @param {Map} $name Name of property
|
|
73
|
+
/// @example scss
|
|
74
|
+
/// @include ulu.component-definition-list-get("property");
|
|
75
|
+
|
|
76
|
+
@function get($name) {
|
|
77
|
+
$value: utils.require-map-get($config, $name, "definition-list [config]");
|
|
78
|
+
@return utils.function-fallback($name, $value, $-fallbacks);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/// Prints component styles
|
|
82
|
+
/// @demo definition-list
|
|
83
|
+
/// @example scss
|
|
84
|
+
/// @include ulu.component-definition-list-styles();
|
|
85
|
+
|
|
86
|
+
@mixin styles {
|
|
87
|
+
$prefix: selector.class("definition-list");
|
|
88
|
+
$item-margin-half: math.div(get("item-margin"), 2);
|
|
89
|
+
$compact-item-margin-half: math.div(get("compact-item-margin"), 2);
|
|
90
|
+
|
|
91
|
+
#{ $prefix } {
|
|
92
|
+
line-height: get("line-height");
|
|
93
|
+
margin: get("margin");
|
|
94
|
+
|
|
95
|
+
> div {
|
|
96
|
+
margin-top: $item-margin-half;
|
|
97
|
+
padding-top: $item-margin-half;
|
|
98
|
+
}
|
|
99
|
+
dt,
|
|
100
|
+
dd {
|
|
101
|
+
display: block;
|
|
102
|
+
margin: 0;
|
|
103
|
+
font-weight: normal;
|
|
104
|
+
}
|
|
105
|
+
dt {
|
|
106
|
+
font-weight: get("term-font-weight");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Modifiers
|
|
111
|
+
#{ $prefix }--table {
|
|
112
|
+
@include breakpoint.min(get("table-breakpoint")) {
|
|
113
|
+
> div {
|
|
114
|
+
display: grid;
|
|
115
|
+
grid-template-columns: get("table-template-columns");
|
|
116
|
+
gap: get("table-gap");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
#{ $prefix }--inline,
|
|
122
|
+
#{ $prefix }--inline-all {
|
|
123
|
+
> div {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
align-items: baseline;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
dd + dd {
|
|
130
|
+
&::before {
|
|
131
|
+
content: get("inline-description-separator");
|
|
132
|
+
margin-right: 0.2em;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
#{ $prefix }--inline {
|
|
138
|
+
dt {
|
|
139
|
+
flex-basis: 100%;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#{ $prefix }--inline-all {
|
|
144
|
+
dt {
|
|
145
|
+
&::after {
|
|
146
|
+
content: get("inline-term-separator");
|
|
147
|
+
margin-right: 0.2em;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#{ $prefix }--separated > div:not(:first-child),
|
|
153
|
+
#{ $prefix }--separated-first > div:first-child {
|
|
154
|
+
border-top: get("separator-border");
|
|
155
|
+
}
|
|
156
|
+
#{ $prefix }--separated-last > div:last-child {
|
|
157
|
+
border-bottom: get("separator-border");
|
|
158
|
+
padding-bottom: $item-margin-half;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
#{ $prefix }--compact {
|
|
162
|
+
> div {
|
|
163
|
+
margin-top: $compact-item-margin-half;
|
|
164
|
+
padding-top: $compact-item-margin-half;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
#{ $prefix }--compact#{ $prefix }--separated-last > div:last-child {
|
|
168
|
+
padding-bottom: $compact-item-margin-half;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
@forward "css-icon" as css-icon-*;
|
|
20
20
|
@forward "data-grid" as data-grid-*;
|
|
21
21
|
@forward "data-table" as data-table-*;
|
|
22
|
+
@forward "definition-list" as definition-list-*;
|
|
22
23
|
@forward "fill-context" as fill-context-*;
|
|
23
24
|
@forward "flipcard" as flipcard-*;
|
|
24
25
|
@forward "flipcard-grid" as flipcard-grid-*;
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
@use "css-icon";
|
|
81
82
|
@use "data-grid";
|
|
82
83
|
@use "data-table";
|
|
84
|
+
@use "definition-list";
|
|
83
85
|
@use "fill-context";
|
|
84
86
|
@use "flipcard";
|
|
85
87
|
@use "flipcard-grid";
|
|
@@ -142,6 +144,7 @@ $all-includes: (
|
|
|
142
144
|
"css-icon",
|
|
143
145
|
"data-grid",
|
|
144
146
|
"data-table",
|
|
147
|
+
"definition-list",
|
|
145
148
|
"fill-context",
|
|
146
149
|
"flipcard",
|
|
147
150
|
"flipcard-grid",
|
|
@@ -272,6 +275,9 @@ $current-includes: $all-includes;
|
|
|
272
275
|
@if (list.index($includes, "data-table")) {
|
|
273
276
|
@include data-table.styles;
|
|
274
277
|
}
|
|
278
|
+
@if (list.index($includes, "definition-list")) {
|
|
279
|
+
@include definition-list.styles;
|
|
280
|
+
}
|
|
275
281
|
@if (list.index($includes, "fill-context")) {
|
|
276
282
|
@include fill-context.styles;
|
|
277
283
|
}
|