@db-ux/core-components 3.0.2-copilot2-e7bf98b → 3.0.2-shell2-badc28f
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/build/assets/icons/LICENCES.json +24 -0
- package/build/assets/icons/double_chevron_left.svg +1 -0
- package/build/assets/icons/double_chevron_right.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/assets/icons/house.svg +1 -0
- package/build/assets/icons/intermediary_stop.svg +1 -0
- package/build/components/accordion/accordion.css +5 -5
- package/build/components/button/button.scss +1 -1
- package/build/components/{brand/brand.css → control-panel-brand/control-panel-brand.css} +12 -6
- package/build/components/{brand/brand.scss → control-panel-brand/control-panel-brand.scss} +10 -1
- package/build/components/control-panel-desktop/control-panel-desktop.css +791 -0
- package/build/components/control-panel-desktop/control-panel-desktop.scss +29 -0
- package/build/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.css +192 -0
- package/build/components/control-panel-flat-icon-navigation/control-panel-flat-icon-navigation.scss +84 -0
- package/build/components/control-panel-meta-navigation/control-panel-meta-navigation.css +54 -0
- package/build/components/control-panel-meta-navigation/control-panel-meta-navigation.scss +12 -0
- package/build/components/control-panel-mobile/control-panel-mobile.css +716 -0
- package/build/components/control-panel-mobile/control-panel-mobile.scss +125 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.css +16 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.scss +8 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.css +16 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.scss +8 -0
- package/build/components/custom-select/custom-select.css +4 -4
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +12 -12
- package/build/components/custom-select-list-item/custom-select-list-item.css +6 -6
- package/build/components/divider/divider.css +6 -6
- package/build/components/drawer/drawer.css +6 -5
- package/build/components/drawer/drawer.scss +6 -26
- package/build/components/navigation/navigation.css +394 -123
- package/build/components/navigation/navigation.scss +155 -72
- package/build/components/navigation-item/navigation-item.css +35 -418
- package/build/components/navigation-item/navigation-item.scss +8 -310
- package/build/components/navigation-item-group/navigation-item-group-menu-popover.css +189 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-popover.scss +105 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-tree.css +208 -0
- package/build/components/navigation-item-group/navigation-item-group-menu-tree.scss +40 -0
- package/build/components/navigation-item-group/navigation-item-group.css +432 -0
- package/build/components/navigation-item-group/navigation-item-group.scss +69 -0
- package/build/components/shell/shell-desktop.css +548 -0
- package/build/components/shell/shell-desktop.scss +187 -0
- package/build/components/shell/shell-mobile.css +633 -0
- package/build/components/shell/shell-mobile.scss +107 -0
- package/build/components/shell/shell.css +1876 -0
- package/build/components/shell/shell.scss +84 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.css +11 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.scss +15 -0
- package/build/components/stack/stack-web-component.css +1 -0
- package/build/components/stack/stack.css +1 -0
- package/build/components/tab-item/tab-item.scss +0 -1
- package/build/components/tab-list/tab-list.css +1 -1
- package/build/components/tabs/tabs.css +106 -23
- package/build/components/tabs/tabs.scss +25 -70
- package/build/components/tag/tag.css +5 -11
- package/build/components/tag/tag.scss +1 -5
- package/build/components/textarea/textarea.css +1 -1
- package/build/styles/absolute.css +6 -6
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +5 -5
- package/build/styles/index.scss +11 -3
- package/build/styles/internal/_control-panel-desktop.scss +455 -0
- package/build/styles/internal/_control-panel-mobile.scss +130 -0
- package/build/styles/internal/_custom-elements.scss +22 -4
- package/build/styles/internal/_icon-passing.scss +19 -9
- package/build/styles/internal/{_db-puls.scss → _indicator.scss} +37 -16
- package/build/styles/internal/_navigation-item.scss +122 -0
- package/build/styles/internal/_scrollbar.scss +71 -0
- package/build/styles/relative.css +6 -6
- package/build/styles/rollup.css +6 -6
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +11 -0
- package/build/styles/webpack.css +6 -6
- package/package.json +3 -7
- package/agent/_instructions.md +0 -9
- package/build/components/header/header.css +0 -759
- package/build/components/header/header.scss +0 -259
- package/build/components/page/page.css +0 -52
- package/build/components/page/page.scss +0 -52
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
3
|
+
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
4
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/colors";
|
|
6
|
+
@use "../../styles/internal/component";
|
|
7
|
+
@use "../../styles/internal/custom-elements";
|
|
8
|
+
@use "../../styles/internal/control-panel-mobile";
|
|
9
|
+
@use "../../styles/internal/navigation-item";
|
|
10
|
+
@use "../../styles/internal/indicator";
|
|
11
|
+
|
|
12
|
+
.db-control-panel-mobile {
|
|
13
|
+
background-color: colors.$db-adaptive-bg-basic-level-1-default;
|
|
14
|
+
display: grid;
|
|
15
|
+
position: relative;
|
|
16
|
+
min-block-size: component.$min-mobile-header-height;
|
|
17
|
+
gap: variables.$db-spacing-fixed-xs;
|
|
18
|
+
padding: variables.$db-spacing-fixed-xs variables.$db-spacing-fixed-md;
|
|
19
|
+
|
|
20
|
+
&[data-position="top"] {
|
|
21
|
+
@extend %control-panel-mobile-position-top;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-position="bottom"] {
|
|
25
|
+
@extend %control-panel-mobile-position-bottom;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.db-control-panel-brand {
|
|
29
|
+
justify-self: self-start;
|
|
30
|
+
inline-size: 100%;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.db-control-panel-mobile-button {
|
|
37
|
+
grid-area: drawer-button;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@include control-panel-mobile.has-empty-drawer {
|
|
41
|
+
--db-control-panel-mobile-position-top-grid-areas: "brand primary";
|
|
42
|
+
--db-control-panel-mobile-position-top-grid-columns: [brand] 1fr
|
|
43
|
+
[primary] min-content;
|
|
44
|
+
|
|
45
|
+
// If drawer is empty we hide burger button
|
|
46
|
+
.db-control-panel-mobile-button {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// We don't show primary border in this case
|
|
51
|
+
.db-control-panel-primary-actions {
|
|
52
|
+
padding-inline-end: 0;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.db-drawer {
|
|
61
|
+
--db-drawer-content-padding-inline: 0;
|
|
62
|
+
--db-drawer-max-width: variables.$db-container-xs;
|
|
63
|
+
--db-drawer-max-height: 63vh;
|
|
64
|
+
|
|
65
|
+
> .db-drawer-container {
|
|
66
|
+
> .db-drawer-content {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
block-size: 100%;
|
|
70
|
+
|
|
71
|
+
.db-control-panel-secondary-actions {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
padding-inline: variables.$db-spacing-fixed-md;
|
|
74
|
+
padding-block-start: variables.$db-spacing-fixed-xs;
|
|
75
|
+
|
|
76
|
+
@include helpers.divider("top");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.db-control-panel-mobile-drawer-scroll-container {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
overflow-y: auto;
|
|
83
|
+
block-size: 100%;
|
|
84
|
+
|
|
85
|
+
.db-control-panel-meta-navigation {
|
|
86
|
+
padding: variables.$db-spacing-fixed-md;
|
|
87
|
+
margin-block-start: auto;
|
|
88
|
+
|
|
89
|
+
@include helpers.divider("top");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.db-navigation {
|
|
93
|
+
padding: variables.$db-spacing-fixed-md;
|
|
94
|
+
|
|
95
|
+
#{string.unquote(custom-elements.$overflow-scroll-left-button)},
|
|
96
|
+
#{string.unquote(custom-elements.$overflow-scroll-right-button)} {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
> menu {
|
|
101
|
+
@include navigation-item.direct-navigation-items {
|
|
102
|
+
@extend %indicator;
|
|
103
|
+
|
|
104
|
+
@include indicator.set-indicator-vertical();
|
|
105
|
+
|
|
106
|
+
@include navigation-item.active-navigation-item {
|
|
107
|
+
@include indicator.show-indicator-vertical(
|
|
108
|
+
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include navigation-item.direct-navigation-items {
|
|
113
|
+
/* Workaround for custom-elements */
|
|
114
|
+
&::after {
|
|
115
|
+
content: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
+
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
+
/* The primary use-case for responsive spacings are
|
|
4
|
+
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
+
/* Elevation */
|
|
6
|
+
/* Border */
|
|
7
|
+
/* Opacity */
|
|
8
|
+
/* Transitions */
|
|
9
|
+
/* Screen sizes */
|
|
10
|
+
/* Container sizes */
|
|
11
|
+
.db-control-panel-primary-actions {
|
|
12
|
+
grid-area: primary;
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: var(--db-spacing-fixed-xs);
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
|
|
2
|
+
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
|
|
3
|
+
/* The primary use-case for responsive spacings are
|
|
4
|
+
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
|
|
5
|
+
/* Elevation */
|
|
6
|
+
/* Border */
|
|
7
|
+
/* Opacity */
|
|
8
|
+
/* Transitions */
|
|
9
|
+
/* Screen sizes */
|
|
10
|
+
/* Container sizes */
|
|
11
|
+
.db-control-panel-secondary-actions {
|
|
12
|
+
grid-area: secondary;
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: var(--db-spacing-fixed-xs);
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
@@ -1122,12 +1122,12 @@ summary[aria-disabled=true]) {
|
|
|
1122
1122
|
inline-size: var(--db-border-width-3xs);
|
|
1123
1123
|
inset-inline-end: 0;
|
|
1124
1124
|
inset-block: 0;
|
|
1125
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
1125
1126
|
}
|
|
1126
1127
|
@media (forced-colors: active) {
|
|
1127
|
-
.db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost],
|
|
1128
|
-
.db-custom-select > .db-button[data-icon=cross][data-variant=ghost] {
|
|
1129
|
-
|
|
1130
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
1128
|
+
.db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost]::after,
|
|
1129
|
+
.db-custom-select > .db-button[data-icon=cross][data-variant=ghost]::after {
|
|
1130
|
+
border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
.db-custom-select > db-button > .db-button[data-icon=cross][data-variant=ghost]::after,
|
|
@@ -414,13 +414,13 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
414
414
|
block-size: var(--db-border-width-3xs);
|
|
415
415
|
inset-block-end: 0;
|
|
416
416
|
inset-inline: 0;
|
|
417
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
417
418
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
418
419
|
}
|
|
419
420
|
@media (forced-colors: active) {
|
|
420
|
-
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-checkbox),
|
|
421
|
-
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-checkbox) {
|
|
422
|
-
|
|
423
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
421
|
+
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after,
|
|
422
|
+
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-checkbox)::after {
|
|
423
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button), .db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input),
|
|
@@ -445,13 +445,13 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
445
445
|
block-size: var(--db-border-width-3xs);
|
|
446
446
|
inset-block-end: 0;
|
|
447
447
|
inset-inline: 0;
|
|
448
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
448
449
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
449
450
|
}
|
|
450
451
|
@media (forced-colors: active) {
|
|
451
|
-
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input),
|
|
452
|
-
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input) {
|
|
453
|
-
|
|
454
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
452
|
+
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-input)::after,
|
|
453
|
+
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-input)::after {
|
|
454
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button),
|
|
@@ -473,13 +473,13 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
473
473
|
block-size: var(--db-border-width-3xs);
|
|
474
474
|
inset-block-start: 0;
|
|
475
475
|
inset-inline: 0;
|
|
476
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
476
477
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
477
478
|
}
|
|
478
479
|
@media (forced-colors: active) {
|
|
479
|
-
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button),
|
|
480
|
-
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button) {
|
|
481
|
-
|
|
482
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
480
|
+
.db-custom-select-dropdown > db-custom-select-list > div:not([class~=db-custom-select-list]):has(.db-button)::after,
|
|
481
|
+
.db-custom-select-dropdown > div:not([class~=db-custom-select-list]):has(.db-button)::after {
|
|
482
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
@media screen and (min-width: 48em) {
|
|
@@ -164,12 +164,12 @@ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-d
|
|
|
164
164
|
block-size: var(--db-border-width-3xs);
|
|
165
165
|
inset-block-end: 0;
|
|
166
166
|
inset-inline: 0;
|
|
167
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
167
168
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
168
169
|
}
|
|
169
170
|
@media (forced-colors: active) {
|
|
170
|
-
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true] {
|
|
171
|
-
|
|
172
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
171
|
+
db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-divider=true]::before {
|
|
172
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -222,12 +222,12 @@ db-custom-select-list-item:not(:last-of-type) .db-custom-select-list-item[data-d
|
|
|
222
222
|
block-size: var(--db-border-width-3xs);
|
|
223
223
|
inset-block-end: 0;
|
|
224
224
|
inset-inline: 0;
|
|
225
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
225
226
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
226
227
|
}
|
|
227
228
|
@media (forced-colors: active) {
|
|
228
|
-
.db-custom-select-list-item[data-divider=true]:not(:last-of-type) {
|
|
229
|
-
|
|
230
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
229
|
+
.db-custom-select-list-item[data-divider=true]:not(:last-of-type)::before {
|
|
230
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
.db-custom-select-list-item > label {
|
|
@@ -70,12 +70,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
70
70
|
block-size: var(--db-border-width-3xs);
|
|
71
71
|
inset-block-start: 0;
|
|
72
72
|
inset-inline: 0;
|
|
73
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
73
74
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
74
75
|
}
|
|
75
76
|
@media (forced-colors: active) {
|
|
76
|
-
.db-divider:not([data-variant=vertical]) {
|
|
77
|
-
|
|
78
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
77
|
+
.db-divider:not([data-variant=vertical])::before {
|
|
78
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
.db-divider:not([data-variant=vertical])[data-width=full] {
|
|
@@ -96,12 +96,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
96
96
|
inline-size: var(--db-border-width-3xs);
|
|
97
97
|
inset-inline-start: 0;
|
|
98
98
|
inset-block: 0;
|
|
99
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
99
100
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
100
101
|
}
|
|
101
102
|
@media (forced-colors: active) {
|
|
102
|
-
.db-divider[data-variant=vertical] {
|
|
103
|
-
|
|
104
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
103
|
+
.db-divider[data-variant=vertical]::before {
|
|
104
|
+
border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
.db-divider[data-variant=vertical]:is(:not([data-margin]), [data-margin=small]) {
|
|
@@ -153,10 +153,10 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
153
153
|
background-color: color(from var(--db-adaptive-on-bg-basic-emphasis-100-default) srgb r g b/var(--db-opacity-sm));
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.db-drawer .db-drawer-container {
|
|
156
|
+
.db-drawer .db-drawer-container:not([data-direction]), .db-drawer .db-drawer-container[data-direction=right] {
|
|
157
157
|
inset-inline: auto 0;
|
|
158
158
|
}
|
|
159
|
-
.db-drawer [data-rounded=true].db-drawer-container {
|
|
159
|
+
.db-drawer [data-rounded=true].db-drawer-container:not([data-direction]), .db-drawer [data-rounded=true].db-drawer-container[data-direction=right] {
|
|
160
160
|
border-start-start-radius: var(--db-border-radius-sm);
|
|
161
161
|
border-end-start-radius: var(--db-border-radius-sm);
|
|
162
162
|
}
|
|
@@ -320,12 +320,12 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
320
320
|
block-size: var(--db-border-width-3xs);
|
|
321
321
|
inset-block-end: 0;
|
|
322
322
|
inset-inline: 0;
|
|
323
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
323
324
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
324
325
|
}
|
|
325
326
|
@media (forced-colors: active) {
|
|
326
|
-
.db-drawer .db-drawer-container .db-drawer-header {
|
|
327
|
-
|
|
328
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
327
|
+
.db-drawer .db-drawer-container .db-drawer-header::before {
|
|
328
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
.db-drawer .db-drawer-container .db-drawer-header .db-drawer-header-text {
|
|
@@ -340,6 +340,7 @@ dialog:not([data-backdrop=none])[data-backdrop=weak]::backdrop, dialog:not([data
|
|
|
340
340
|
}
|
|
341
341
|
.db-drawer .db-drawer-container .db-drawer-header:has(.button-close-drawer), .db-drawer .db-drawer-container .db-drawer-header:has(:not(.db-drawer-header-text:empty)) {
|
|
342
342
|
display: flex;
|
|
343
|
+
gap: var(--db-spacing-fixed-md);
|
|
343
344
|
}
|
|
344
345
|
.db-drawer[data-position=absolute] {
|
|
345
346
|
position: absolute;
|
|
@@ -26,10 +26,6 @@
|
|
|
26
26
|
|
|
27
27
|
%full-horizontal {
|
|
28
28
|
&:not([data-width="full"]) {
|
|
29
|
-
/// Sets the maximum height of the drawer
|
|
30
|
-
/// @propertyname max-block-size
|
|
31
|
-
/// @cssprop --db-drawer-max-height
|
|
32
|
-
/// @default calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
33
29
|
max-block-size: var(
|
|
34
30
|
--db-drawer-max-height,
|
|
35
31
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
@@ -91,10 +87,6 @@ $spacings: (
|
|
|
91
87
|
|
|
92
88
|
.db-drawer-header {
|
|
93
89
|
// We need this variable to overwrite it inside the header
|
|
94
|
-
/// Controls the bottom padding inside the drawer header
|
|
95
|
-
/// @propertyname padding-block-end
|
|
96
|
-
/// @cssprop --db-drawer-header-padding-block-end
|
|
97
|
-
/// @default #{map.get($spacing, "block")}
|
|
98
90
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
99
91
|
padding-block-end: var(
|
|
100
92
|
--db-drawer-header-padding-block-end,
|
|
@@ -105,10 +97,6 @@ $spacings: (
|
|
|
105
97
|
|
|
106
98
|
.db-drawer-content {
|
|
107
99
|
// We need this variable to overwrite it inside the header
|
|
108
|
-
/// Controls left/right padding inside the drawer content area
|
|
109
|
-
/// @propertyname padding-inline
|
|
110
|
-
/// @cssprop --db-drawer-content-padding-inline
|
|
111
|
-
/// @default #{map.get($spacing, "inline")}
|
|
112
100
|
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
113
101
|
padding-inline: var(
|
|
114
102
|
--db-drawer-content-padding-inline,
|
|
@@ -134,7 +122,6 @@ $spacings: (
|
|
|
134
122
|
|
|
135
123
|
.db-drawer {
|
|
136
124
|
.db-drawer-container {
|
|
137
|
-
@extend %direction-right;
|
|
138
125
|
@extend %spacing-drawer;
|
|
139
126
|
|
|
140
127
|
display: flex;
|
|
@@ -146,19 +133,6 @@ $spacings: (
|
|
|
146
133
|
box-shadow: variables.$db-elevation-md;
|
|
147
134
|
|
|
148
135
|
&:not([data-width="full"]) {
|
|
149
|
-
/// Sets the maximum width of the drawer
|
|
150
|
-
/// and some default values for the drawer
|
|
151
|
-
/// @propertyname max-inline-size
|
|
152
|
-
/// @cssprop --db-drawer-max-width
|
|
153
|
-
/// @default calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
154
|
-
///
|
|
155
|
-
/// @example css - Wide drawer
|
|
156
|
-
/// .db-drawer-wide {
|
|
157
|
-
/// --db-drawer-max-width: 800px;
|
|
158
|
-
/// }
|
|
159
|
-
/// <div class="db-drawer db-drawer-wide">
|
|
160
|
-
/// <!-- wide drawer -->
|
|
161
|
-
/// </div>
|
|
162
136
|
max-inline-size: var(
|
|
163
137
|
--db-drawer-max-width,
|
|
164
138
|
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
@@ -190,6 +164,11 @@ $spacings: (
|
|
|
190
164
|
box-shadow: variables.$db-elevation-md;
|
|
191
165
|
}
|
|
192
166
|
|
|
167
|
+
&:not([data-direction]),
|
|
168
|
+
&[data-direction="right"] {
|
|
169
|
+
@extend %direction-right;
|
|
170
|
+
}
|
|
171
|
+
|
|
193
172
|
&[data-direction="left"] {
|
|
194
173
|
@extend %direction-left;
|
|
195
174
|
}
|
|
@@ -224,6 +203,7 @@ $spacings: (
|
|
|
224
203
|
&:has(.button-close-drawer),
|
|
225
204
|
&:has(:not(.db-drawer-header-text:empty)) {
|
|
226
205
|
display: flex;
|
|
206
|
+
gap: variables.$db-spacing-fixed-md;
|
|
227
207
|
}
|
|
228
208
|
}
|
|
229
209
|
}
|