@db-ux/core-components 1.1.1 → 2.0.0-0-custom-select-16b8cce
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/README.md +1 -1
- package/build/assets/icons/LICENCES.json +6 -0
- package/build/assets/icons/circular_arrows.svg +1 -0
- package/build/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/build/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/components/accordion/accordion.css +1 -1
- package/build/components/accordion-item/accordion-item.css +7 -2
- package/build/components/badge/badge.css +56 -4
- package/build/components/badge/badge.scss +1 -1
- package/build/components/button/button.css +4 -4
- package/build/components/card/card.css +6 -6
- package/build/components/checkbox/checkbox.css +60 -57
- package/build/components/custom-select/custom-select.css +1028 -0
- package/build/components/custom-select/custom-select.scss +172 -0
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +402 -0
- package/build/components/custom-select-dropdown/custom-select-dropdown.scss +86 -0
- package/build/components/custom-select-form-field/custom-select-form-field.css +49 -0
- package/build/components/custom-select-form-field/custom-select-form-field.scss +24 -0
- package/build/components/custom-select-list/custom-select-list.css +48 -0
- package/build/components/custom-select-list/custom-select-list.scss +35 -0
- package/build/components/custom-select-list-item/custom-select-list-item.css +187 -0
- package/build/components/custom-select-list-item/custom-select-list-item.scss +99 -0
- package/build/components/divider/divider.css +2 -2
- package/build/components/drawer/drawer.css +6 -1
- package/build/components/header/header.css +4 -4
- package/build/components/input/input.css +71 -61
- package/build/components/input/input.scss +1 -5
- package/build/components/link/link.css +9 -4
- package/build/components/navigation-item/navigation-item.css +8 -3
- package/build/components/notification/notification.css +7 -2
- package/build/components/popover/popover.css +5 -0
- package/build/components/radio/radio.css +57 -54
- package/build/components/select/select.css +84 -75
- package/build/components/select/select.scss +4 -49
- package/build/components/switch/switch.css +64 -61
- package/build/components/tab-item/tab-item.css +5 -5
- package/build/components/tab-list/tab-list.css +17 -3
- package/build/components/tag/tag.css +40 -35
- package/build/components/textarea/textarea.css +93 -65
- package/build/components/textarea/textarea.scss +1 -1
- package/build/components/tooltip/tooltip.css +6 -1
- package/build/components/tooltip/tooltip.scss +2 -2
- package/build/styles/_select-components.scss +50 -0
- package/build/styles/absolute.css +32 -32
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +31 -31
- package/build/styles/index.scss +5 -0
- package/build/styles/internal/_custom-elements.scss +3 -0
- package/build/styles/internal/_form-components.scss +81 -70
- package/build/styles/internal/_scrollbar.scss +14 -3
- package/build/styles/internal/_tag-components.scss +20 -2
- package/build/styles/relative.css +32 -32
- package/build/styles/rollup.css +32 -32
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/webpack.css +32 -32
- package/package.json +6 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
3
|
+
@use "../../styles/internal/form-components";
|
|
4
|
+
|
|
5
|
+
.db-custom-select-form-field {
|
|
6
|
+
&:is(summary) {
|
|
7
|
+
list-style: none;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
12
|
+
|
|
13
|
+
span {
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
text-wrap: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> div {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
/* Transitions */
|
|
8
|
+
.db-custom-select-list > legend, .db-visually-hidden,
|
|
9
|
+
[data-visually-hidden=true] {
|
|
10
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
11
|
+
overflow: hidden !important;
|
|
12
|
+
white-space: nowrap !important;
|
|
13
|
+
font-size: 0 !important;
|
|
14
|
+
all: initial;
|
|
15
|
+
inset-block-start: 0 !important;
|
|
16
|
+
block-size: 1px !important;
|
|
17
|
+
position: absolute !important;
|
|
18
|
+
inline-size: 1px !important;
|
|
19
|
+
border-width: 0 !important;
|
|
20
|
+
border-style: initial !important;
|
|
21
|
+
border-color: initial !important;
|
|
22
|
+
border-image: initial !important;
|
|
23
|
+
padding: 0 !important;
|
|
24
|
+
pointer-events: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
28
|
+
/**
|
|
29
|
+
Generates 3 types of placeholders, e.g:
|
|
30
|
+
- %db-component-variables-md
|
|
31
|
+
- %db-font-size-md
|
|
32
|
+
- %db-overwrite-font-size-md
|
|
33
|
+
*/
|
|
34
|
+
.db-custom-select-list {
|
|
35
|
+
all: unset;
|
|
36
|
+
padding: var(--db-spacing-fixed-sm);
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
/* (checkbox height + list-item padding) * 6 items + list padding */
|
|
39
|
+
max-block-size: calc(6 * (var(--db-icon-font-size) - 2 * var(--db-border-height-3xs) + 2 * var(--db-spacing-fixed-sm)) + var(--db-spacing-fixed-sm) * 2);
|
|
40
|
+
}
|
|
41
|
+
.db-custom-select-list > ul {
|
|
42
|
+
all: unset;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
.db-custom-select-list > ul:has(span) {
|
|
47
|
+
--db-custom-select-list-item-group-padding: 1;
|
|
48
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "../../styles/internal/form-components";
|
|
3
|
+
|
|
4
|
+
.db-custom-select-list {
|
|
5
|
+
all: unset;
|
|
6
|
+
padding: variables.$db-spacing-fixed-sm;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
|
|
9
|
+
/* (checkbox height + list-item padding) * 6 items + list padding */
|
|
10
|
+
max-block-size: calc(
|
|
11
|
+
6 *
|
|
12
|
+
(
|
|
13
|
+
(
|
|
14
|
+
#{form-components.$font-size-height} - 2 *
|
|
15
|
+
#{variables.$db-border-height-3xs}
|
|
16
|
+
) +
|
|
17
|
+
2 * #{variables.$db-spacing-fixed-sm}
|
|
18
|
+
) +
|
|
19
|
+
(#{variables.$db-spacing-fixed-sm} * 2)
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
> ul {
|
|
23
|
+
all: unset;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
&:has(span) {
|
|
28
|
+
--db-custom-select-list-item-group-padding: 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> legend {
|
|
33
|
+
@extend %a11y-visually-hidden;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
/* Transitions */
|
|
8
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
9
|
+
.db-visually-hidden,
|
|
10
|
+
[data-visually-hidden=true] {
|
|
11
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
12
|
+
overflow: hidden !important;
|
|
13
|
+
white-space: nowrap !important;
|
|
14
|
+
font-size: 0 !important;
|
|
15
|
+
all: initial;
|
|
16
|
+
inset-block-start: 0 !important;
|
|
17
|
+
block-size: 1px !important;
|
|
18
|
+
position: absolute !important;
|
|
19
|
+
inline-size: 1px !important;
|
|
20
|
+
border-width: 0 !important;
|
|
21
|
+
border-style: initial !important;
|
|
22
|
+
border-color: initial !important;
|
|
23
|
+
border-image: initial !important;
|
|
24
|
+
padding: 0 !important;
|
|
25
|
+
pointer-events: none !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.db-custom-select-list-item:not([data-disable-focus=true]):has(> label > input:focus-within) {
|
|
29
|
+
outline: var(--db-border-height-2xs) solid var(--db-focus-outline-color, var(--db-informational-on-bg-basic-emphasis-80-default));
|
|
30
|
+
outline-offset: var(--db-border-height-xs);
|
|
31
|
+
box-shadow: 0 0 0 var(--db-border-height-xs) var(--db-focus-box-shadow-bg-color, transparent);
|
|
32
|
+
}
|
|
33
|
+
.db-custom-select-list-item:not([data-disable-focus=true]):not([type=radio], [role=switch]):has(> label > input:focus-within) {
|
|
34
|
+
border-radius: var(--db-border-radius-xs);
|
|
35
|
+
}
|
|
36
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
37
|
+
.db-custom-select-list-item:not([data-disable-focus=true]):has(> label > input:focus-within) {
|
|
38
|
+
transition: outline var(--db-transition-duration-extra-fast), box-shadow var(--db-transition-duration-extra-fast);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
Generates 3 types of placeholders, e.g:
|
|
44
|
+
- %db-component-variables-md
|
|
45
|
+
- %db-font-size-md
|
|
46
|
+
- %db-overwrite-font-size-md
|
|
47
|
+
*/
|
|
48
|
+
.db-custom-select-list-item span {
|
|
49
|
+
/* Those variables are only for components to calculate heights and change icons */
|
|
50
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
51
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
52
|
+
line-height: var(--db-type-body-line-height-md);
|
|
53
|
+
font-size: var(--db-type-body-font-size-md);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true] {
|
|
57
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
58
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
59
|
+
}
|
|
60
|
+
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true][data-emphasis=strong] {
|
|
61
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
62
|
+
}
|
|
63
|
+
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true]::before {
|
|
64
|
+
content: "";
|
|
65
|
+
background-color: var(--db-divider-bg-color);
|
|
66
|
+
position: absolute;
|
|
67
|
+
block-size: var(--db-border-height-3xs);
|
|
68
|
+
inset-block-end: 0;
|
|
69
|
+
inset-inline: 0;
|
|
70
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
71
|
+
}
|
|
72
|
+
@media (forced-colors: active) {
|
|
73
|
+
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true] {
|
|
74
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
75
|
+
border: var(--db-border-height-3xs) solid var(--db-divider-bg-color);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.db-custom-select-list-item {
|
|
80
|
+
display: flex;
|
|
81
|
+
block-size: 100%;
|
|
82
|
+
position: relative;
|
|
83
|
+
padding: var(--db-spacing-fixed-sm);
|
|
84
|
+
background-color: var(--db-adaptive-bg-basic-transparent-full-default);
|
|
85
|
+
border-radius: var(--db-border-radius-xs);
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)) {
|
|
89
|
+
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
90
|
+
}
|
|
91
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled, [aria-disabled=true]) {
|
|
92
|
+
cursor: var(--db-overwrite-cursor, pointer);
|
|
93
|
+
background-color: var(--db-adaptive-bg-basic-transparent-hovered);
|
|
94
|
+
}
|
|
95
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled, [aria-disabled=true]):is(textarea), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled, [aria-disabled=true]):is(input) {
|
|
96
|
+
cursor: initial;
|
|
97
|
+
}
|
|
98
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
}
|
|
101
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled, [aria-disabled=true]) {
|
|
102
|
+
cursor: var(--db-overwrite-cursor, pointer);
|
|
103
|
+
background-color: var(--db-adaptive-bg-basic-transparent-pressed);
|
|
104
|
+
}
|
|
105
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled, [aria-disabled=true]):is(textarea), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled, [aria-disabled=true]):is(input) {
|
|
106
|
+
cursor: initial;
|
|
107
|
+
}
|
|
108
|
+
.db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-custom-select-list-item:has(> label):not(:has(input[type=radio]:checked)):active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
}
|
|
111
|
+
.db-custom-select-list-item span {
|
|
112
|
+
color: var(--db-adaptive-on-bg-basic-emphasis-80-default);
|
|
113
|
+
}
|
|
114
|
+
.db-custom-select-list-item[data-divider=true]:not(:last-of-type) {
|
|
115
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
116
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
117
|
+
}
|
|
118
|
+
.db-custom-select-list-item[data-divider=true]:not(:last-of-type)[data-emphasis=strong] {
|
|
119
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
120
|
+
}
|
|
121
|
+
.db-custom-select-list-item[data-divider=true]:not(:last-of-type)::before {
|
|
122
|
+
content: "";
|
|
123
|
+
background-color: var(--db-divider-bg-color);
|
|
124
|
+
position: absolute;
|
|
125
|
+
block-size: var(--db-border-height-3xs);
|
|
126
|
+
inset-block-end: 0;
|
|
127
|
+
inset-inline: 0;
|
|
128
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
129
|
+
}
|
|
130
|
+
@media (forced-colors: active) {
|
|
131
|
+
.db-custom-select-list-item[data-divider=true]:not(:last-of-type) {
|
|
132
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
133
|
+
border: var(--db-border-height-3xs) solid var(--db-divider-bg-color);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
.db-custom-select-list-item > label {
|
|
137
|
+
--db-icon-margin-start: auto;
|
|
138
|
+
inline-size: 100%;
|
|
139
|
+
}
|
|
140
|
+
.db-custom-select-list-item > label:has(input:checked) {
|
|
141
|
+
font-weight: 700;
|
|
142
|
+
}
|
|
143
|
+
.db-custom-select-list-item > label:has(input[type=radio]) {
|
|
144
|
+
--db-icon-after: "none";
|
|
145
|
+
gap: 0;
|
|
146
|
+
}
|
|
147
|
+
.db-custom-select-list-item > label:has(input[type=radio]:checked) {
|
|
148
|
+
--db-overwrite-cursor: default;
|
|
149
|
+
--db-icon-after: "check";
|
|
150
|
+
}
|
|
151
|
+
.db-custom-select-list-item > label > input {
|
|
152
|
+
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
153
|
+
/* We set focus on complete list element, we remove it from checkbox with this trick */
|
|
154
|
+
/* stylelint-disable-next-line a11y/no-outline-none */
|
|
155
|
+
}
|
|
156
|
+
.db-custom-select-list-item > label > input::after {
|
|
157
|
+
position: absolute;
|
|
158
|
+
content: "";
|
|
159
|
+
inset-block: calc(-1 * var(--db-spacing-fixed-xs));
|
|
160
|
+
inset-inline: calc(-1 * var(--db-spacing-fixed-xs));
|
|
161
|
+
}
|
|
162
|
+
.db-custom-select-list-item > label > input[type=radio] {
|
|
163
|
+
all: unset;
|
|
164
|
+
}
|
|
165
|
+
.db-custom-select-list-item > label > input:hover:not(:disabled, [aria-disabled=true]) {
|
|
166
|
+
cursor: var(--db-overwrite-cursor, pointer);
|
|
167
|
+
background-color: var(--db-adaptive-bg-basic-transparent-full-default);
|
|
168
|
+
}
|
|
169
|
+
.db-custom-select-list-item > label > input:hover:not(:disabled, [aria-disabled=true]):is(textarea), .db-custom-select-list-item > label > input:hover:not(:disabled, [aria-disabled=true]):is(input) {
|
|
170
|
+
cursor: initial;
|
|
171
|
+
}
|
|
172
|
+
.db-custom-select-list-item > label > input:hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-custom-select-list-item > label > input:hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
.db-custom-select-list-item > label > input:active:not(:disabled, [aria-disabled=true]) {
|
|
176
|
+
cursor: var(--db-overwrite-cursor, pointer);
|
|
177
|
+
background-color: var(--db-adaptive-bg-basic-transparent-full-default);
|
|
178
|
+
}
|
|
179
|
+
.db-custom-select-list-item > label > input:active:not(:disabled, [aria-disabled=true]):is(textarea), .db-custom-select-list-item > label > input:active:not(:disabled, [aria-disabled=true]):is(input) {
|
|
180
|
+
cursor: initial;
|
|
181
|
+
}
|
|
182
|
+
.db-custom-select-list-item > label > input:active:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-custom-select-list-item > label > input:active:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
.db-custom-select-list-item > label > input:focus-visible {
|
|
186
|
+
outline: none !important;
|
|
187
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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/helpers";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/fonts";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/icons";
|
|
6
|
+
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
7
|
+
@use "../../styles/internal/form-components";
|
|
8
|
+
|
|
9
|
+
// web-component workaround
|
|
10
|
+
db-custom-select-list-item:not(:last-of-type) {
|
|
11
|
+
.db-custom-select-list-item[data-divider="true"] {
|
|
12
|
+
@include helpers.divider("bottom");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.db-custom-select-list-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
block-size: 100%;
|
|
19
|
+
position: relative;
|
|
20
|
+
padding: variables.$db-spacing-fixed-sm;
|
|
21
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
22
|
+
border-radius: variables.$db-border-radius-xs;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
|
|
25
|
+
&:has(> label) {
|
|
26
|
+
&:not(:has(input[type="radio"]:checked)) {
|
|
27
|
+
@include helpers.hover {
|
|
28
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-hovered;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include helpers.active {
|
|
32
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-pressed;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:has(> label > input:focus-within) {
|
|
38
|
+
@extend %focus-placeholder;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
span {
|
|
42
|
+
@extend %db-overwrite-font-size-md;
|
|
43
|
+
|
|
44
|
+
color: colors.$db-adaptive-on-bg-basic-emphasis-80-default;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-divider="true"]:not(:last-of-type) {
|
|
48
|
+
@include helpers.divider("bottom");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
> label {
|
|
52
|
+
--db-icon-margin-start: auto;
|
|
53
|
+
|
|
54
|
+
inline-size: 100%;
|
|
55
|
+
|
|
56
|
+
&:has(input:checked) {
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:has(input[type="radio"]) {
|
|
61
|
+
--db-icon-after: "none";
|
|
62
|
+
|
|
63
|
+
gap: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:has(input[type="radio"]:checked) {
|
|
67
|
+
--db-overwrite-cursor: default;
|
|
68
|
+
--db-icon-after: "check";
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> input {
|
|
72
|
+
&::after {
|
|
73
|
+
position: absolute;
|
|
74
|
+
content: "";
|
|
75
|
+
inset-block: calc(-1 * #{variables.$db-spacing-fixed-xs});
|
|
76
|
+
inset-inline: calc(-1 * #{variables.$db-spacing-fixed-xs});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[type="radio"] {
|
|
80
|
+
all: unset;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// We revert interaction states for checkbox
|
|
84
|
+
@include helpers.hover {
|
|
85
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@include helpers.active {
|
|
89
|
+
background-color: colors.$db-adaptive-bg-basic-transparent-full-default;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* We set focus on complete list element, we remove it from checkbox with this trick */
|
|
93
|
+
/* stylelint-disable-next-line a11y/no-outline-none */
|
|
94
|
+
&:focus-visible {
|
|
95
|
+
outline: none !important;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -21,7 +21,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
21
21
|
.db-divider:not([data-variant=vertical]) {
|
|
22
22
|
block-size: var(--db-border-height-3xs);
|
|
23
23
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
24
|
-
position: relative;
|
|
24
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
25
25
|
}
|
|
26
26
|
.db-divider:not([data-variant=vertical])[data-emphasis=strong] {
|
|
27
27
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
@@ -47,7 +47,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
47
47
|
.db-divider[data-variant=vertical] {
|
|
48
48
|
inline-size: var(--db-border-height-3xs);
|
|
49
49
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
50
|
-
position: relative;
|
|
50
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
51
51
|
}
|
|
52
52
|
.db-divider[data-variant=vertical][data-emphasis=strong] {
|
|
53
53
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
@@ -80,6 +80,11 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
80
80
|
transform: translate(var(--db-popover-center-x, 0%), var(--db-popover-center-y, 0%));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
@keyframes rotate {
|
|
84
|
+
100% {
|
|
85
|
+
transform: rotate(1turn);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
83
88
|
dialog[data-variant], dialog[data-backdrop] {
|
|
84
89
|
position: fixed;
|
|
85
90
|
inset: 0;
|
|
@@ -245,7 +250,7 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
245
250
|
.db-drawer .db-drawer-container .db-drawer-header {
|
|
246
251
|
display: none;
|
|
247
252
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
248
|
-
position: relative;
|
|
253
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
249
254
|
}
|
|
250
255
|
.db-drawer .db-drawer-container .db-drawer-header[data-emphasis=strong] {
|
|
251
256
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
@@ -410,7 +410,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
410
410
|
background-color: var(--db-adaptive-bg-basic-level-2-default);
|
|
411
411
|
padding: var(--db-spacing-fixed-md);
|
|
412
412
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
413
|
-
position: relative;
|
|
413
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
414
414
|
/* stylelint-disable at-rule-empty-line-before */
|
|
415
415
|
/* stylelint-enable at-rule-empty-line-before */
|
|
416
416
|
/* stylelint-disable-next-line media-query-no-invalid */
|
|
@@ -466,7 +466,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
466
466
|
@media screen and (min-width: 64em) {
|
|
467
467
|
.db-header-navigation-container:not([data-force-mobile]), .db-header-navigation-container[data-force-mobile=false] {
|
|
468
468
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
469
|
-
position: relative;
|
|
469
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
470
470
|
}
|
|
471
471
|
.db-header-navigation-container:not([data-force-mobile])[data-emphasis=strong], .db-header-navigation-container[data-force-mobile=false][data-emphasis=strong] {
|
|
472
472
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
@@ -521,7 +521,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
521
521
|
|
|
522
522
|
.db-header-action-container {
|
|
523
523
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
524
|
-
position: relative;
|
|
524
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
525
525
|
/* stylelint-disable at-rule-empty-line-before */
|
|
526
526
|
/* stylelint-enable at-rule-empty-line-before */
|
|
527
527
|
/* stylelint-disable-next-line media-query-no-invalid */
|
|
@@ -573,7 +573,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
573
573
|
flex-shrink: 0;
|
|
574
574
|
padding-block-start: var(--db-spacing-fixed-xs);
|
|
575
575
|
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
576
|
-
position: relative;
|
|
576
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
577
577
|
/* stylelint-disable at-rule-empty-line-before */
|
|
578
578
|
/* stylelint-enable at-rule-empty-line-before */
|
|
579
579
|
/* stylelint-disable-next-line media-query-no-invalid */
|