@db-ux/core-components 4.5.3 → 4.5.4-mcp-e4cd7e6

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +25 -16
  2. package/build/components/accordion-item/accordion-item.css +2 -2
  3. package/build/components/accordion-item/accordion-item.scss +1 -1
  4. package/build/components/custom-button/custom-button.css +1 -1
  5. package/build/components/custom-select/custom-select.css +6 -6
  6. package/build/components/custom-select-dropdown/custom-select-dropdown.css +3 -3
  7. package/build/components/custom-select-dropdown/custom-select-dropdown.scss +1 -1
  8. package/build/components/custom-select-list-item/custom-select-list-item.css +1 -1
  9. package/build/components/drawer/drawer.css +2 -2
  10. package/build/components/drawer/drawer.scss +2 -2
  11. package/build/components/header/header.css +22 -22
  12. package/build/components/input/input.css +6 -6
  13. package/build/components/input/input.scss +1 -1
  14. package/build/components/navigation/navigation.css +12 -12
  15. package/build/components/navigation/navigation.scss +1 -1
  16. package/build/components/navigation-item/navigation-item.css +11 -11
  17. package/build/components/navigation-item/navigation-item.scss +2 -2
  18. package/build/components/page/page.css +47 -41
  19. package/build/components/page/page.scss +31 -27
  20. package/build/components/popover/popover.css +12 -12
  21. package/build/components/radio/radio.css +1 -1
  22. package/build/components/radio/radio.scss +1 -1
  23. package/build/components/select/select.css +5 -5
  24. package/build/components/switch/switch.css +3 -6
  25. package/build/components/switch/switch.scss +3 -7
  26. package/build/components/tab-item/tab-item.css +1 -1
  27. package/build/components/tabs/tabs.css +3 -3
  28. package/build/components/textarea/textarea.css +3 -3
  29. package/build/components/tooltip/tooltip.css +12 -12
  30. package/build/styles/absolute.css +7 -7
  31. package/build/styles/index.css +7 -7
  32. package/build/styles/internal/_db-puls.scss +3 -3
  33. package/build/styles/internal/_form-components.scss +3 -3
  34. package/build/styles/internal/_popover-component.scss +2 -2
  35. package/build/styles/internal/_select-components.scss +1 -1
  36. package/build/styles/relative.css +7 -7
  37. package/build/styles/rollup.css +7 -7
  38. package/build/styles/webpack.css +7 -7
  39. package/package.json +5 -5
@@ -185,7 +185,7 @@
185
185
  /* stylelint-disable-next-line media-query-no-invalid */
186
186
  /* stylelint-disable-next-line at-rule-empty-line-before */
187
187
  }
