@db-ux/core-components 4.4.2 → 4.5.0
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 +18 -0
- package/build/components/accordion/accordion.css +0 -14
- package/build/components/accordion-item/accordion-item.css +38 -29
- package/build/components/accordion-item/accordion-item.scss +1 -1
- package/build/components/badge/badge.css +75 -33
- package/build/components/badge/badge.scss +6 -1
- package/build/components/brand/brand.css +2 -18
- package/build/components/brand/brand.scss +2 -0
- package/build/components/button/button.css +245 -82
- package/build/components/button/button.scss +1 -105
- package/build/components/card/card.css +88 -30
- package/build/components/checkbox/checkbox.css +1 -22
- package/build/components/custom-button/custom-button.css +892 -0
- package/build/components/custom-button/custom-button.scss +78 -0
- package/build/components/custom-select/custom-select.css +19 -25
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +1 -22
- package/build/components/custom-select-dropdown/custom-select-dropdown.scss +1 -0
- package/build/components/custom-select-form-field/custom-select-form-field.css +0 -22
- package/build/components/custom-select-list/custom-select-list.css +0 -22
- package/build/components/custom-select-list-item/custom-select-list-item.css +36 -28
- package/build/components/divider/divider.css +0 -10
- package/build/components/drawer/drawer.css +4 -14
- package/build/components/drawer/drawer.scss +4 -0
- package/build/components/header/header.css +0 -22
- package/build/components/icon/icon.css +0 -10
- package/build/components/infotext/infotext.css +4 -18
- package/build/components/infotext/infotext.scss +4 -0
- package/build/components/input/input.css +19 -25
- package/build/components/link/link.css +73 -34
- package/build/components/navigation/navigation.css +0 -22
- package/build/components/navigation-item/navigation-item.css +111 -43
- package/build/components/navigation-item/navigation-item.scss +2 -1
- package/build/components/notification/notification.css +37 -28
- package/build/components/page/page.css +0 -10
- package/build/components/popover/popover.css +26 -14
- package/build/components/radio/radio.css +0 -22
- package/build/components/section/section.css +0 -14
- package/build/components/select/select.css +19 -25
- package/build/components/stack/stack-web-component.css +0 -10
- package/build/components/stack/stack.css +0 -10
- package/build/components/switch/switch.css +1 -22
- package/build/components/tab-item/tab-item.css +52 -32
- package/build/components/tab-list/tab-list.css +0 -22
- package/build/components/tab-panel/tab-panel.css +0 -10
- package/build/components/tabs/tabs.css +2 -22
- package/build/components/tabs/tabs.scss +2 -0
- package/build/components/tag/tag.css +859 -150
- package/build/components/textarea/textarea.css +18 -25
- package/build/components/tooltip/tooltip.css +30 -23
- package/build/components/tooltip/tooltip.scss +12 -10
- package/build/styles/absolute.css +10 -10
- package/build/styles/index.css +9 -9
- package/build/styles/index.scss +1 -0
- package/build/styles/internal/_button-components.scss +140 -2
- package/build/styles/internal/_custom-elements.scss +1 -1
- package/build/styles/internal/_icon-passing.scss +23 -3
- package/build/styles/internal/_popover-component.scss +19 -9
- package/build/styles/internal/_tag-components.scss +1 -0
- package/build/styles/relative.css +10 -10
- package/build/styles/rollup.css +10 -10
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/webpack.css +10 -10
- package/package.json +10 -9
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/icons";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
5
|
+
@use "../../styles/internal/button-components";
|
|
6
|
+
@use "../../styles/internal/icon-passing";
|
|
7
|
+
|
|
8
|
+
@mixin interactive-elements {
|
|
9
|
+
label,
|
|
10
|
+
button,
|
|
11
|
+
a {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
$icon-padding-custom-button: calc(
|
|
17
|
+
#{variables.$db-spacing-fixed-sm} + #{icons.$default-icon-margin-end} +
|
|
18
|
+
var(--db-icon-font-size)
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
// generic styles can be found in _button-components.scss
|
|
22
|
+
.db-custom-button {
|
|
23
|
+
position: relative;
|
|
24
|
+
max-inline-size: 100%;
|
|
25
|
+
inline-size: fit-content;
|
|
26
|
+
|
|
27
|
+
@include button-components.set-basic-button(
|
|
28
|
+
icon-passing.$interactive-button-selectors
|
|
29
|
+
);
|
|
30
|
+
@include icon-passing.icon-passing;
|
|
31
|
+
@include icon-passing.icon-passing-trailing;
|
|
32
|
+
|
|
33
|
+
&:has(:is(input, button):disabled, :is(input, button, a)[aria-disabled="true"]) {
|
|
34
|
+
opacity: variables.$db-opacity-md;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[data-variant="brand"] {
|
|
38
|
+
label {
|
|
39
|
+
@extend %button-outlined-ghost-colors;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:is(a, button) {
|
|
43
|
+
@extend %button-brand-colors;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
label:has(input:checked) {
|
|
48
|
+
color: colors.$db-adaptive-on-bg-inverted-default;
|
|
49
|
+
background-color: colors.$db-adaptive-bg-inverted-contrast-max-default;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
label:has(input[type="checkbox"]:checked) {
|
|
53
|
+
@include helpers.hover {
|
|
54
|
+
background-color: colors.$db-adaptive-bg-inverted-contrast-max-hovered;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include helpers.active {
|
|
58
|
+
background-color: colors.$db-adaptive-bg-inverted-contrast-max-pressed;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
a[tabindex="-1"] {
|
|
63
|
+
cursor: default;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-width="full"] {
|
|
68
|
+
inline-size: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:has(input):focus-within {
|
|
72
|
+
@extend %focus-placeholder;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
input {
|
|
76
|
+
@extend %a11y-visually-hidden;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
.db-custom-select[data-hide-label=true] > label, .db-visually-hidden,
|
|
13
3
|
[data-visually-hidden=true] {
|
|
@@ -521,10 +511,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
521
511
|
|
|
522
512
|
@layer variables {}
|
|
523
513
|
|
|
524
|
-
/**
|
|
525
|
-
* @mixin screen-min-max
|
|
526
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
527
|
-
*/
|
|
528
514
|
.db-custom-select:not([data-show-icon-trailing=false])::after {
|
|
529
515
|
color: var(--db-icon-color, inherit);
|
|
530
516
|
display: inline-block;
|
|
@@ -544,6 +530,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
544
530
|
text-transform: none;
|
|
545
531
|
overflow: clip;
|
|
546
532
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
533
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
547
534
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
548
535
|
aspect-ratio: 1;
|
|
549
536
|
flex-shrink: 0;
|
|
@@ -565,12 +552,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
565
552
|
}
|
|
566
553
|
}
|
|
567
554
|
|
|
568
|
-
/**
|
|
569
|
-
Generates 3 types of placeholders, e.g:
|
|
570
|
-
- %db-component-variables-md
|
|
571
|
-
- %db-font-size-md
|
|
572
|
-
- %db-overwrite-font-size-md
|
|
573
|
-
*/
|
|
574
555
|
@layer variables {}
|
|
575
556
|
|
|
576
557
|
@layer variables {}
|
|
@@ -673,8 +654,6 @@ input[type=radio]:checked) > label {
|
|
|
673
654
|
|
|
674
655
|
@layer variables {}
|
|
675
656
|
|
|
676
|
-
/* Use for body tags like <p> */
|
|
677
|
-
/* Use for headline tags like <h1> */
|
|
678
657
|
.db-custom-select summary {
|
|
679
658
|
border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
|
|
680
659
|
}
|
|
@@ -1083,14 +1062,29 @@ input[type=radio]:checked) summary:is([type=date],
|
|
|
1083
1062
|
padding-inline: var(--db-form-component-padding-inline-start, var(--db-spacing-fixed-sm)) var(--db-form-component-padding-inline-end, var(--db-spacing-fixed-sm));
|
|
1084
1063
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
1085
1064
|
}
|
|
1086
|
-
.db-custom-select summary:hover:not(:disabled,
|
|
1065
|
+
.db-custom-select summary:hover:not(:disabled,
|
|
1066
|
+
[aria-disabled=true],
|
|
1067
|
+
[tabindex="-1"],
|
|
1068
|
+
:has(:disabled)) {
|
|
1087
1069
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
1088
1070
|
background-color: var(--db-adaptive-bg-basic-transparent-semi-hovered);
|
|
1089
1071
|
}
|
|
1090
|
-
.db-custom-select summary:hover:not(:disabled,
|
|
1072
|
+
.db-custom-select summary:hover:not(:disabled,
|
|
1073
|
+
[aria-disabled=true],
|
|
1074
|
+
[tabindex="-1"],
|
|
1075
|
+
:has(:disabled)):is(textarea), .db-custom-select summary:hover:not(:disabled,
|
|
1076
|
+
[aria-disabled=true],
|
|
1077
|
+
[tabindex="-1"],
|
|
1078
|
+
:has(:disabled)):is(input) {
|
|
1091
1079
|
cursor: initial;
|
|
1092
1080
|
}
|
|
1093
|
-
.db-custom-select summary:hover:not(:disabled,
|
|
1081
|
+
.db-custom-select summary:hover:not(:disabled,
|
|
1082
|
+
[aria-disabled=true],
|
|
1083
|
+
[tabindex="-1"],
|
|
1084
|
+
:has(:disabled)):is(input[type=checkbox]), .db-custom-select summary:hover:not(:disabled,
|
|
1085
|
+
[aria-disabled=true],
|
|
1086
|
+
[tabindex="-1"],
|
|
1087
|
+
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
1094
1088
|
cursor: pointer;
|
|
1095
1089
|
}
|
|
1096
1090
|
.db-custom-select > label {
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
.db-visually-hidden,
|
|
13
3
|
[data-visually-hidden=true] {
|
|
@@ -215,10 +205,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
215
205
|
|
|
216
206
|
@layer variables {}
|
|
217
207
|
|
|
218
|
-
/**
|
|
219
|
-
* @mixin screen-min-max
|
|
220
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
221
|
-
*/
|
|
222
208
|
@keyframes popover-animation {
|
|
223
209
|
0% {
|
|
224
210
|
opacity: 0;
|
|
@@ -234,12 +220,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
234
220
|
transform: rotate(1turn);
|
|
235
221
|
}
|
|
236
222
|
}
|
|
237
|
-
/**
|
|
238
|
-
Generates 3 types of placeholders, e.g:
|
|
239
|
-
- %db-component-variables-md
|
|
240
|
-
- %db-font-size-md
|
|
241
|
-
- %db-overwrite-font-size-md
|
|
242
|
-
*/
|
|
243
223
|
@layer variables {}
|
|
244
224
|
|
|
245
225
|
@layer variables {}
|
|
@@ -294,8 +274,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
294
274
|
|
|
295
275
|
@layer variables {}
|
|
296
276
|
|
|
297
|
-
/* Use for body tags like <p> */
|
|
298
|
-
/* Use for headline tags like <h1> */
|
|
299
277
|
.db-custom-select-dropdown {
|
|
300
278
|
position: absolute;
|
|
301
279
|
z-index: 32;
|
|
@@ -306,6 +284,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
306
284
|
/* stylelint-disable-next-line media-query-no-invalid */
|
|
307
285
|
}
|
|
308
286
|
.db-custom-select-dropdown:not([data-width]), .db-custom-select-dropdown[data-width=fixed] {
|
|
287
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
309
288
|
inline-size: var(--db-custom-select-dropdown-fixed-inline-size, var(--db-sizing-3xl));
|
|
310
289
|
}
|
|
311
290
|
.db-custom-select-dropdown[data-width=full] {
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
.db-visually-hidden,
|
|
12
2
|
[data-visually-hidden=true] {
|
|
13
3
|
clip: rect(0, 0, 0, 0) !important;
|
|
@@ -62,12 +52,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
62
52
|
|
|
63
53
|
@layer variables {}
|
|
64
54
|
|
|
65
|
-
/**
|
|
66
|
-
Generates 3 types of placeholders, e.g:
|
|
67
|
-
- %db-component-variables-md
|
|
68
|
-
- %db-font-size-md
|
|
69
|
-
- %db-overwrite-font-size-md
|
|
70
|
-
*/
|
|
71
55
|
@layer variables {}
|
|
72
56
|
|
|
73
57
|
@layer variables {}
|
|
@@ -122,12 +106,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
122
106
|
|
|
123
107
|
@layer variables {}
|
|
124
108
|
|
|
125
|
-
/* Use for body tags like <p> */
|
|
126
|
-
/* Use for headline tags like <h1> */
|
|
127
|
-
/**
|
|
128
|
-
* @mixin screen-min-max
|
|
129
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
130
|
-
*/
|
|
131
109
|
.db-custom-select-form-field:is(summary) {
|
|
132
110
|
list-style: none;
|
|
133
111
|
align-items: center;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
.db-custom-select-list > legend, .db-visually-hidden,
|
|
12
2
|
[data-visually-hidden=true] {
|
|
13
3
|
clip: rect(0, 0, 0, 0) !important;
|
|
@@ -62,12 +52,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
62
52
|
|
|
63
53
|
@layer variables {}
|
|
64
54
|
|
|
65
|
-
/**
|
|
66
|
-
Generates 3 types of placeholders, e.g:
|
|
67
|
-
- %db-component-variables-md
|
|
68
|
-
- %db-font-size-md
|
|
69
|
-
- %db-overwrite-font-size-md
|
|
70
|
-
*/
|
|
71
55
|
@layer variables {}
|
|
72
56
|
|
|
73
57
|
@layer variables {}
|
|
@@ -122,12 +106,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
122
106
|
|
|
123
107
|
@layer variables {}
|
|
124
108
|
|
|
125
|
-
/* Use for body tags like <p> */
|
|
126
|
-
/* Use for headline tags like <h1> */
|
|
127
|
-
/**
|
|
128
|
-
* @mixin screen-min-max
|
|
129
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
130
|
-
*/
|
|
131
109
|
.db-custom-select-list {
|
|
132
110
|
all: unset;
|
|
133
111
|
padding: var(--db-spacing-fixed-sm);
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
.db-visually-hidden,
|
|
13
3
|
[data-visually-hidden=true] {
|
|
@@ -76,12 +66,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
76
66
|
border-radius: var(--db-border-radius-xs);
|
|
77
67
|
}
|
|
78
68
|
|
|
79
|
-
/**
|
|
80
|
-
Generates 3 types of placeholders, e.g:
|
|
81
|
-
- %db-component-variables-md
|
|
82
|
-
- %db-font-size-md
|
|
83
|
-
- %db-overwrite-font-size-md
|
|
84
|
-
*/
|
|
85
69
|
@layer variables {}
|
|
86
70
|
|
|
87
71
|
@layer variables {}
|
|
@@ -146,12 +130,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
146
130
|
|
|
147
131
|
@layer variables {}
|
|
148
132
|
|
|
149
|
-
/* Use for body tags like <p> */
|
|
150
|
-
/* Use for headline tags like <h1> */
|
|
151
|
-
/**
|
|
152
|
-
* @mixin screen-min-max
|
|
153
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
154
|
-
*/
|
|
155
133
|
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true] {
|
|
156
134
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
157
135
|
position: var(--db-tooltip-parent-position, relative);
|
|
@@ -189,24 +167,54 @@ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-d
|
|
|
189
167
|
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)) {
|
|
190
168
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
191
169
|
}
|
|
192
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
170
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
171
|
+
[aria-disabled=true],
|
|
172
|
+
[tabindex="-1"],
|
|
173
|
+
:has(:disabled)) {
|
|
193
174
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
194
175
|
background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
|
|
195
176
|
}
|
|
196
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
177
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
178
|
+
[aria-disabled=true],
|
|
179
|
+
[tabindex="-1"],
|
|
180
|
+
:has(:disabled)):is(textarea), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
181
|
+
[aria-disabled=true],
|
|
182
|
+
[tabindex="-1"],
|
|
183
|
+
:has(:disabled)):is(input) {
|
|
197
184
|
cursor: initial;
|
|
198
185
|
}
|
|
199
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
186
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
187
|
+
[aria-disabled=true],
|
|
188
|
+
[tabindex="-1"],
|
|
189
|
+
:has(:disabled)):is(input[type=checkbox]), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled,
|
|
190
|
+
[aria-disabled=true],
|
|
191
|
+
[tabindex="-1"],
|
|
192
|
+
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
200
193
|
cursor: pointer;
|
|
201
194
|
}
|
|
202
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
195
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
196
|
+
[aria-disabled=true],
|
|
197
|
+
[tabindex="-1"],
|
|
198
|
+
:has(:disabled)) {
|
|
203
199
|
cursor: var(--db-overwrite-cursor, pointer);
|
|
204
200
|
background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
|
|
205
201
|
}
|
|
206
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
202
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
203
|
+
[aria-disabled=true],
|
|
204
|
+
[tabindex="-1"],
|
|
205
|
+
:has(:disabled)):is(textarea), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
206
|
+
[aria-disabled=true],
|
|
207
|
+
[tabindex="-1"],
|
|
208
|
+
:has(:disabled)):is(input) {
|
|
207
209
|
cursor: initial;
|
|
208
210
|
}
|
|
209
|
-
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
211
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
212
|
+
[aria-disabled=true],
|
|
213
|
+
[tabindex="-1"],
|
|
214
|
+
:has(:disabled)):is(input[type=checkbox]), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled,
|
|
215
|
+
[aria-disabled=true],
|
|
216
|
+
[tabindex="-1"],
|
|
217
|
+
:has(:disabled)):is(input[type=radio]:not(:checked)) {
|
|
210
218
|
cursor: pointer;
|
|
211
219
|
}
|
|
212
220
|
.db-custom-select-list-item span {
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
@layer variables {}
|
|
13
3
|
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
@layer variables {}
|
|
13
3
|
|
|
@@ -58,10 +48,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
58
48
|
transform: rotate(1turn);
|
|
59
49
|
}
|
|
60
50
|
}
|
|
61
|
-
/**
|
|
62
|
-
* @mixin screen-min-max
|
|
63
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
64
|
-
*/
|
|
65
51
|
dialog {
|
|
66
52
|
padding: 0;
|
|
67
53
|
margin: 0;
|
|
@@ -108,7 +94,9 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
108
94
|
}
|
|
109
95
|
|
|
110
96
|
.db-drawer .db-drawer-container[data-direction=down]:not([data-width=full]), .db-drawer .db-drawer-container[data-direction=up]:not([data-width=full]) {
|
|
97
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
111
98
|
max-block-size: var(--db-drawer-max-height, calc(100% - var(--db-spacing-fixed-xl)));
|
|
99
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
112
100
|
min-block-size: var(--db-drawer-min-height, calc(100% - var(--db-spacing-fixed-xl)));
|
|
113
101
|
max-inline-size: none;
|
|
114
102
|
}
|
|
@@ -227,7 +215,9 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
227
215
|
box-shadow: var(--db-elevation-md);
|
|
228
216
|
}
|
|
229
217
|
.db-drawer .db-drawer-container:not([data-width=full]) {
|
|
218
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
230
219
|
max-inline-size: var(--db-drawer-max-width, calc(100% - var(--db-spacing-fixed-xl)));
|
|
220
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
231
221
|
min-inline-size: var(--db-drawer-min-width, calc(100% - var(--db-spacing-fixed-xl)));
|
|
232
222
|
}
|
|
233
223
|
.db-drawer .db-drawer-container:not([data-width=full]):not([data-direction]), .db-drawer .db-drawer-container:not([data-width=full])[data-direction=right] {
|
|
@@ -32,10 +32,12 @@
|
|
|
32
32
|
/// @propertyname max-block-size
|
|
33
33
|
/// @cssprop --db-drawer-max-height
|
|
34
34
|
/// @default calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
35
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
35
36
|
max-block-size: var(
|
|
36
37
|
--db-drawer-max-height,
|
|
37
38
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
38
39
|
);
|
|
40
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
39
41
|
min-block-size: var(
|
|
40
42
|
--db-drawer-min-height,
|
|
41
43
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
@@ -163,10 +165,12 @@ $spacings: (
|
|
|
163
165
|
/// <div class="db-drawer db-drawer-wide">
|
|
164
166
|
/// <!-- wide drawer -->
|
|
165
167
|
/// </div>
|
|
168
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
166
169
|
max-inline-size: var(
|
|
167
170
|
--db-drawer-max-width,
|
|
168
171
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
169
172
|
);
|
|
173
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
170
174
|
min-inline-size: var(
|
|
171
175
|
--db-drawer-min-width,
|
|
172
176
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
@layer variables {}
|
|
13
3
|
|
|
@@ -43,16 +33,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
43
33
|
|
|
44
34
|
@layer variables {}
|
|
45
35
|
|
|
46
|
-
/**
|
|
47
|
-
* @mixin screen-min-max
|
|
48
|
-
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
49
|
-
*/
|
|
50
|
-
/**
|
|
51
|
-
Generates 3 types of placeholders, e.g:
|
|
52
|
-
- %db-component-variables-md
|
|
53
|
-
- %db-font-size-md
|
|
54
|
-
- %db-overwrite-font-size-md
|
|
55
|
-
*/
|
|
56
36
|
@layer variables {}
|
|
57
37
|
|
|
58
38
|
@layer variables {}
|
|
@@ -117,8 +97,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
117
97
|
|
|
118
98
|
@layer variables {}
|
|
119
99
|
|
|
120
|
-
/* Use for body tags like <p> */
|
|
121
|
-
/* Use for headline tags like <h1> */
|
|
122
100
|
@layer variables {}
|
|
123
101
|
|
|
124
102
|
@layer variables {}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
@layer variables {}
|
|
13
3
|
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
-
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
-
/* The primary use-case for responsive spacings are
|
|
4
|
-
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
-
/* Elevation */
|
|
6
|
-
/* Border */
|
|
7
|
-
/* Opacity */
|
|
8
|
-
/* Transitions */
|
|
9
|
-
/* Screen sizes */
|
|
10
|
-
/* Container sizes */
|
|
11
1
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
12
2
|
@layer variables {}
|
|
13
3
|
|
|
@@ -43,12 +33,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
43
33
|
|
|
44
34
|
@layer variables {}
|
|
45
35
|
|
|
46
|
-
/**
|
|
47
|
-
Generates 3 types of placeholders, e.g:
|
|
48
|
-
- %db-component-variables-md
|
|
49
|
-
- %db-font-size-md
|
|
50
|
-
- %db-overwrite-font-size-md
|
|
51
|
-
*/
|
|
52
36
|
@layer variables {}
|
|
53
37
|
|
|
54
38
|
@layer variables {}
|
|
@@ -123,8 +107,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
123
107
|
|
|
124
108
|
@layer variables {}
|
|
125
109
|
|
|
126
|
-
/* Use for body tags like <p> */
|
|
127
|
-
/* Use for headline tags like <h1> */
|
|
128
110
|
.db-infotext:not([data-icon]):not([data-show-icon-leading=false])::before {
|
|
129
111
|
color: var(--db-icon-color, inherit);
|
|
130
112
|
display: inline-block;
|
|
@@ -144,6 +126,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
144
126
|
text-transform: none;
|
|
145
127
|
overflow: clip;
|
|
146
128
|
vertical-align: var(--db-icon-vertical-align, middle);
|
|
129
|
+
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
147
130
|
block-size: var(--db-icon-font-size, 1.5rem);
|
|
148
131
|
aspect-ratio: 1;
|
|
149
132
|
flex-shrink: 0;
|
|
@@ -188,6 +171,9 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
188
171
|
.db-infotext[data-semantic=adaptive]::before, .db-infotext:not([data-semantic])::before {
|
|
189
172
|
--db-icon-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
190
173
|
}
|
|
174
|
+
.db-infotext[data-wrap=false] {
|
|
175
|
+
white-space: nowrap;
|
|
176
|
+
}
|
|
191
177
|
.db-infotext[data-semantic=neutral] {
|
|
192
178
|
color: var(--db-neutral-on-bg-basic-emphasis-80-default);
|
|
193
179
|
}
|