@db-ux/core-components 1.0.1 → 1.1.1
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 +7 -2
- package/build/components/accordion-item/accordion-item.css +16 -16
- package/build/components/accordion-item/accordion-item.scss +16 -6
- package/build/components/badge/badge.css +0 -4
- package/build/components/brand/brand.css +0 -2
- package/build/components/button/button.css +0 -4
- package/build/components/checkbox/checkbox.css +4 -8
- package/build/components/drawer/drawer.css +0 -10
- package/build/components/header/header.css +4 -2
- package/build/components/infotext/infotext.css +0 -4
- package/build/components/input/input.css +5 -13
- package/build/components/link/link.css +0 -14
- package/build/components/navigation-item/navigation-item.css +5 -14
- package/build/components/navigation-item/navigation-item.scss +5 -1
- package/build/components/notification/notification.css +4 -18
- package/build/components/notification/notification.scss +4 -4
- package/build/components/popover/popover.css +0 -10
- package/build/components/radio/radio.css +4 -8
- package/build/components/select/select.css +5 -13
- package/build/components/select/select.scss +2 -1
- package/build/components/switch/switch.css +13 -19
- package/build/components/tab-item/tab-item.css +4 -4
- package/build/components/tab-list/tab-list.css +1 -13
- package/build/components/tabs/tabs.css +1 -1
- package/build/components/tag/tag.css +1 -15
- package/build/components/textarea/textarea.css +7 -25
- package/build/components/tooltip/tooltip.css +0 -12
- package/build/styles/absolute.css +7 -7
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +7 -7
- package/build/styles/internal/_form-components.scss +3 -10
- package/build/styles/internal/_icon-passing.scss +1 -1
- package/build/styles/relative.css +7 -7
- package/build/styles/rollup.css +7 -7
- package/build/styles/webpack.css +7 -7
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ If you just need the styling follow this:
|
|
|
27
27
|
|
|
28
28
|
`npm i @db-ux/core-components`
|
|
29
29
|
|
|
30
|
-
## Dependencies
|
|
30
|
+
## Styling Dependencies
|
|
31
31
|
|
|
32
32
|
Import the styles in `scss` or `css`. Based on your technology the file names could be different.
|
|
33
33
|
|
|
@@ -60,6 +60,10 @@ Or within your JavaScript files, with the related bundler as a prefix (in this c
|
|
|
60
60
|
import "@db-ux/core-components/build/styles/rollup.css";
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
### DB Theme
|
|
64
|
+
|
|
65
|
+
In case that you're building a website or application for Deutsche Bahn, you'll additionally have to install the DB Theme via the [`@db-ux/db-theme`](https://www.npmjs.com/package/@db-ux/db-theme) node package (even also available as an inner source node package, as described within that packages README).
|
|
66
|
+
|
|
63
67
|
### Optimize dependencies
|
|
64
68
|
|
|
65
69
|
If you only need some of the components or some features from [`@db-ux/core-foundations`](https://www.npmjs.com/package/@db-ux/core-foundations), you shouldn't include the bundled file.
|
|
@@ -91,7 +95,8 @@ In the case you want to include only some components, and you could do it like t
|
|
|
91
95
|
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
|
|
92
96
|
Please have a look at our brand portal at <https://marketingportal.extranet.deutschebahn.com/> for any further questions and whom to contact on any brand issues.
|
|
93
97
|
|
|
94
|
-
|
|
98
|
+
For any usage outside of Deutsche Bahn websites and applications you aren't allowed to use any Deutsche Bahn brand and
|
|
99
|
+
design assets as well as protected characteristics and trademarks, that for not including the DB Theme.
|
|
95
100
|
|
|
96
101
|
## Contributions
|
|
97
102
|
|
|
@@ -89,16 +89,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
89
89
|
transform: translateY(-110%);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
@keyframes accordion-open {
|
|
93
|
-
0% {
|
|
94
|
-
opacity: 0;
|
|
95
|
-
transform: translateY(-10%);
|
|
96
|
-
}
|
|
97
|
-
100% {
|
|
98
|
-
opacity: 1;
|
|
99
|
-
transform: translateY(0%);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
92
|
@keyframes popover-animation {
|
|
103
93
|
0% {
|
|
104
94
|
opacity: 0;
|
|
@@ -155,8 +145,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
155
145
|
/* Those variables are only for components to calculate heights and change icons */
|
|
156
146
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
157
147
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
158
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
159
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
160
148
|
line-height: var(--db-type-body-line-height-md);
|
|
161
149
|
font-size: var(--db-type-body-font-size-md);
|
|
162
150
|
}
|
|
@@ -182,10 +170,10 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
182
170
|
border-radius: var(--db-border-radius-sm);
|
|
183
171
|
list-style-type: "";
|
|
184
172
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
173
|
+
.db-accordion-item > details[open] summary + div {
|
|
174
|
+
block-size: auto;
|
|
175
|
+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
|
176
|
+
block-size: calc-size(auto, size);
|
|
189
177
|
}
|
|
190
178
|
.db-accordion-item > details[open] summary::after {
|
|
191
179
|
transform: rotate(-180deg);
|
|
@@ -194,7 +182,19 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
194
182
|
pointer-events: none;
|
|
195
183
|
opacity: 0.4;
|
|
196
184
|
}
|
|
185
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
186
|
+
.db-accordion-item summary + div {
|
|
187
|
+
block-size: 0;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
transition: none;
|
|
190
|
+
padding: var(--db-spacing-fixed-md);
|
|
191
|
+
padding-block-end: var(--db-spacing-fixed-lg);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
197
194
|
.db-accordion-item summary + div {
|
|
195
|
+
block-size: 0;
|
|
196
|
+
overflow: hidden;
|
|
197
|
+
transition: block-size var(--db-transition-straight-emotional);
|
|
198
198
|
padding: var(--db-spacing-fixed-md);
|
|
199
199
|
padding-block-end: var(--db-spacing-fixed-lg);
|
|
200
200
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@use "../../styles/internal/form-components";
|
|
6
6
|
@use "../../styles/internal/component";
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
.db-accordion-item {
|
|
10
9
|
position: relative;
|
|
11
10
|
inline-size: 100%;
|
|
@@ -15,11 +14,9 @@
|
|
|
15
14
|
> details {
|
|
16
15
|
&[open] {
|
|
17
16
|
summary + div {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
both;
|
|
22
|
-
}
|
|
17
|
+
block-size: auto;
|
|
18
|
+
/* stylelint-disable-next-line declaration-property-value-no-unknown */
|
|
19
|
+
block-size: calc-size(auto, size);
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
summary::after {
|
|
@@ -33,7 +30,20 @@
|
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
32
|
|
|
33
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
34
|
+
summary + div {
|
|
35
|
+
block-size: 0;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
transition: none;
|
|
38
|
+
padding: variables.$db-spacing-fixed-md;
|
|
39
|
+
padding-block-end: variables.$db-spacing-fixed-lg;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
summary + div {
|
|
44
|
+
block-size: 0;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
transition: block-size #{variables.$db-transition-straight-emotional};
|
|
37
47
|
padding: variables.$db-spacing-fixed-md;
|
|
38
48
|
padding-block-end: variables.$db-spacing-fixed-lg;
|
|
39
49
|
}
|
|
@@ -16,8 +16,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
16
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
17
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
18
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
19
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
20
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
21
19
|
line-height: var(--db-type-body-line-height-sm);
|
|
22
20
|
font-size: var(--db-type-body-font-size-sm);
|
|
23
21
|
}
|
|
@@ -27,8 +25,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
27
25
|
/* Those variables are only for components to calculate heights and change icons */
|
|
28
26
|
--db-icon-font-weight: var(--db-base-body-icon-weight-2xs);
|
|
29
27
|
--db-icon-font-size: var(--db-base-body-icon-font-size-2xs);
|
|
30
|
-
--db-base-line-height: var(--db-type-body-line-height-2xs);
|
|
31
|
-
--db-base-font-size: var(--db-type-body-font-size-2xs);
|
|
32
28
|
line-height: var(--db-type-body-line-height-2xs);
|
|
33
29
|
font-size: var(--db-type-body-font-size-2xs);
|
|
34
30
|
}
|
|
@@ -16,8 +16,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
16
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
17
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
18
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
19
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
20
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
21
19
|
line-height: var(--db-type-body-line-height-md);
|
|
22
20
|
font-size: var(--db-type-body-font-size-md);
|
|
23
21
|
}
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
/* Those variables are only for components to calculate heights and change icons */
|
|
9
9
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
10
10
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
11
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
12
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
13
11
|
line-height: var(--db-type-body-line-height-md);
|
|
14
12
|
font-size: var(--db-type-body-font-size-md);
|
|
15
13
|
}
|
|
@@ -18,8 +16,6 @@
|
|
|
18
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
19
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
20
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
21
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
22
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
23
19
|
line-height: var(--db-type-body-line-height-sm);
|
|
24
20
|
font-size: var(--db-type-body-font-size-sm);
|
|
25
21
|
}
|
|
@@ -71,8 +71,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
71
71
|
/* Those variables are only for components to calculate heights and change icons */
|
|
72
72
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
73
73
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
74
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
75
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
76
74
|
line-height: var(--db-type-body-line-height-md);
|
|
77
75
|
font-size: var(--db-type-body-font-size-md);
|
|
78
76
|
}
|
|
@@ -81,8 +79,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
81
79
|
/* Those variables are only for components to calculate heights and change icons */
|
|
82
80
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
83
81
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
84
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
85
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
86
82
|
line-height: var(--db-type-body-line-height-sm);
|
|
87
83
|
font-size: var(--db-type-body-font-size-sm);
|
|
88
84
|
}
|
|
@@ -99,8 +95,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
99
95
|
display: inline-flex;
|
|
100
96
|
align-items: center;
|
|
101
97
|
justify-content: center;
|
|
102
|
-
block-size: calc(
|
|
103
|
-
inline-size: calc(
|
|
98
|
+
block-size: calc(var(--db-icon-font-size) - 2 * var(--db-border-height-3xs));
|
|
99
|
+
inline-size: calc(var(--db-icon-font-size) - 2 * var(--db-border-height-3xs));
|
|
104
100
|
}
|
|
105
101
|
|
|
106
102
|
.db-checkbox {
|
|
@@ -385,8 +381,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
385
381
|
aspect-ratio: 1;
|
|
386
382
|
/* stylelint-disable-next-line db-ux/use-border-height */
|
|
387
383
|
border: min(var(--db-border-height-2xs), 2px) solid var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
388
|
-
block-size:
|
|
389
|
-
inline-size:
|
|
384
|
+
block-size: var(--db-icon-font-size);
|
|
385
|
+
inline-size: var(--db-icon-font-size);
|
|
390
386
|
padding: 0;
|
|
391
387
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
392
388
|
}
|
|
@@ -70,16 +70,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
70
70
|
transform: translateY(-110%);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
@keyframes accordion-open {
|
|
74
|
-
0% {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
transform: translateY(-10%);
|
|
77
|
-
}
|
|
78
|
-
100% {
|
|
79
|
-
opacity: 1;
|
|
80
|
-
transform: translateY(0%);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
73
|
@keyframes popover-animation {
|
|
84
74
|
0% {
|
|
85
75
|
opacity: 0;
|
|
@@ -16,8 +16,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
16
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
17
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
18
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
19
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
20
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
21
19
|
line-height: var(--db-type-body-line-height-md);
|
|
22
20
|
font-size: var(--db-type-body-font-size-md);
|
|
23
21
|
}
|
|
@@ -340,6 +338,10 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
340
338
|
}
|
|
341
339
|
}
|
|
342
340
|
|
|
341
|
+
.db-header-meta-navigation {
|
|
342
|
+
--db-density-functional: 1;
|
|
343
|
+
}
|
|
344
|
+
|
|
343
345
|
.db-header {
|
|
344
346
|
background-color: var(--db-adaptive-bg-basic-level-1-default);
|
|
345
347
|
display: flex;
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
/* Those variables are only for components to calculate heights and change icons */
|
|
9
9
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
10
10
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
11
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
12
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
13
11
|
line-height: var(--db-type-body-line-height-sm);
|
|
14
12
|
font-size: var(--db-type-body-font-size-sm);
|
|
15
13
|
}
|
|
@@ -18,8 +16,6 @@
|
|
|
18
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
19
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-xs);
|
|
20
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-xs);
|
|
21
|
-
--db-base-line-height: var(--db-type-body-line-height-xs);
|
|
22
|
-
--db-base-font-size: var(--db-type-body-font-size-xs);
|
|
23
19
|
line-height: var(--db-type-body-line-height-xs);
|
|
24
20
|
font-size: var(--db-type-body-font-size-xs);
|
|
25
21
|
}
|
|
@@ -359,8 +359,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
359
359
|
/* Those variables are only for components to calculate heights and change icons */
|
|
360
360
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
361
361
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
362
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
363
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
364
362
|
line-height: var(--db-type-body-line-height-md);
|
|
365
363
|
font-size: var(--db-type-body-font-size-md);
|
|
366
364
|
}
|
|
@@ -369,8 +367,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
369
367
|
/* Those variables are only for components to calculate heights and change icons */
|
|
370
368
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
371
369
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
372
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
373
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
374
370
|
line-height: var(--db-type-body-line-height-sm);
|
|
375
371
|
font-size: var(--db-type-body-font-size-sm);
|
|
376
372
|
}
|
|
@@ -379,8 +375,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
379
375
|
/* Those variables are only for components to calculate heights and change icons */
|
|
380
376
|
--db-icon-font-weight: var(--db-base-body-icon-weight-xs);
|
|
381
377
|
--db-icon-font-size: var(--db-base-body-icon-font-size-xs);
|
|
382
|
-
--db-base-line-height: var(--db-type-body-line-height-xs);
|
|
383
|
-
--db-base-font-size: var(--db-type-body-font-size-xs);
|
|
384
378
|
line-height: var(--db-type-body-line-height-xs);
|
|
385
379
|
font-size: var(--db-type-body-font-size-xs);
|
|
386
380
|
}
|
|
@@ -391,8 +385,6 @@ input:is(input, textarea):not(:placeholder-shown),
|
|
|
391
385
|
/* Those variables are only for components to calculate heights and change icons */
|
|
392
386
|
--db-icon-font-weight: var(--db-base-body-icon-weight-2xs);
|
|
393
387
|
--db-icon-font-size: var(--db-base-body-icon-font-size-2xs);
|
|
394
|
-
--db-base-line-height: var(--db-type-body-line-height-2xs);
|
|
395
|
-
--db-base-font-size: var(--db-type-body-font-size-2xs);
|
|
396
388
|
line-height: var(--db-type-body-line-height-2xs);
|
|
397
389
|
font-size: var(--db-type-body-font-size-2xs);
|
|
398
390
|
}
|
|
@@ -450,12 +442,12 @@ input:is(input, textarea):not(:placeholder-shown),
|
|
|
450
442
|
opacity: 0.69;
|
|
451
443
|
position: absolute;
|
|
452
444
|
z-index: 2;
|
|
453
|
-
inset-block-start: calc((var(--db-sizing-md) -
|
|
445
|
+
inset-block-start: calc((var(--db-sizing-md) - var(--db-icon-font-size)) / 2);
|
|
454
446
|
inset-inline: var(--db-form-component-padding-inline-start, var(--db-spacing-fixed-sm));
|
|
455
447
|
pointer-events: none;
|
|
456
448
|
}
|
|
457
449
|
.db-input[data-variant=floating]::after, .db-input[data-variant=floating]::before {
|
|
458
|
-
inset-block-start: calc(var(--db-sizing-md) / 2 -
|
|
450
|
+
inset-block-start: calc(var(--db-sizing-md) / 2 - var(--db-icon-font-size) / 2);
|
|
459
451
|
}
|
|
460
452
|
.db-input[data-variant=floating] [id$=-placeholder] {
|
|
461
453
|
inset-block-start: calc(50% - 0.5em + var(--db-spacing-fixed-3xs));
|
|
@@ -610,7 +602,7 @@ input:is(input, textarea):not(:placeholder-shown),
|
|
|
610
602
|
.db-input::after, .db-input::before {
|
|
611
603
|
position: absolute;
|
|
612
604
|
pointer-events: none;
|
|
613
|
-
inset-block-start: calc(var(--db-sizing-md) / 2 - var(--db-spacing-fixed-xs) * var(--db-label-visible-spacing, 0) +
|
|
605
|
+
inset-block-start: calc(var(--db-sizing-md) / 2 - var(--db-spacing-fixed-xs) * var(--db-label-visible-spacing, 0) + var(--db-base-body-icon-font-size-xs) * var(--db-label-visible-height, 1) - 1px);
|
|
614
606
|
color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
|
|
615
607
|
}
|
|
616
608
|
.db-input::before {
|
|
@@ -626,10 +618,10 @@ input:is(input, textarea):not(:placeholder-shown),
|
|
|
626
618
|
text-overflow: ellipsis;
|
|
627
619
|
}
|
|
628
620
|
.db-input[data-icon], .db-input:has(input[type=search]) {
|
|
629
|
-
--db-form-component-padding-inline-start: calc(
|
|
621
|
+
--db-form-component-padding-inline-start: calc(var(--db-icon-font-size) + var(--db-spacing-fixed-sm) + var(--db-spacing-fixed-xs));
|
|
630
622
|
}
|
|
631
623
|
.db-input[data-icon-after], .db-input:has(input[type=search]), .db-input:has(datalist) {
|
|
632
|
-
--db-form-component-padding-inline-end: calc(
|
|
624
|
+
--db-form-component-padding-inline-end: calc(var(--db-icon-font-size) + var(--db-spacing-fixed-sm) + var(--db-spacing-fixed-xs));
|
|
633
625
|
}
|
|
634
626
|
.db-input[data-hide-label=true] {
|
|
635
627
|
--db-label-visible-height: 0;
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
/* Those variables are only for components to calculate heights and change icons */
|
|
9
9
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
10
10
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
11
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
12
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
13
11
|
line-height: var(--db-type-body-line-height-md);
|
|
14
12
|
font-size: var(--db-type-body-font-size-md);
|
|
15
13
|
}
|
|
@@ -18,8 +16,6 @@
|
|
|
18
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
19
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
20
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
21
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
22
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
23
19
|
line-height: var(--db-type-body-line-height-sm);
|
|
24
20
|
font-size: var(--db-type-body-font-size-sm);
|
|
25
21
|
}
|
|
@@ -99,16 +95,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
99
95
|
transform: translateY(-110%);
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
|
-
@keyframes accordion-open {
|
|
103
|
-
0% {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
transform: translateY(-10%);
|
|
106
|
-
}
|
|
107
|
-
100% {
|
|
108
|
-
opacity: 1;
|
|
109
|
-
transform: translateY(0%);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
98
|
@keyframes popover-animation {
|
|
113
99
|
0% {
|
|
114
100
|
opacity: 0;
|
|
@@ -17,8 +17,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
17
17
|
/* Those variables are only for components to calculate heights and change icons */
|
|
18
18
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
19
19
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
20
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
21
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
22
20
|
line-height: var(--db-type-body-line-height-md);
|
|
23
21
|
font-size: var(--db-type-body-font-size-md);
|
|
24
22
|
}
|
|
@@ -87,16 +85,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
87
85
|
transform: translateY(-110%);
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
|
-
@keyframes accordion-open {
|
|
91
|
-
0% {
|
|
92
|
-
opacity: 0;
|
|
93
|
-
transform: translateY(-10%);
|
|
94
|
-
}
|
|
95
|
-
100% {
|
|
96
|
-
opacity: 1;
|
|
97
|
-
transform: translateY(0%);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
88
|
@keyframes popover-animation {
|
|
101
89
|
0% {
|
|
102
90
|
opacity: 0;
|
|
@@ -245,7 +233,7 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
245
233
|
.db-navigation-item[data-icon]:not([data-hide-icon=true]) label {
|
|
246
234
|
--db-padding-inline-start: calc(
|
|
247
235
|
var(--db-spacing-fixed-sm) + var(--db-icon-margin-end, var(--db-spacing-fixed-xs)) +
|
|
248
|
-
var(--db-
|
|
236
|
+
var(--db-icon-font-size)
|
|
249
237
|
);
|
|
250
238
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
251
239
|
padding-inline-start: var(--db-padding-inline-start);
|
|
@@ -392,9 +380,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
392
380
|
transform: translateX(-100%);
|
|
393
381
|
inset-inline-start: 100%;
|
|
394
382
|
}
|
|
395
|
-
.db-sub-navigation:not([data-force-mobile]):is(:hover, :focus-within), .db-sub-navigation[data-force-mobile=false]:is(:hover, :focus-within) {
|
|
383
|
+
.db-sub-navigation:not([data-force-mobile]):is(:hover, :focus-within):not([data-force-close=true]), .db-sub-navigation[data-force-mobile=false]:is(:hover, :focus-within):not([data-force-close=true]) {
|
|
396
384
|
visibility: visible;
|
|
397
385
|
}
|
|
386
|
+
.db-sub-navigation:not([data-force-mobile])[data-force-close=true], .db-sub-navigation[data-force-mobile=false][data-force-close=true] {
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
}
|
|
398
389
|
.db-sub-navigation:not([data-force-mobile])::before, .db-sub-navigation[data-force-mobile=false]::before {
|
|
399
390
|
content: "";
|
|
400
391
|
position: absolute;
|
|
@@ -207,10 +207,14 @@
|
|
|
207
207
|
inset-inline-start: 100%;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
&:is(:hover, :focus-within) {
|
|
210
|
+
&:is(:hover, :focus-within):not([data-force-close="true"]) {
|
|
211
211
|
visibility: visible;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
&[data-force-close="true"] {
|
|
215
|
+
pointer-events: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
214
218
|
&::before {
|
|
215
219
|
content: "";
|
|
216
220
|
position: absolute;
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
/* Those variables are only for components to calculate heights and change icons */
|
|
9
9
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
10
10
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
11
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
12
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
13
11
|
line-height: var(--db-type-body-line-height-md);
|
|
14
12
|
font-size: var(--db-type-body-font-size-md);
|
|
15
13
|
}
|
|
@@ -18,8 +16,6 @@
|
|
|
18
16
|
/* Those variables are only for components to calculate heights and change icons */
|
|
19
17
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
20
18
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
21
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
22
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
23
19
|
line-height: var(--db-type-body-line-height-sm);
|
|
24
20
|
font-size: var(--db-type-body-font-size-sm);
|
|
25
21
|
}
|
|
@@ -865,16 +861,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
865
861
|
transform: translateY(-110%);
|
|
866
862
|
}
|
|
867
863
|
}
|
|
868
|
-
@keyframes accordion-open {
|
|
869
|
-
0% {
|
|
870
|
-
opacity: 0;
|
|
871
|
-
transform: translateY(-10%);
|
|
872
|
-
}
|
|
873
|
-
100% {
|
|
874
|
-
opacity: 1;
|
|
875
|
-
transform: translateY(0%);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
864
|
@keyframes popover-animation {
|
|
879
865
|
0% {
|
|
880
866
|
opacity: 0;
|
|
@@ -1071,8 +1057,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
1071
1057
|
.db-notification header h6 {
|
|
1072
1058
|
font-family: var(--db-font-family-sans);
|
|
1073
1059
|
margin: 0;
|
|
1074
|
-
line-height: var(--db-type-
|
|
1075
|
-
font-size: var(--db-type-
|
|
1060
|
+
line-height: var(--db-type-body-line-height-md);
|
|
1061
|
+
font-size: var(--db-type-body-font-size-md);
|
|
1076
1062
|
}
|
|
1077
1063
|
.db-notification header::before, .db-notification header::after,
|
|
1078
1064
|
.db-notification header h1::before,
|
|
@@ -1087,8 +1073,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
1087
1073
|
.db-notification header h5::after,
|
|
1088
1074
|
.db-notification header h6::before,
|
|
1089
1075
|
.db-notification header h6::after {
|
|
1090
|
-
--db-icon-font-size: var(--db-base-
|
|
1091
|
-
--db-icon-font-weight: var(--db-base-
|
|
1076
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
1077
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
1092
1078
|
}
|
|
1093
1079
|
.db-notification p {
|
|
1094
1080
|
grid-area: content;
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
h6 {
|
|
75
75
|
font-family: var(--db-font-family-sans);
|
|
76
76
|
margin: 0;
|
|
77
|
-
line-height: var(--db-type-
|
|
78
|
-
font-size: var(--db-type-
|
|
77
|
+
line-height: var(--db-type-body-line-height-md);
|
|
78
|
+
font-size: var(--db-type-body-font-size-md);
|
|
79
79
|
|
|
80
80
|
&::before,
|
|
81
81
|
&::after {
|
|
82
|
-
--db-icon-font-size: var(--db-base-
|
|
83
|
-
--db-icon-font-weight: var(--db-base-
|
|
82
|
+
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
83
|
+
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -70,16 +70,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
70
70
|
transform: translateY(-110%);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
@keyframes accordion-open {
|
|
74
|
-
0% {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
transform: translateY(-10%);
|
|
77
|
-
}
|
|
78
|
-
100% {
|
|
79
|
-
opacity: 1;
|
|
80
|
-
transform: translateY(0%);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
73
|
@keyframes popover-animation {
|
|
84
74
|
0% {
|
|
85
75
|
opacity: 0;
|
|
@@ -35,8 +35,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
35
35
|
/* Those variables are only for components to calculate heights and change icons */
|
|
36
36
|
--db-icon-font-weight: var(--db-base-body-icon-weight-md);
|
|
37
37
|
--db-icon-font-size: var(--db-base-body-icon-font-size-md);
|
|
38
|
-
--db-base-line-height: var(--db-type-body-line-height-md);
|
|
39
|
-
--db-base-font-size: var(--db-type-body-font-size-md);
|
|
40
38
|
line-height: var(--db-type-body-line-height-md);
|
|
41
39
|
font-size: var(--db-type-body-font-size-md);
|
|
42
40
|
}
|
|
@@ -45,8 +43,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
45
43
|
/* Those variables are only for components to calculate heights and change icons */
|
|
46
44
|
--db-icon-font-weight: var(--db-base-body-icon-weight-sm);
|
|
47
45
|
--db-icon-font-size: var(--db-base-body-icon-font-size-sm);
|
|
48
|
-
--db-base-line-height: var(--db-type-body-line-height-sm);
|
|
49
|
-
--db-base-font-size: var(--db-type-body-font-size-sm);
|
|
50
46
|
line-height: var(--db-type-body-line-height-sm);
|
|
51
47
|
font-size: var(--db-type-body-font-size-sm);
|
|
52
48
|
}
|
|
@@ -333,8 +329,8 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
333
329
|
aspect-ratio: 1;
|
|
334
330
|
/* stylelint-disable-next-line db-ux/use-border-height */
|
|
335
331
|
border: min(var(--db-border-height-2xs), 2px) solid var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
|
|
336
|
-
block-size:
|
|
337
|
-
inline-size:
|
|
332
|
+
block-size: var(--db-icon-font-size);
|
|
333
|
+
inline-size: var(--db-icon-font-size);
|
|
338
334
|
padding: 0;
|
|
339
335
|
/* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
|
|
340
336
|
}
|
|
@@ -380,10 +376,10 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
380
376
|
background-color: var(--db-adaptive-bg-basic-transparent-full-default);
|
|
381
377
|
}
|
|
382
378
|
.db-radio input:checked:not([data-size=small]) {
|
|
383
|
-
border-width: calc((
|
|
379
|
+
border-width: calc((var(--db-icon-font-size) - var(--db-sizing-2xs)) / 2);
|
|
384
380
|
}
|
|
385
381
|
.db-radio input:checked[data-size=small] {
|
|
386
|
-
border-width: calc((
|
|
382
|
+
border-width: calc((var(--db-icon-font-size) - var(--db-sizing-3xs)) / 2);
|
|
387
383
|
}
|
|
388
384
|
.db-radio input:focus-visible {
|
|
389
385
|
border-radius: var(--db-border-radius-full);
|