188
- @media screen and (min-width: 64em) {
188
+ @media (min-width: 64em) {
189
189
  .db-navigation-item .db-navigation-item-expand-button:not([data-force-mobile]):is(:hover, :focus-visible):is(button) ~ .db-sub-navigation,
190
190
  .db-navigation-item .db-navigation-item-expand-button > button:not([data-force-mobile]):is(:hover, :focus-visible) ~ .db-sub-navigation, .db-navigation-item [data-force-mobile=false].db-navigation-item-expand-button:is(:hover, :focus-visible):is(button) ~ .db-sub-navigation,
191
191
  .db-navigation-item .db-navigation-item-expand-button > button[data-force-mobile=false]:is(:hover, :focus-visible) ~ .db-sub-navigation {
@@ -365,7 +365,7 @@
365
365
  .db-navigation-item[data-force-mobile=true]:not([data-width=full]) .db-navigation-item-expand-button::after {
366
366
  --db-icon-margin-start: auto;
367
367
  }
368
- @media screen and (max-width: 63.9375em) {
368
+ @media (max-width: 63.9375em) {
369
369
  .db-navigation-item:not([data-width=full]) .db-navigation-item-expand-button::after {
370
370
  --db-icon-margin-start: auto;
371
371
  }
@@ -383,7 +383,7 @@
383
383
  visibility: visible;
384
384
  transform: translateX(0%);
385
385
  }
386
- @media screen and (prefers-reduced-motion: no-preference) {
386
+ @media (prefers-reduced-motion: no-preference) {
387
387
  .db-navigation-item .db-navigation-item-expand-button[data-force-mobile=true][aria-expanded=true] ~ .db-sub-navigation {
388
388
  transition: visibility 0ms linear 0ms, transform var(--db-transition-duration-extra-slow) var(--db-transition-timing-emotional);
389
389
  }
@@ -394,23 +394,23 @@
394
394
  .db-navigation-item .db-navigation-item-expand-button[data-force-mobile=true]:not(.db-navigation-item .db-navigation-item-expand-button[data-force-mobile=true][aria-expanded=true]) ~ .db-sub-navigation {
395
395
  transform: translateX(110%);
396
396
  }
397
- @media screen and (prefers-reduced-motion: no-preference) {
397
+ @media (prefers-reduced-motion: no-preference) {
398
398
  .db-navigation-item .db-navigation-item-expand-button[data-force-mobile=true]:not(.db-navigation-item .db-navigation-item-expand-button[data-force-mobile=true][aria-expanded=true]) ~ .db-sub-navigation {
399
399
  transition: visibility 0ms linear 410ms, transform var(--db-transition-duration-slow) var(--db-transition-timing-emotional);
400
400
  }
401
401
  }
402
- @media screen and (max-width: 63.9375em) {
402
+ @media (max-width: 63.9375em) {
403
403
  .db-navigation-item .db-navigation-item-expand-button[aria-expanded=true] ~ .db-sub-navigation {
404
404
  visibility: visible;
405
405
  transform: translateX(0%);
406
406
  }
407
407
  }
408
- @media screen and (max-width: 63.9375em) and (prefers-reduced-motion: no-preference) {
408
+ @media (max-width: 63.9375em) and (prefers-reduced-motion: no-preference) {
409
409
  .db-navigation-item .db-navigation-item-expand-button[aria-expanded=true] ~ .db-sub-navigation {
410
410
  transition: visibility 0ms linear 0ms, transform var(--db-transition-duration-extra-slow) var(--db-transition-timing-emotional);
411
411
  }
412
412
  }
413
- @media screen and (max-width: 63.9375em) {
413
+ @media (max-width: 63.9375em) {
414
414
  .db-navigation-item .db-navigation-item-expand-button[aria-expanded=true] ~ .db-sub-navigation .db-sub-navigation {
415
415
  inset-block: 0;
416
416
  }
@@ -418,7 +418,7 @@
418
418
  transform: translateX(110%);
419
419
  }
420
420
  }
421
- @media screen and (max-width: 63.9375em) and (prefers-reduced-motion: no-preference) {
421
+ @media (max-width: 63.9375em) and (prefers-reduced-motion: no-preference) {
422
422
  .db-navigation-item .db-navigation-item-expand-button:not(.db-navigation-item .db-navigation-item-expand-button[aria-expanded=true]) ~ .db-sub-navigation {
423
423
  transition: visibility 0ms linear 410ms, transform var(--db-transition-duration-slow) var(--db-transition-timing-emotional);
424
424
  }
@@ -479,7 +479,7 @@
479
479
  overflow: hidden auto;
480
480
  inset-block: calc(calc(var(--db-sizing-md) + 2 * var(--db-spacing-fixed-xs)) + var(--db-spacing-fixed-3xs)) calc(var(--db-sizing-md) + var(--db-spacing-fixed-xs) * 2 + var(--db-spacing-fixed-3xs));
481
481
  }
482
- @media screen and (max-width: 63.9375em) {
482
+ @media (max-width: 63.9375em) {
483
483
  .db-sub-navigation {
484
484
  padding: var(--db-spacing-fixed-md);
485
485
  inline-size: 100%;
@@ -488,12 +488,12 @@
488
488
  inset-block: calc(calc(var(--db-sizing-md) + 2 * var(--db-spacing-fixed-xs)) + var(--db-spacing-fixed-3xs)) calc(var(--db-sizing-md) + var(--db-spacing-fixed-xs) * 2 + var(--db-spacing-fixed-3xs));
489
489
  }
490
490
  }
491
- @media screen and (min-width: 64em) {
491
+ @media (min-width: 64em) {
492
492
  .db-sub-navigation:not([data-force-mobile]) .db-mobile-navigation-back:not([hidden]), .db-sub-navigation[data-force-mobile=false] .db-mobile-navigation-back:not([hidden]) {
493
493
  display: none;
494
494
  }
495
495
  }
496
- @media screen and (min-width: 64em) {
496
+ @media (min-width: 64em) {
497
497
  .db-sub-navigation:not([data-force-mobile]), .db-sub-navigation[data-force-mobile=false] {
498
498
  border-radius: var(--db-border-radius-sm);
499
499
  box-shadow: var(--db-elevation-md);
@@ -26,7 +26,7 @@
26
26
  visibility: visible;
27
27
  transform: translateX(0%);
28
28
 
29
- @media screen and (prefers-reduced-motion: no-preference) {
29
+ @media (prefers-reduced-motion: no-preference) {
30
30
  transition:
31
31
  visibility 0ms linear 0ms,
32
32
  transform #{variables.$db-transition-duration-extra-slow}
@@ -44,7 +44,7 @@
44
44
  transform: translateX(110%);
45
45
  }
46
46
 
47
- @media screen and (prefers-reduced-motion: no-preference) {
47
+ @media (prefers-reduced-motion: no-preference) {
48
48
  ~ .db-sub-navigation {
49
49
  transition:
50
50
  visibility 0ms linear 410ms,
@@ -33,53 +33,59 @@
33
33
 
34
34
  @layer variables {}
35
35
 
36
- .db-page-document {
37
- block-size: 100%;
38
- overflow: hidden;
36
+ @media screen {
37
+ .db-page-document {
38
+ block-size: 100%;
39
+ overflow: hidden;
40
+ }
39
41
  }
40
42
 
41
- .db-page {
42
- opacity: 0;
43
+ @media screen {
44
+ .db-page {
45
+ opacity: 0;
46
+ }
43
47
  }
44
48
  @media screen and (prefers-reduced-motion: no-preference) {
45
49
  .db-page[data-fade-in=true] {
46
50
  transition: opacity var(--db-transition-straight-emotional);
47
51
  }
48
52
  }
49
- .db-page:not([data-fonts-loaded]), .db-page[data-fonts-loaded=true] {
50
- opacity: 1;
51
- }
52
- .db-page[data-variant=fixed] {
53
- block-size: 100%;
54
- min-block-size: 100%;
55
- flex-direction: column;
56
- /* workaround for angular */
57
- }
58
- .db-page[data-variant=fixed] > :is(.db-header, .db-footer, header, footer) {
59
- flex: 0 1 auto;
60
- flex-grow: 0;
61
- flex-shrink: 0;
62
- }
63
- .db-page[data-variant=fixed] > :is(.db-header, .db-footer, header, footer):not([hidden]) {
64
- display: flex;
65
- }
66
- .db-page[data-variant=fixed]:not([hidden]) {
67
- display: flex;
68
- }
69
- .db-page[data-variant=fixed] > :is(db-header, dbheader, dbfooter, db-footer) > :is(.db-header, .db-footer, header, footer) {
70
- flex: 0 1 auto;
71
- flex-grow: 0;
72
- flex-shrink: 0;
73
- }
74
- .db-page[data-variant=fixed] > :is(db-header, dbheader, dbfooter, db-footer) > :is(.db-header, .db-footer, header, footer):not([hidden]) {
75
- display: flex;
76
- }
77
- .db-page[data-variant=fixed] > .db-main {
78
- flex-direction: column;
79
- overflow: auto;
80
- flex: 1 1 auto;
81
- inline-size: 100%;
82
- }
83
- .db-page[data-variant=fixed] > .db-main:not([hidden]) {
84
- display: flex;
53
+ @media screen {
54
+ .db-page:not([data-fonts-loaded]), .db-page[data-fonts-loaded=true] {
55
+ opacity: 1;
56
+ }
57
+ .db-page[data-variant=fixed] {
58
+ block-size: 100%;
59
+ min-block-size: 100%;
60
+ flex-direction: column;
61
+ /* workaround for angular */
62
+ }
63
+ .db-page[data-variant=fixed] > :is(.db-header, .db-footer, header, footer) {
64
+ flex: 0 1 auto;
65
+ flex-grow: 0;
66
+ flex-shrink: 0;
67
+ }
68
+ .db-page[data-variant=fixed] > :is(.db-header, .db-footer, header, footer):not([hidden]) {
69
+ display: flex;
70
+ }
71
+ .db-page[data-variant=fixed]:not([hidden]) {
72
+ display: flex;
73
+ }
74
+ .db-page[data-variant=fixed] > :is(db-header, dbheader, dbfooter, db-footer) > :is(.db-header, .db-footer, header, footer) {
75
+ flex: 0 1 auto;
76
+ flex-grow: 0;
77
+ flex-shrink: 0;
78
+ }
79
+ .db-page[data-variant=fixed] > :is(db-header, dbheader, dbfooter, db-footer) > :is(.db-header, .db-footer, header, footer):not([hidden]) {
80
+ display: flex;
81
+ }
82
+ .db-page[data-variant=fixed] > .db-main {
83
+ flex-direction: column;
84
+ overflow: auto;
85
+ flex: 1 1 auto;
86
+ inline-size: 100%;
87
+ }
88
+ .db-page[data-variant=fixed] > .db-main:not([hidden]) {
89
+ display: flex;
90
+ }
85
91
  }
@@ -2,8 +2,10 @@
2
2
  @use "@db-ux/core-foundations/build/styles/helpers";
3
3
 
4
4
  .db-page-document {
5
- block-size: 100%;
6
- overflow: hidden;
5
+ @media screen {
6
+ block-size: 100%;
7
+ overflow: hidden;
8
+ }
7
9
  }
8
10
 
9
11
  @mixin header-footer-style {
@@ -17,41 +19,43 @@
17
19
  }
18
20
 
19
21
  .db-page {
20
- opacity: 0;
22
+ @media screen {
23
+ opacity: 0;
21
24
 
22
- @media screen and (prefers-reduced-motion: no-preference) {
23
- &[data-fade-in="true"] {
24
- transition: opacity variables.$db-transition-straight-emotional;
25
+ @media (prefers-reduced-motion: no-preference) {
26
+ &[data-fade-in="true"] {
27
+ transition: opacity variables.$db-transition-straight-emotional;
28
+ }
25
29
  }
26
- }
27
30
 
28
- &:not([data-fonts-loaded]),
29
- &[data-fonts-loaded="true"] {
30
- opacity: 1;
31
- }
31
+ &:not([data-fonts-loaded]),
32
+ &[data-fonts-loaded="true"] {
33
+ opacity: 1;
34
+ }
32
35
 
33
- &[data-variant="fixed"] {
34
- @include header-footer-style;
36
+ &[data-variant="fixed"] {
37
+ @include header-footer-style;
35
38
 
36
- block-size: 100%;
37
- min-block-size: 100%;
39
+ block-size: 100%;
40
+ min-block-size: 100%;
38
41
 
39
- @include helpers.display(flex);
42
+ @include helpers.display(flex);
40
43
 
41
- flex-direction: column;
44
+ flex-direction: column;
42
45
 
43
- /* workaround for angular */
44
- > :is(db-header, dbheader, dbfooter, db-footer) {
45
- @include header-footer-style;
46
- }
46
+ /* workaround for angular */
47
+ > :is(db-header, dbheader, dbfooter, db-footer) {
48
+ @include header-footer-style;
49
+ }
47
50
 
48
- > .db-main {
49
- @include helpers.display(flex);
51
+ > .db-main {
52
+ @include helpers.display(flex);
50
53
 
51
- flex-direction: column;
52
- overflow: auto;
53
- flex: 1 1 auto;
54
- inline-size: 100%;
54
+ flex-direction: column;
55
+ overflow: auto;
56
+ flex: 1 1 auto;
57
+ inline-size: 100%;
58
+ }
55
59
  }
56
60
  }
57
61
  }
@@ -164,13 +164,13 @@
164
164
  opacity: 1;
165
165
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
166
166
  }
167
- @media screen and (prefers-reduced-motion: reduce) {
167
+ @media (prefers-reduced-motion: reduce) {
168
168
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article:not([data-placement], [data-corrected-placement]):not([data-open=false]), .db-popover > article[data-open=true]:not([data-placement], [data-corrected-placement]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=bottom]:not([data-corrected-placement]):not([data-open=false]), .db-popover > article[data-placement^=bottom][data-open=true]:not([data-corrected-placement]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=bottom]:not([data-open=false]), .db-popover > article[data-corrected-placement^=bottom][data-open=true] {
169
169
  opacity: 1;
170
170
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
171
171
  }
172
172
  }
173
- @media screen and (prefers-reduced-motion: no-preference) {
173
+ @media (prefers-reduced-motion: no-preference) {
174
174
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article:not([data-placement], [data-corrected-placement])[data-animation=true]:not([data-open=false]), .db-popover > article[data-open=true]:not([data-placement], [data-corrected-placement])[data-animation=true], .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=bottom]:not([data-corrected-placement])[data-animation=true]:not([data-open=false]), .db-popover > article[data-placement^=bottom][data-open=true]:not([data-corrected-placement])[data-animation=true], .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=bottom][data-animation=true]:not([data-open=false]), .db-popover > article[data-corrected-placement^=bottom][data-animation=true][data-open=true] {
175
175
  animation: popover-animation var(--db-transition-straight-emotional) normal both;
176
176
  /* stylelint-disable-next-line media-query-no-invalid */
@@ -183,7 +183,7 @@
183
183
  animation-delay: var(--db-transition-duration-medium);
184
184
  }
185
185
  }
186
- @media screen and (prefers-reduced-motion: no-preference) and (width <= 64em) {
186
+ @media (prefers-reduced-motion: no-preference) and (width <= 64em) {
187
187
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article:not([data-placement], [data-corrected-placement])[data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-open=true]:not([data-placement], [data-corrected-placement])[data-animation=true]:not([data-delay]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=bottom]:not([data-corrected-placement])[data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-placement^=bottom][data-open=true]:not([data-corrected-placement])[data-animation=true]:not([data-delay]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=bottom][data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-corrected-placement^=bottom][data-animation=true][data-open=true]:not([data-delay]) {
188
188
  animation-delay: var(--db-transition-duration-medium);
189
189
  }
@@ -195,13 +195,13 @@
195
195
  opacity: 1;
196
196
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
197
197
  }
198
- @media screen and (prefers-reduced-motion: reduce) {
198
+ @media (prefers-reduced-motion: reduce) {
199
199
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=top]:not([data-corrected-placement]):not([data-open=false]), .db-popover > article[data-placement^=top][data-open=true]:not([data-corrected-placement]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=top]:not([data-open=false]), .db-popover > article[data-corrected-placement^=top][data-open=true] {
200
200
  opacity: 1;
201
201
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
202
202
  }
203
203
  }
204
- @media screen and (prefers-reduced-motion: no-preference) {
204
+ @media (prefers-reduced-motion: no-preference) {
205
205
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=top]:not([data-corrected-placement])[data-animation=true]:not([data-open=false]), .db-popover > article[data-placement^=top][data-open=true]:not([data-corrected-placement])[data-animation=true], .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=top][data-animation=true]:not([data-open=false]), .db-popover > article[data-corrected-placement^=top][data-animation=true][data-open=true] {
206
206
  animation: popover-animation var(--db-transition-straight-emotional) normal both;
207
207
  /* stylelint-disable-next-line media-query-no-invalid */
@@ -214,7 +214,7 @@
214
214
  animation-delay: var(--db-transition-duration-medium);
215
215
  }
216
216
  }
217
- @media screen and (prefers-reduced-motion: no-preference) and (width <= 64em) {
217
+ @media (prefers-reduced-motion: no-preference) and (width <= 64em) {
218
218
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=top]:not([data-corrected-placement])[data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-placement^=top][data-open=true]:not([data-corrected-placement])[data-animation=true]:not([data-delay]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=top][data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-corrected-placement^=top][data-animation=true][data-open=true]:not([data-delay]) {
219
219
  animation-delay: var(--db-transition-duration-medium);
220
220
  }
@@ -226,13 +226,13 @@
226
226
  opacity: 1;
227
227
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
228
228
  }
229
- @media screen and (prefers-reduced-motion: reduce) {
229
+ @media (prefers-reduced-motion: reduce) {
230
230
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=right]:not([data-corrected-placement]):not([data-open=false]), .db-popover > article[data-placement^=right][data-open=true]:not([data-corrected-placement]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=right]:not([data-open=false]), .db-popover > article[data-corrected-placement^=right][data-open=true] {
231
231
  opacity: 1;
232
232
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
233
233
  }
234
234
  }
235
- @media screen and (prefers-reduced-motion: no-preference) {
235
+ @media (prefers-reduced-motion: no-preference) {
236
236
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=right]:not([data-corrected-placement])[data-animation=true]:not([data-open=false]), .db-popover > article[data-placement^=right][data-open=true]:not([data-corrected-placement])[data-animation=true], .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=right][data-animation=true]:not([data-open=false]), .db-popover > article[data-corrected-placement^=right][data-animation=true][data-open=true] {
237
237
  animation: popover-animation var(--db-transition-straight-emotional) normal both;
238
238
  /* stylelint-disable-next-line media-query-no-invalid */
@@ -245,7 +245,7 @@
245
245
  animation-delay: var(--db-transition-duration-medium);
246
246
  }
247
247
  }
248
- @media screen and (prefers-reduced-motion: no-preference) and (width <= 64em) {
248
+ @media (prefers-reduced-motion: no-preference) and (width <= 64em) {
249
249
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=right]:not([data-corrected-placement])[data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-placement^=right][data-open=true]:not([data-corrected-placement])[data-animation=true]:not([data-delay]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=right][data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-corrected-placement^=right][data-animation=true][data-open=true]:not([data-delay]) {
250
250
  animation-delay: var(--db-transition-duration-medium);
251
251
  }
@@ -257,13 +257,13 @@
257
257
  opacity: 1;
258
258
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
259
259
  }
260
- @media screen and (prefers-reduced-motion: reduce) {
260
+ @media (prefers-reduced-motion: reduce) {
261
261
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=left]:not([data-corrected-placement]):not([data-open=false]), .db-popover > article[data-placement^=left][data-open=true]:not([data-corrected-placement]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=left]:not([data-open=false]), .db-popover > article[data-corrected-placement^=left][data-open=true] {
262
262
  opacity: 1;
263
263
  transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
264
264
  }
265
265
  }
266
- @media screen and (prefers-reduced-motion: no-preference) {
266
+ @media (prefers-reduced-motion: no-preference) {
267
267
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=left]:not([data-corrected-placement])[data-animation=true]:not([data-open=false]), .db-popover > article[data-placement^=left][data-open=true]:not([data-corrected-placement])[data-animation=true], .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=left][data-animation=true]:not([data-open=false]), .db-popover > article[data-corrected-placement^=left][data-animation=true][data-open=true] {
268
268
  animation: popover-animation var(--db-transition-straight-emotional) normal both;
269
269
  /* stylelint-disable-next-line media-query-no-invalid */
@@ -276,7 +276,7 @@
276
276
  animation-delay: var(--db-transition-duration-medium);
277
277
  }
278
278
  }
279
- @media screen and (prefers-reduced-motion: no-preference) and (width <= 64em) {
279
+ @media (prefers-reduced-motion: no-preference) and (width <= 64em) {
280
280
  .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-placement^=left]:not([data-corrected-placement])[data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-placement^=left][data-open=true]:not([data-corrected-placement])[data-animation=true]:not([data-delay]), .db-popover:is([data-e2e-hover=true], :hover, :focus-within) > article[data-corrected-placement^=left][data-animation=true]:not([data-delay]):not([data-open=false]), .db-popover > article[data-corrected-placement^=left][data-animation=true][data-open=true]:not([data-delay]) {
281
281
  animation-delay: var(--db-transition-duration-medium);
282
282
  }
@@ -299,7 +299,7 @@
299
299
  .db-radio input {
300
300
  border-radius: var(--db-border-radius-full);
301
301
  }
302
- @media screen and (prefers-reduced-motion: no-preference) {
302
+ @media (prefers-reduced-motion: no-preference) {
303
303
  .db-radio input {
304
304
  transition: border-width var(--db-transition-duration-fast) var(--db-transition-timing-functional);
305
305
  }
@@ -46,7 +46,7 @@
46
46
  input {
47
47
  border-radius: variables.$db-border-radius-full;
48
48
 
49
- @media screen and (prefers-reduced-motion: no-preference) {
49
+ @media (prefers-reduced-motion: no-preference) {
50
50
  transition: border-width variables.$db-transition-duration-fast
51
51
  variables.$db-transition-timing-functional;
52
52
  }
@@ -526,7 +526,7 @@ input[type=radio]:checked) > label {
526
526
  .db-select::after {
527
527
  pointer-events: none;
528
528
  }
529
- @media screen and (prefers-reduced-motion: no-preference) {
529
+ @media (prefers-reduced-motion: no-preference) {
530
530
  .db-select::after {
531
531
  transition: transform var(--db-transition-straight-emotional);
532
532
  }
@@ -551,7 +551,7 @@ input[type=radio]:checked) > label {
551
551
  inset-inline-start: 0;
552
552
  opacity: 0;
553
553
  }
554
- @media screen and (prefers-reduced-motion: no-preference) {
554
+ @media (prefers-reduced-motion: no-preference) {
555
555
  .db-select-placeholder {
556
556
  transition: opacity var(--db-transition-straight-emotional), outline var(--db-transition-duration-extra-fast), border-color var(--db-transition-straight-emotional), background-color var(--db-transition-straight-emotional);
557
557
  }
@@ -684,7 +684,7 @@ input[type=radio]:checked) [id$=-placeholder] {
684
684
  /* stylelint-disable-next-line db-ux/use-spacings */
685
685
  padding-block-start: var(--db-base-body-icon-font-size-2xs);
686
686
  }
687
- @media screen and (prefers-reduced-motion: no-preference) {
687
+ @media (prefers-reduced-motion: no-preference) {
688
688
  .db-select[data-variant=floating]:has(select:focus-within,
689
689
  select:is(input, textarea):not(:placeholder-shown),
690
690
  > select option:checked:not(.placeholder),
@@ -723,7 +723,7 @@ input[type=radio]:checked) select:is([type=date],
723
723
  /* stylelint-disable-next-line db-ux/use-spacings */
724
724
  padding-block-start: var(--db-base-body-icon-font-size-2xs);
725
725
  }
726
- @media screen and (prefers-reduced-motion: no-preference) {
726
+ @media (prefers-reduced-motion: no-preference) {
727
727
  .db-select[data-variant=floating]:has(select:focus-within,
728
728
  select:is(input, textarea):not(:placeholder-shown),
729
729
  > select option:checked:not(.placeholder),
@@ -893,7 +893,7 @@ input[type=radio]:checked) select:is([type=date],
893
893
  white-space: nowrap;
894
894
  overflow: hidden;
895
895
  }
896
- @media screen and (prefers-reduced-motion: no-preference) {
896
+ @media (prefers-reduced-motion: no-preference) {
897
897
  .db-select > label {
898
898
  transition: font-size var(--db-transition-straight-emotional);
899
899
  }
@@ -522,7 +522,7 @@
522
522
  transform: translateX(var(--thumb-offset-x));
523
523
  margin-inline-end: calc(calc(var(--db-icon-font-size)) - calc(var(--db-icon-font-size) - 0.125rem * 2));
524
524
  }
525
- @media screen and (prefers-reduced-motion: no-preference) {
525
+ @media (prefers-reduced-motion: no-preference) {
526
526
  .db-switch input::before {
527
527
  transition: margin var(--db-transition-duration-fast) var(--db-transition-timing-emotional), inline-size var(--db-transition-duration-fast) var(--db-transition-timing-emotional), block-size var(--db-transition-duration-fast) var(--db-transition-timing-emotional), transform var(--db-transition-duration-fast) var(--db-transition-timing-emotional), visibility var(--db-transition-duration-fast) var(--db-transition-timing-emotional);
528
528
  }
@@ -563,7 +563,7 @@
563
563
  .db-switch input[data-aid-icon-trailing]:checked::after {
564
564
  --db-icon-trailing: attr(data-aid-icon-trailing);
565
565
  }
566
- @media screen and (prefers-reduced-motion: no-preference) {
566
+ @media (prefers-reduced-motion: no-preference) {
567
567
  .db-switch input {
568
568
  transition: none;
569
569
  }
@@ -574,14 +574,11 @@
574
574
  .db-switch[data-hide-label=true] > label > span {
575
575
  font-size: 0;
576
576
  }
577
- .db-switch[data-size=small] > label {
578
- gap: var(--db-spacing-fixed-2xs);
579
- }
580
577
  .db-switch[data-visual-aid=true] input::after {
581
578
  visibility: visible;
582
579
  block-size: calc(var(--db-icon-font-size));
583
580
  }
584
- @media screen and (prefers-reduced-motion: no-preference) {
581
+ @media (prefers-reduced-motion: no-preference) {
585
582
  .db-switch[data-visual-aid=true] input::after {
586
583
  transition: transform var(--db-transition-duration-fast) var(--db-transition-timing-emotional);
587
584
  }
@@ -108,7 +108,7 @@ $checked-active-transition-size: calc(
108
108
  #{$switch-active-thumb-size} - #{$switch-inactive-thumb-size}
109
109
  );
110
110
 
111
- @media screen and (prefers-reduced-motion: no-preference) {
111
+ @media (prefers-reduced-motion: no-preference) {
112
112
  transition:
113
113
  margin variables.$db-transition-duration-fast
114
114
  variables.$db-transition-timing-emotional,
@@ -167,7 +167,7 @@ $checked-active-transition-size: calc(
167
167
  --db-icon-trailing: attr(data-aid-icon-trailing);
168
168
  }
169
169
 
170
- @media screen and (prefers-reduced-motion: no-preference) {
170
+ @media (prefers-reduced-motion: no-preference) {
171
171
  // Overwrite default transition for switch border
172
172
  transition: none;
173
173
  }
@@ -184,10 +184,6 @@ $checked-active-transition-size: calc(
184
184
  }
185
185
 
186
186
  &[data-size="small"] {
187
- > label {
188
- gap: variables.$db-spacing-fixed-2xs;
189
- }
190
-
191
187
  input {
192
188
  @extend %db-overwrite-font-size-xs;
193
189
  }
@@ -199,7 +195,7 @@ $checked-active-transition-size: calc(
199
195
  visibility: visible;
200
196
  block-size: $switch-active-thumb-size;
201
197
 
202
- @media screen and (prefers-reduced-motion: no-preference) {
198
+ @media (prefers-reduced-motion: no-preference) {
203
199
  transition: transform variables.$db-transition-duration-fast
204
200
  variables.$db-transition-timing-emotional;
205
201
  }
@@ -57,7 +57,7 @@
57
57
  outline-offset: var(--db-border-width-xs);
58
58
  box-shadow: 0 0 0 var(--db-border-width-xs) var(--db-focus-box-shadow-bg-color, transparent);
59
59
  }
60
- @media screen and (prefers-reduced-motion: no-preference) {
60
+ @media (prefers-reduced-motion: no-preference) {
61
61
  .db-tab-item input:not([data-disable-focus=true]):focus-visible::before {
62
62
  transition: outline var(--db-transition-duration-extra-fast), box-shadow var(--db-transition-duration-extra-fast);
63
63
  }
@@ -111,7 +111,7 @@
111
111
  position: absolute;
112
112
  border-radius: var(--db-border-radius-xs);
113
113
  }
114
- @media screen and (prefers-reduced-motion: no-preference) {
114
+ @media (prefers-reduced-motion: no-preference) {
115
115
  .db-tabs .db-tab-item::after {
116
116
  transition: height var(--db-transition-duration-fast) var(--db-transition-timing-emotional), width var(--db-transition-duration-fast) var(--db-transition-timing-emotional);
117
117
  }
@@ -196,7 +196,7 @@
196
196
  block-size: var(--db-border-width-xs);
197
197
  inline-size: 100%;
198
198
  }
199
- @media (forced-colors: active) {
199
+ @media (forced-colors: active), print {
200
200
  .db-tabs:not([data-orientation=vertical]) .db-tab-list > ul .db-tab-item:has(input:checked)::after {
201
201
  border: calc(var(--db-border-width-xs) - 1px) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
202
202
  }
@@ -221,7 +221,7 @@
221
221
  block-size: 100%;
222
222
  inline-size: var(--db-border-width-xs);
223
223
  }
224
- @media (forced-colors: active) {
224
+ @media (forced-colors: active), print {
225
225
  .db-tabs[data-orientation=vertical] .db-tab-list > ul .db-tab-item:has(input:checked)::after {
226
226
  border: calc(var(--db-border-width-xs) - 1px) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
227
227
  }
@@ -391,7 +391,7 @@ input[type=radio]:checked) [id$=-placeholder] {
391
391
  font-family: var(--db-font-family-sans);
392
392
  font-style: italic;
393
393
  }
394
- @media screen and (prefers-reduced-motion: no-preference) {
394
+ @media (prefers-reduced-motion: no-preference) {
395
395
  .db-textarea[data-variant=floating]:has(textarea:focus-within,
396
396
  textarea:is(input, textarea):not(:placeholder-shown),
397
397
  > select option:checked:not(.placeholder),
@@ -428,7 +428,7 @@ input[type=radio]:checked) textarea:is([type=date],
428
428
  font-family: var(--db-font-family-sans);
429
429
  font-style: italic;
430
430
  }
431
- @media screen and (prefers-reduced-motion: no-preference) {
431
+ @media (prefers-reduced-motion: no-preference) {
432
432
  .db-textarea[data-variant=floating]:has(textarea:focus-within,
433
433
  textarea:is(input, textarea):not(:placeholder-shown),
434
434
  > select option:checked:not(.placeholder),
@@ -728,7 +728,7 @@ input[type=radio]:checked) textarea:is([type=date],
728
728
  white-space: nowrap;
729
729
  overflow: hidden;
730
730
  }
731
- @media screen and (prefers-reduced-motion: no-preference) {
731
+ @media (prefers-reduced-motion: no-preference) {
732
732
  .db-textarea > label {
733
733
  transition: font-size var(--db-transition-straight-emotional);
734
734
  }