@db-ux/core-components 4.13.1-angular-signal-forms12-ac097f6 → 4.14.0-shell-52d18db
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/agent/Best-Practise_Common-AI-Mistakes.md +3 -3
- package/build/components/accordion/accordion.css +33 -6
- package/build/components/accordion/accordion.scss +25 -0
- package/build/components/accordion-item/accordion-item.css +9 -14
- package/build/components/accordion-item/accordion-item.scss +5 -3
- package/build/components/badge/badge.css +1 -1
- package/build/components/badge/badge.scss +1 -1
- package/build/components/button/button.css +0 -8
- package/build/components/button/button.scss +0 -11
- package/build/components/checkbox/checkbox.css +6 -11
- package/build/components/control-panel-brand/control-panel-brand.css +53 -0
- package/build/components/control-panel-brand/control-panel-brand.scss +48 -0
- package/build/components/control-panel-desktop/control-panel-desktop.css +579 -0
- package/build/components/control-panel-desktop/control-panel-desktop.scss +30 -0
- package/build/components/control-panel-flat-icon/control-panel-flat-icon.css +258 -0
- package/build/components/control-panel-flat-icon/control-panel-flat-icon.scss +239 -0
- package/build/components/control-panel-meta/control-panel-meta.css +14 -0
- package/build/components/control-panel-meta/control-panel-meta.scss +15 -0
- package/build/components/control-panel-mobile/control-panel-mobile.css +442 -0
- package/build/components/control-panel-mobile/control-panel-mobile.scss +119 -0
- package/build/components/control-panel-navigation/control-panel-navigation.css +402 -0
- package/build/components/control-panel-navigation/control-panel-navigation.scss +186 -0
- package/build/components/control-panel-navigation-item/control-panel-navigation-item.css +87 -0
- package/build/components/control-panel-navigation-item/control-panel-navigation-item.scss +39 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.css +21 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-popover.scss +129 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.css +35 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group-menu-tree.scss +36 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.css +158 -0
- package/build/components/control-panel-navigation-item-group/control-panel-navigation-item-group.scss +80 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.css +12 -0
- package/build/components/control-panel-primary-actions/control-panel-primary-actions.scss +7 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.css +12 -0
- package/build/components/control-panel-secondary-actions/control-panel-secondary-actions.scss +7 -0
- package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.css +23 -0
- package/build/components/control-panel-skip-navigation/control-panel-skip-navigation.scss +25 -0
- package/build/components/custom-button/custom-button.css +15 -20
- package/build/components/custom-button/custom-button.scss +1 -1
- package/build/components/custom-select/custom-select.css +17 -16
- package/build/components/custom-select/custom-select.scss +1 -1
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +39 -26
- package/build/components/custom-select-form-field/custom-select-form-field.css +6 -11
- package/build/components/custom-select-list/custom-select-list.css +6 -11
- package/build/components/custom-select-list-item/custom-select-list-item.css +24 -19
- package/build/components/divider/divider.css +18 -8
- package/build/components/drawer/drawer.css +79 -157
- package/build/components/drawer/drawer.scss +130 -170
- package/build/components/drawer-footer/drawer-footer.css +34 -0
- package/build/components/drawer-footer/drawer-footer.scss +11 -0
- package/build/components/drawer-header/drawer-header.css +38 -0
- package/build/components/drawer-header/drawer-header.scss +17 -0
- package/build/components/header/header.css +81 -46
- package/build/components/header/header.scss +34 -21
- package/build/components/input/input.css +6 -11
- package/build/components/link/link.css +12 -2
- package/build/components/navigation/navigation.css +6 -11
- package/build/components/navigation-item/navigation-item.css +45 -30
- package/build/components/navigation-item/navigation-item.scss +28 -13
- package/build/components/notification/notification.css +12 -2
- package/build/components/page/page.css +8 -0
- package/build/components/page/page.scss +8 -0
- package/build/components/radio/radio.css +6 -11
- package/build/components/select/select.css +6 -11
- package/build/components/shell/shell-desktop.css +475 -0
- package/build/components/shell/shell-desktop.scss +105 -0
- package/build/components/shell/shell-mobile.css +441 -0
- package/build/components/shell/shell-mobile.scss +148 -0
- package/build/components/shell/shell.css +1670 -0
- package/build/components/shell/shell.scss +70 -0
- package/build/components/shell-content/shell-content.css +34 -0
- package/build/components/shell-content/shell-content.scss +53 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.css +51 -0
- package/build/components/shell-sub-navigation/shell-sub-navigation.scss +184 -0
- package/build/components/stack/stack-web-component.css +1 -0
- package/build/components/stack/stack.css +1 -0
- package/build/components/switch/switch.css +6 -11
- package/build/components/tab-item/tab-item.css +6 -11
- package/build/components/tab-list/tab-list.css +6 -11
- package/build/components/table/table.css +6 -11
- package/build/components/tabs/tabs.css +50 -33
- package/build/components/tabs/tabs.scss +10 -55
- package/build/components/tag/tag.css +7 -10
- package/build/components/tag/tag.scss +1 -5
- package/build/components/textarea/textarea.css +6 -11
- package/build/styles/absolute.css +7 -7
- package/build/styles/bundle.css +7 -7
- package/build/styles/index.css +6 -6
- package/build/styles/index.scss +18 -2
- package/build/styles/internal/_component.scss +4 -0
- package/build/styles/internal/_control-panel-actions.scss +11 -0
- package/build/styles/internal/_control-panel-desktop.scss +412 -0
- package/build/styles/internal/_control-panel-mobile.scss +107 -0
- package/build/styles/internal/_custom-elements.scss +32 -7
- package/build/styles/internal/_icon-passing.scss +20 -10
- package/build/styles/internal/_link-components.scss +11 -2
- package/build/styles/internal/_navigation-item.scss +122 -0
- package/build/styles/internal/_scrollbar.scss +71 -0
- package/build/styles/relative.css +7 -7
- package/build/styles/rollup.css +7 -7
- package/build/styles/visually-hidden.css +1 -1
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +11 -0
- package/build/styles/webpack.css +7 -7
- package/package.json +3 -3
|
@@ -6,18 +6,59 @@
|
|
|
6
6
|
@use "../../styles/internal/component";
|
|
7
7
|
@use "../../styles/dialog-init";
|
|
8
8
|
|
|
9
|
-
%
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
%container-size-horizontal {
|
|
10
|
+
inline-size: calc(
|
|
11
|
+
100lvw - var(--db-drawer-container-backdrop-spacing, 0px)
|
|
12
|
+
);
|
|
13
|
+
min-inline-size: var(--db-drawer-min-width, auto);
|
|
14
|
+
max-inline-size: var(
|
|
15
|
+
--db-drawer-max-width,
|
|
16
|
+
var(--db-drawer-max-width-horizontal)
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
&:not([data-container-size]),
|
|
20
|
+
&[data-container-size="small"] {
|
|
21
|
+
--db-drawer-max-width-horizontal: #{variables.$db-container-xs};
|
|
22
|
+
}
|
|
12
23
|
|
|
13
|
-
&[data-
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
&[data-container-size="medium"] {
|
|
25
|
+
--db-drawer-max-width-horizontal: #{variables.$db-container-lg};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-container-size="large"] {
|
|
29
|
+
--db-drawer-max-width-horizontal: #{variables.$db-container-3xl};
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
|
|
19
|
-
%
|
|
20
|
-
|
|
33
|
+
%container-size-vertical {
|
|
34
|
+
block-size: calc(100lvh - var(--db-drawer-container-backdrop-spacing, 0px));
|
|
35
|
+
min-block-size: var(--db-drawer-min-height, auto);
|
|
36
|
+
max-block-size: var(
|
|
37
|
+
--db-drawer-max-height,
|
|
38
|
+
var(--db-drawer-max-height-vertical)
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
&[data-container-size="small"] {
|
|
42
|
+
--db-drawer-max-height-vertical: 33lvh;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-container-size="medium"] {
|
|
46
|
+
--db-drawer-max-height-vertical: 50lvh;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:not([data-container-size]),
|
|
50
|
+
&[data-container-size="large"] {
|
|
51
|
+
--db-drawer-max-height-vertical: 67lvh;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
%direction-from-left-to-right {
|
|
56
|
+
@extend %container-size-horizontal;
|
|
57
|
+
|
|
58
|
+
&:not([data-transition="open"]) {
|
|
59
|
+
transform: translateX(-110%);
|
|
60
|
+
}
|
|
61
|
+
|
|
21
62
|
inset-inline: 0 auto;
|
|
22
63
|
|
|
23
64
|
&[data-rounded="true"] {
|
|
@@ -26,27 +67,28 @@
|
|
|
26
67
|
}
|
|
27
68
|
}
|
|
28
69
|
|
|
29
|
-
%
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
min-block-size: var(--db-drawer-min-height, auto);
|
|
42
|
-
max-inline-size: none;
|
|
70
|
+
%direction-from-right-to-left {
|
|
71
|
+
@extend %container-size-horizontal;
|
|
72
|
+
|
|
73
|
+
&:not([data-transition="open"]) {
|
|
74
|
+
transform: translateX(110%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
inset-inline: auto 0;
|
|
78
|
+
|
|
79
|
+
&[data-rounded="true"] {
|
|
80
|
+
border-start-start-radius: variables.$db-border-radius-sm;
|
|
81
|
+
border-end-start-radius: variables.$db-border-radius-sm;
|
|
43
82
|
}
|
|
44
83
|
}
|
|
45
84
|
|
|
46
|
-
%direction-
|
|
47
|
-
@extend %
|
|
85
|
+
%direction-from-bottom-to-top {
|
|
86
|
+
@extend %container-size-vertical;
|
|
87
|
+
|
|
88
|
+
&:not([data-transition="open"]) {
|
|
89
|
+
transform: translateY(110%);
|
|
90
|
+
}
|
|
48
91
|
|
|
49
|
-
transform: translateY(110%);
|
|
50
92
|
inset: auto 0 0;
|
|
51
93
|
|
|
52
94
|
&[data-rounded="true"] {
|
|
@@ -55,10 +97,13 @@
|
|
|
55
97
|
}
|
|
56
98
|
}
|
|
57
99
|
|
|
58
|
-
%direction-
|
|
59
|
-
@extend %
|
|
100
|
+
%direction-from-top-to-bottom {
|
|
101
|
+
@extend %container-size-vertical;
|
|
102
|
+
|
|
103
|
+
&:not([data-transition="open"]) {
|
|
104
|
+
transform: translateY(-110%);
|
|
105
|
+
}
|
|
60
106
|
|
|
61
|
-
transform: translateY(-110%);
|
|
62
107
|
inset: 0 0 auto;
|
|
63
108
|
|
|
64
109
|
&[data-rounded="true"] {
|
|
@@ -67,116 +112,66 @@
|
|
|
67
112
|
}
|
|
68
113
|
}
|
|
69
114
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
),
|
|
75
|
-
"medium": (
|
|
76
|
-
"block": variables.$db-spacing-fixed-sm,
|
|
77
|
-
"inline": variables.$db-spacing-fixed-lg
|
|
78
|
-
),
|
|
79
|
-
"large": (
|
|
80
|
-
"block": variables.$db-spacing-fixed-md,
|
|
81
|
-
"inline": variables.$db-spacing-fixed-xl
|
|
82
|
-
),
|
|
83
|
-
"none": (
|
|
84
|
-
"block": 0,
|
|
85
|
-
"inline": 0
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
@mixin get-spacing($spacing) {
|
|
90
|
-
/* stylelint-disable-next-line block-no-redundant-nested-style-rules */
|
|
91
|
-
& {
|
|
92
|
-
padding-block: map.get($spacing, "block");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.db-drawer-header {
|
|
96
|
-
// We need this variable to overwrite it inside the header
|
|
97
|
-
/// Controls the bottom padding inside the drawer header
|
|
98
|
-
/// @propertyname padding-block-end
|
|
99
|
-
/// @cssprop --db-drawer-header-padding-block-end
|
|
100
|
-
/// @default #{map.get($spacing, "block")}
|
|
101
|
-
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
102
|
-
padding-block-end: var(
|
|
103
|
-
--db-drawer-header-padding-block-end,
|
|
104
|
-
#{map.get($spacing, "block")}
|
|
105
|
-
);
|
|
106
|
-
padding-inline: map.get($spacing, "inline");
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.db-drawer-content {
|
|
110
|
-
// We need this variable to overwrite it inside the header
|
|
111
|
-
/// Controls left/right padding inside the drawer content area
|
|
112
|
-
/// @propertyname padding-inline
|
|
113
|
-
/// @cssprop --db-drawer-content-padding-inline
|
|
114
|
-
/// @default #{map.get($spacing, "inline")}
|
|
115
|
-
/* stylelint-disable-next-line db-ux/use-spacings */
|
|
116
|
-
padding-inline: var(
|
|
117
|
-
--db-drawer-content-padding-inline,
|
|
118
|
-
#{map.get($spacing, "inline")}
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
// TODO: Evaluate whether we need overflow: hidden and that for only specifically set y here.
|
|
122
|
-
overflow-y: auto;
|
|
123
|
-
overflow-block: auto;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
%spacing-drawer {
|
|
128
|
-
@each $name, $spacing in $spacings {
|
|
129
|
-
@if $name == "medium" {
|
|
130
|
-
@include get-spacing($spacing);
|
|
115
|
+
%drawer-safe-area {
|
|
116
|
+
&:not(:has(.db-drawer-footer)) {
|
|
117
|
+
> .db-drawer-content {
|
|
118
|
+
margin-block-end: env(safe-area-inset-bottom);
|
|
131
119
|
}
|
|
120
|
+
}
|
|
132
121
|
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
&:has(.db-drawer-footer) {
|
|
123
|
+
.db-drawer-footer {
|
|
124
|
+
padding-block-end: calc(
|
|
125
|
+
#{variables.$db-spacing-fixed-xs} + env(safe-area-inset-bottom)
|
|
126
|
+
);
|
|
135
127
|
}
|
|
136
128
|
}
|
|
137
129
|
}
|
|
138
130
|
|
|
139
131
|
.db-drawer {
|
|
140
132
|
.db-drawer-container {
|
|
141
|
-
@extend %
|
|
133
|
+
@extend %drawer-safe-area;
|
|
134
|
+
|
|
135
|
+
// Close delay: 0s by default (reduced motion), set to transition duration
|
|
136
|
+
// when motion is allowed. Read by JS to schedule dialog.close().
|
|
137
|
+
--db-drawer-close-delay: 0;
|
|
138
|
+
|
|
139
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
140
|
+
--db-drawer-close-delay: #{variables.$db-transition-duration-slow};
|
|
141
|
+
}
|
|
142
142
|
|
|
143
|
-
display:
|
|
144
|
-
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-rows:
|
|
145
|
+
[header] auto
|
|
146
|
+
[main] 1fr
|
|
147
|
+
[footer] auto;
|
|
145
148
|
background-color: colors.$db-adaptive-bg-basic-level-1-default;
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
inline-size: 100lvw;
|
|
150
|
+
block-size: 100lvh;
|
|
148
151
|
position: fixed;
|
|
149
152
|
box-shadow: variables.$db-elevation-md;
|
|
150
153
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
/// @example css - Wide drawer
|
|
159
|
-
/// .db-drawer-wide {
|
|
160
|
-
/// --db-drawer-max-width: 800px;
|
|
161
|
-
/// }
|
|
162
|
-
/// <div class="db-drawer db-drawer-wide">
|
|
163
|
-
/// <!-- wide drawer -->
|
|
164
|
-
/// </div>
|
|
165
|
-
/* stylelint-disable-next-line db-ux/use-sizing */
|
|
166
|
-
max-inline-size: var(
|
|
167
|
-
--db-drawer-max-width,
|
|
168
|
-
calc(100% - #{variables.$db-spacing-fixed-xl})
|
|
154
|
+
> .db-drawer-content {
|
|
155
|
+
overflow-y: auto;
|
|
156
|
+
overscroll-behavior: contain;
|
|
157
|
+
padding: var(
|
|
158
|
+
--db-drawer-content-padding,
|
|
159
|
+
variables.$db-spacing-fixed-xs
|
|
160
|
+
component.$drawer-content-padding-inline
|
|
169
161
|
);
|
|
170
|
-
|
|
171
|
-
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&[data-show-spacing="true"] {
|
|
165
|
+
// We use the size of a button for this spacing to make sure backdrop is clickable
|
|
166
|
+
--db-drawer-container-backdrop-spacing: #{variables.$db-sizing-md};
|
|
172
167
|
|
|
173
168
|
&:not([data-direction]),
|
|
174
|
-
&[data-direction="
|
|
175
|
-
border-inline-
|
|
169
|
+
&[data-direction="to-left"] {
|
|
170
|
+
border-inline-end: component.$component-border;
|
|
176
171
|
}
|
|
177
172
|
|
|
178
|
-
&[data-direction="
|
|
179
|
-
border-inline-
|
|
173
|
+
&[data-direction="to-right"] {
|
|
174
|
+
border-inline-start: component.$component-border;
|
|
180
175
|
}
|
|
181
176
|
|
|
182
177
|
&[data-direction="up"] {
|
|
@@ -198,46 +193,21 @@ $spacings: (
|
|
|
198
193
|
#{variables.$db-transition-timing-emotional};
|
|
199
194
|
}
|
|
200
195
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
@extend %direction-right;
|
|
196
|
+
&[data-direction="to-right"] {
|
|
197
|
+
@extend %direction-from-left-to-right;
|
|
204
198
|
}
|
|
205
199
|
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
&:not([data-direction]),
|
|
201
|
+
&[data-direction="to-left"] {
|
|
202
|
+
@extend %direction-from-right-to-left;
|
|
208
203
|
}
|
|
209
204
|
|
|
210
205
|
&[data-direction="up"] {
|
|
211
|
-
@extend %direction-
|
|
206
|
+
@extend %direction-from-bottom-to-top;
|
|
212
207
|
}
|
|
213
208
|
|
|
214
209
|
&[data-direction="down"] {
|
|
215
|
-
@extend %direction-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.db-drawer-header {
|
|
219
|
-
display: none;
|
|
220
|
-
|
|
221
|
-
@include helpers.divider("bottom");
|
|
222
|
-
|
|
223
|
-
.db-drawer-header-text {
|
|
224
|
-
margin-block: auto;
|
|
225
|
-
font-weight: 700;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.button-close-drawer {
|
|
229
|
-
margin-inline-start: auto;
|
|
230
|
-
|
|
231
|
-
// angular-workaround
|
|
232
|
-
button {
|
|
233
|
-
margin-inline-start: auto;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&:has(.button-close-drawer),
|
|
238
|
-
&:has(:not(.db-drawer-header-text:empty)) {
|
|
239
|
-
display: flex;
|
|
240
|
-
}
|
|
210
|
+
@extend %direction-from-top-to-bottom;
|
|
241
211
|
}
|
|
242
212
|
}
|
|
243
213
|
|
|
@@ -254,20 +224,20 @@ $spacings: (
|
|
|
254
224
|
}
|
|
255
225
|
|
|
256
226
|
&:not([data-direction]),
|
|
257
|
-
&[data-direction="right"],
|
|
258
|
-
&[data-direction="left"] {
|
|
227
|
+
&[data-direction="to-right"],
|
|
228
|
+
&[data-direction="to-left"] {
|
|
259
229
|
flex-direction: column;
|
|
260
230
|
}
|
|
261
231
|
|
|
262
|
-
&[data-direction="
|
|
232
|
+
&[data-direction="to-right"],
|
|
263
233
|
&[data-direction="down"] {
|
|
264
|
-
align-items: start;
|
|
234
|
+
align-items: flex-start;
|
|
265
235
|
}
|
|
266
236
|
|
|
267
237
|
&:not([data-direction]),
|
|
268
|
-
&[data-direction="
|
|
238
|
+
&[data-direction="to-left"],
|
|
269
239
|
&[data-direction="up"] {
|
|
270
|
-
align-items: end;
|
|
240
|
+
align-items: flex-end;
|
|
271
241
|
}
|
|
272
242
|
|
|
273
243
|
.db-drawer-container {
|
|
@@ -278,22 +248,12 @@ $spacings: (
|
|
|
278
248
|
&[open] {
|
|
279
249
|
.db-drawer-container {
|
|
280
250
|
&[data-transition="open"] {
|
|
281
|
-
|
|
282
|
-
&[data-direction="right"],
|
|
283
|
-
&[data-direction="left"] {
|
|
284
|
-
transform: none;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
&[data-direction="up"],
|
|
288
|
-
&[data-direction="down"] {
|
|
289
|
-
transform: none;
|
|
290
|
-
}
|
|
251
|
+
transform: none;
|
|
291
252
|
}
|
|
292
253
|
|
|
293
254
|
&[data-transition="close"] {
|
|
294
255
|
@media (prefers-reduced-motion: no-preference) {
|
|
295
|
-
transition: transform
|
|
296
|
-
#{variables.$db-transition-duration-slow}
|
|
256
|
+
transition: transform var(--db-drawer-close-delay)
|
|
297
257
|
#{variables.$db-transition-timing-emotional};
|
|
298
258
|
}
|
|
299
259
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
2
|
+
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
3
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
4
|
+
.db-drawer-footer {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--db-spacing-fixed-sm);
|
|
8
|
+
padding: var(--db-spacing-fixed-xs) var(--db-spacing-fixed-sm);
|
|
9
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
10
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
11
|
+
}
|
|
12
|
+
.db-drawer-footer[data-emphasis=strong] {
|
|
13
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
14
|
+
}
|
|
15
|
+
.db-drawer-footer::before {
|
|
16
|
+
content: "";
|
|
17
|
+
background-color: var(--db-divider-bg-color);
|
|
18
|
+
position: absolute;
|
|
19
|
+
/* jscpd:ignore-start */
|
|
20
|
+
block-size: var(--db-border-width-3xs);
|
|
21
|
+
inset-block-start: 0;
|
|
22
|
+
inset-inline: 0;
|
|
23
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
24
|
+
}
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
.db-drawer-footer::before {
|
|
27
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
28
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.db-drawer-footer::before {
|
|
32
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
33
|
+
/* jscpd:ignore-end */
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
3
|
+
|
|
4
|
+
.db-drawer-footer {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
8
|
+
padding: variables.$db-spacing-fixed-xs variables.$db-spacing-fixed-sm;
|
|
9
|
+
|
|
10
|
+
@include helpers.divider("top");
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
2
|
+
/* stylelint-disable-next-line scss/dollar-variable-colon-space-after */
|
|
3
|
+
/* Variants for adaptive components like input, select, notification, ... */
|
|
4
|
+
.db-drawer-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: var(--db-spacing-fixed-sm);
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: calc(var(--db-spacing-fixed-xs) + env(safe-area-inset-top)) var(--db-spacing-fixed-sm) var(--db-spacing-fixed-xs);
|
|
9
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-60-default);
|
|
10
|
+
position: var(--db-tooltip-parent-position, relative);
|
|
11
|
+
}
|
|
12
|
+
.db-drawer-header[data-emphasis=strong] {
|
|
13
|
+
--db-divider-bg-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
|
|
14
|
+
}
|
|
15
|
+
.db-drawer-header::before {
|
|
16
|
+
content: "";
|
|
17
|
+
background-color: var(--db-divider-bg-color);
|
|
18
|
+
position: absolute;
|
|
19
|
+
/* jscpd:ignore-start */
|
|
20
|
+
block-size: var(--db-border-width-3xs);
|
|
21
|
+
inset-block-end: 0;
|
|
22
|
+
inset-inline: 0;
|
|
23
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
24
|
+
}
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
.db-drawer-header::before {
|
|
27
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
28
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.db-drawer-header::before {
|
|
32
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
33
|
+
/* jscpd:ignore-end */
|
|
34
|
+
}
|
|
35
|
+
.db-drawer-header .db-drawer-header-container {
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
margin-inline-end: auto;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "@db-ux/core-foundations/build/styles/variables";
|
|
2
|
+
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
3
|
+
|
|
4
|
+
.db-drawer-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
gap: variables.$db-spacing-fixed-sm;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: calc(#{variables.$db-spacing-fixed-xs} + env(safe-area-inset-top))
|
|
9
|
+
variables.$db-spacing-fixed-sm variables.$db-spacing-fixed-xs;
|
|
10
|
+
|
|
11
|
+
@include helpers.divider("bottom");
|
|
12
|
+
|
|
13
|
+
.db-drawer-header-container {
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
margin-inline-end: auto;
|
|
16
|
+
}
|
|
17
|
+
}
|