@db-ux/core-foundations 4.12.0 → 4.13.0-shell-f221975
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 +10 -0
- package/assets/icons/LICENCES.json +18 -0
- package/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/assets/images/chevron_down.svg +7 -0
- package/assets/images/chevron_up.svg +7 -0
- package/assets/images/logo.svg +7 -0
- package/assets/images/resize_handle_corner.svg +7 -0
- package/build/styles/_screen-sizes.scss +6 -0
- package/build/styles/bundle.css +18 -36
- package/build/styles/defaults/default-required.css +1 -1
- package/build/styles/defaults/default-required.scss +13 -24
- package/build/styles/helpers/_a11y.scss +18 -11
- package/build/styles/helpers/_divider.scss +35 -6
- package/build/styles/helpers/_interactive.scss +17 -0
- package/build/styles/helpers/classes/all.css +86 -38
- package/build/styles/helpers/classes/divider.css +86 -38
- package/build/styles/icons/_icon-helpers.scss +1 -1
- package/build/styles/theme/_absolute.assets-paths.scss +2 -1
- package/build/styles/theme/_default-images.scss +14 -0
- package/build/styles/theme/_default.assets-paths.scss +1 -0
- package/build/styles/theme/_rollup.assets-paths.scss +2 -1
- package/build/styles/theme/_webpack.assets-paths.scss +2 -1
- package/build/styles/theme/absolute.css +1 -1
- package/build/styles/theme/relative.css +1 -1
- package/build/styles/theme/relative.scss +5 -0
- package/build/styles/theme/rollup.css +1 -1
- package/build/styles/theme/webpack.css +1 -1
- package/build/tailwind/theme/breakpoints.css +10 -0
- package/build/tailwind/theme/breakpoints.scss +10 -0
- package/build/tailwind/theme/index.css +1 -0
- package/build/tailwind/theme/revert-theme.css +0 -5
- package/package.json +6 -5
- package/build/styles/colors/_default-color-icons.scss +0 -11
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
@use "../colors";
|
|
2
2
|
@use "../variables";
|
|
3
3
|
|
|
4
|
+
@mixin forced-color {
|
|
5
|
+
// border is the better implementation, but border height changes in windows based on pixel density
|
|
6
|
+
// we use it as a fallback for color contrast
|
|
7
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
8
|
+
@media (forced-colors: active) {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
// Workaround until we get Relative Color Syntax
|
|
5
14
|
// https://codepen.io/bramus/pen/VwMZOQK
|
|
6
15
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1274133
|
|
@@ -19,32 +28,52 @@
|
|
|
19
28
|
background-color: var(--db-divider-bg-color);
|
|
20
29
|
position: absolute;
|
|
21
30
|
|
|
31
|
+
/* jscpd:ignore-start */
|
|
22
32
|
@if $position == "top" {
|
|
23
33
|
block-size: variables.$db-border-width-3xs;
|
|
24
34
|
inset-block-start: 0;
|
|
25
35
|
inset-inline: 0;
|
|
36
|
+
|
|
37
|
+
@include forced-color {
|
|
38
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
39
|
+
border-block-start: variables.$db-border-width-3xs solid
|
|
40
|
+
var(--db-divider-bg-color);
|
|
41
|
+
}
|
|
26
42
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
27
43
|
} @else if $position == "bottom" {
|
|
28
44
|
block-size: variables.$db-border-width-3xs;
|
|
29
45
|
inset-block-end: 0;
|
|
30
46
|
inset-inline: 0;
|
|
47
|
+
|
|
48
|
+
@include forced-color {
|
|
49
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
50
|
+
border-block-end: variables.$db-border-width-3xs solid
|
|
51
|
+
var(--db-divider-bg-color);
|
|
52
|
+
}
|
|
31
53
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
32
54
|
} @else if $position == "left" {
|
|
33
55
|
inline-size: variables.$db-border-width-3xs;
|
|
34
56
|
inset-inline-start: 0;
|
|
35
57
|
inset-block: 0;
|
|
58
|
+
|
|
59
|
+
@include forced-color {
|
|
60
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
61
|
+
border-inline-start: variables.$db-border-width-3xs solid
|
|
62
|
+
var(--db-divider-bg-color);
|
|
63
|
+
}
|
|
36
64
|
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
37
65
|
} @else if $position == "right" {
|
|
38
66
|
inline-size: variables.$db-border-width-3xs;
|
|
39
67
|
inset-inline-end: 0;
|
|
40
68
|
inset-block: 0;
|
|
69
|
+
|
|
70
|
+
@include forced-color {
|
|
71
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
72
|
+
border-inline-end: variables.$db-border-width-3xs solid
|
|
73
|
+
var(--db-divider-bg-color);
|
|
74
|
+
}
|
|
41
75
|
}
|
|
42
|
-
}
|
|
43
76
|
|
|
44
|
-
|
|
45
|
-
// border is the better implementation, but border height changes in windows based on pixel density
|
|
46
|
-
// we use it as a fallback for color contrast
|
|
47
|
-
/* stylelint-disable-next-line no-invalid-position-declaration, db-ux/use-border-color */
|
|
48
|
-
border: variables.$db-border-width-3xs solid var(--db-divider-bg-color);
|
|
77
|
+
/* jscpd:ignore-end */
|
|
49
78
|
}
|
|
50
79
|
}
|
|
@@ -1 +1,18 @@
|
|
|
1
|
+
@use "functions";
|
|
2
|
+
|
|
1
3
|
$interactive-elements: 'button,input,textarea,summary,select,a[href],[tabindex]:not([tabindex="-1"])';
|
|
4
|
+
|
|
5
|
+
/// Generates not-disabled > hover/active background-color states.
|
|
6
|
+
/// @param {Color} $bg-hovered - The hovered background color token.
|
|
7
|
+
/// @param {Color} $bg-pressed - The pressed background color token.
|
|
8
|
+
@mixin interactive-bg($bg-hovered, $bg-pressed) {
|
|
9
|
+
@include functions.not-disabled {
|
|
10
|
+
@include functions.hover {
|
|
11
|
+
background-color: $bg-hovered;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include functions.active {
|
|
15
|
+
background-color: $bg-pressed;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -26,18 +26,24 @@
|
|
|
26
26
|
content: "";
|
|
27
27
|
background-color: var(--db-divider-bg-color);
|
|
28
28
|
position: absolute;
|
|
29
|
+
/* jscpd:ignore-start */
|
|
29
30
|
block-size: var(--db-border-width-3xs);
|
|
30
31
|
inset-block-start: 0;
|
|
31
32
|
inset-inline: 0;
|
|
32
|
-
/* stylelint-disable-next-line
|
|
33
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
33
34
|
}
|
|
34
35
|
@media (forced-colors: active) {
|
|
35
|
-
.db-divider-top-before,
|
|
36
|
-
[data-divider=top-before] {
|
|
37
|
-
/* stylelint-disable-next-line
|
|
38
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
36
|
+
.db-divider-top-before::before,
|
|
37
|
+
[data-divider=top-before]::before {
|
|
38
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
39
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
42
|
+
.db-divider-top-before::before,
|
|
43
|
+
[data-divider=top-before]::before {
|
|
44
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
45
|
+
/* jscpd:ignore-end */
|
|
46
|
+
}
|
|
41
47
|
|
|
42
48
|
.db-divider-top-after,
|
|
43
49
|
[data-divider=top-after] {
|
|
@@ -53,18 +59,24 @@
|
|
|
53
59
|
content: "";
|
|
54
60
|
background-color: var(--db-divider-bg-color);
|
|
55
61
|
position: absolute;
|
|
62
|
+
/* jscpd:ignore-start */
|
|
56
63
|
block-size: var(--db-border-width-3xs);
|
|
57
64
|
inset-block-start: 0;
|
|
58
65
|
inset-inline: 0;
|
|
59
|
-
/* stylelint-disable-next-line
|
|
66
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
60
67
|
}
|
|
61
68
|
@media (forced-colors: active) {
|
|
62
|
-
.db-divider-top-after,
|
|
63
|
-
[data-divider=top-after] {
|
|
64
|
-
/* stylelint-disable-next-line
|
|
65
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
69
|
+
.db-divider-top-after::after,
|
|
70
|
+
[data-divider=top-after]::after {
|
|
71
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
72
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
66
73
|
}
|
|
67
74
|
}
|
|
75
|
+
.db-divider-top-after::after,
|
|
76
|
+
[data-divider=top-after]::after {
|
|
77
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
78
|
+
/* jscpd:ignore-end */
|
|
79
|
+
}
|
|
68
80
|
|
|
69
81
|
.db-divider-bottom-before,
|
|
70
82
|
[data-divider=bottom-before] {
|
|
@@ -80,18 +92,24 @@
|
|
|
80
92
|
content: "";
|
|
81
93
|
background-color: var(--db-divider-bg-color);
|
|
82
94
|
position: absolute;
|
|
95
|
+
/* jscpd:ignore-start */
|
|
83
96
|
block-size: var(--db-border-width-3xs);
|
|
84
97
|
inset-block-end: 0;
|
|
85
98
|
inset-inline: 0;
|
|
86
|
-
/* stylelint-disable-next-line
|
|
99
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
87
100
|
}
|
|
88
101
|
@media (forced-colors: active) {
|
|
89
|
-
.db-divider-bottom-before,
|
|
90
|
-
[data-divider=bottom-before] {
|
|
91
|
-
/* stylelint-disable-next-line
|
|
92
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
102
|
+
.db-divider-bottom-before::before,
|
|
103
|
+
[data-divider=bottom-before]::before {
|
|
104
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
105
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
93
106
|
}
|
|
94
107
|
}
|
|
108
|
+
.db-divider-bottom-before::before,
|
|
109
|
+
[data-divider=bottom-before]::before {
|
|
110
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
111
|
+
/* jscpd:ignore-end */
|
|
112
|
+
}
|
|
95
113
|
|
|
96
114
|
.db-divider-bottom-after,
|
|
97
115
|
[data-divider=bottom-after] {
|
|
@@ -107,18 +125,24 @@
|
|
|
107
125
|
content: "";
|
|
108
126
|
background-color: var(--db-divider-bg-color);
|
|
109
127
|
position: absolute;
|
|
128
|
+
/* jscpd:ignore-start */
|
|
110
129
|
block-size: var(--db-border-width-3xs);
|
|
111
130
|
inset-block-end: 0;
|
|
112
131
|
inset-inline: 0;
|
|
113
|
-
/* stylelint-disable-next-line
|
|
132
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
114
133
|
}
|
|
115
134
|
@media (forced-colors: active) {
|
|
116
|
-
.db-divider-bottom-after,
|
|
117
|
-
[data-divider=bottom-after] {
|
|
118
|
-
/* stylelint-disable-next-line
|
|
119
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
135
|
+
.db-divider-bottom-after::after,
|
|
136
|
+
[data-divider=bottom-after]::after {
|
|
137
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
138
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
120
139
|
}
|
|
121
140
|
}
|
|
141
|
+
.db-divider-bottom-after::after,
|
|
142
|
+
[data-divider=bottom-after]::after {
|
|
143
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
144
|
+
/* jscpd:ignore-end */
|
|
145
|
+
}
|
|
122
146
|
|
|
123
147
|
.db-divider-left-before,
|
|
124
148
|
[data-divider=left-before] {
|
|
@@ -134,18 +158,24 @@
|
|
|
134
158
|
content: "";
|
|
135
159
|
background-color: var(--db-divider-bg-color);
|
|
136
160
|
position: absolute;
|
|
161
|
+
/* jscpd:ignore-start */
|
|
137
162
|
inline-size: var(--db-border-width-3xs);
|
|
138
163
|
inset-inline-start: 0;
|
|
139
164
|
inset-block: 0;
|
|
140
|
-
/* stylelint-disable-next-line
|
|
165
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
141
166
|
}
|
|
142
167
|
@media (forced-colors: active) {
|
|
143
|
-
.db-divider-left-before,
|
|
144
|
-
[data-divider=left-before] {
|
|
145
|
-
/* stylelint-disable-next-line
|
|
146
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
168
|
+
.db-divider-left-before::before,
|
|
169
|
+
[data-divider=left-before]::before {
|
|
170
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
171
|
+
border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
147
172
|
}
|
|
148
173
|
}
|
|
174
|
+
.db-divider-left-before::before,
|
|
175
|
+
[data-divider=left-before]::before {
|
|
176
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
177
|
+
/* jscpd:ignore-end */
|
|
178
|
+
}
|
|
149
179
|
|
|
150
180
|
.db-divider-left-after,
|
|
151
181
|
[data-divider=left-after] {
|
|
@@ -161,18 +191,24 @@
|
|
|
161
191
|
content: "";
|
|
162
192
|
background-color: var(--db-divider-bg-color);
|
|
163
193
|
position: absolute;
|
|
194
|
+
/* jscpd:ignore-start */
|
|
164
195
|
inline-size: var(--db-border-width-3xs);
|
|
165
196
|
inset-inline-start: 0;
|
|
166
197
|
inset-block: 0;
|
|
167
|
-
/* stylelint-disable-next-line
|
|
198
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
168
199
|
}
|
|
169
200
|
@media (forced-colors: active) {
|
|
170
|
-
.db-divider-left-after,
|
|
171
|
-
[data-divider=left-after] {
|
|
172
|
-
/* stylelint-disable-next-line
|
|
173
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
201
|
+
.db-divider-left-after::after,
|
|
202
|
+
[data-divider=left-after]::after {
|
|
203
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
204
|
+
border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
174
205
|
}
|
|
175
206
|
}
|
|
207
|
+
.db-divider-left-after::after,
|
|
208
|
+
[data-divider=left-after]::after {
|
|
209
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
210
|
+
/* jscpd:ignore-end */
|
|
211
|
+
}
|
|
176
212
|
|
|
177
213
|
.db-divider-right-before,
|
|
178
214
|
[data-divider=right-before] {
|
|
@@ -188,17 +224,23 @@
|
|
|
188
224
|
content: "";
|
|
189
225
|
background-color: var(--db-divider-bg-color);
|
|
190
226
|
position: absolute;
|
|
227
|
+
/* jscpd:ignore-start */
|
|
191
228
|
inline-size: var(--db-border-width-3xs);
|
|
192
229
|
inset-inline-end: 0;
|
|
193
230
|
inset-block: 0;
|
|
231
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
194
232
|
}
|
|
195
233
|
@media (forced-colors: active) {
|
|
196
|
-
.db-divider-right-before,
|
|
197
|
-
[data-divider=right-before] {
|
|
198
|
-
/* stylelint-disable-next-line
|
|
199
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
234
|
+
.db-divider-right-before::before,
|
|
235
|
+
[data-divider=right-before]::before {
|
|
236
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
237
|
+
border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
200
238
|
}
|
|
201
239
|
}
|
|
240
|
+
.db-divider-right-before::before,
|
|
241
|
+
[data-divider=right-before]::before {
|
|
242
|
+
/* jscpd:ignore-end */
|
|
243
|
+
}
|
|
202
244
|
|
|
203
245
|
.db-divider-right-after,
|
|
204
246
|
[data-divider=right-after] {
|
|
@@ -214,14 +256,20 @@
|
|
|
214
256
|
content: "";
|
|
215
257
|
background-color: var(--db-divider-bg-color);
|
|
216
258
|
position: absolute;
|
|
259
|
+
/* jscpd:ignore-start */
|
|
217
260
|
inline-size: var(--db-border-width-3xs);
|
|
218
261
|
inset-inline-end: 0;
|
|
219
262
|
inset-block: 0;
|
|
263
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
220
264
|
}
|
|
221
265
|
@media (forced-colors: active) {
|
|
222
|
-
.db-divider-right-after,
|
|
223
|
-
[data-divider=right-after] {
|
|
224
|
-
/* stylelint-disable-next-line
|
|
225
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
266
|
+
.db-divider-right-after::after,
|
|
267
|
+
[data-divider=right-after]::after {
|
|
268
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
269
|
+
border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
226
270
|
}
|
|
227
271
|
}
|
|
272
|
+
.db-divider-right-after::after,
|
|
273
|
+
[data-divider=right-after]::after {
|
|
274
|
+
/* jscpd:ignore-end */
|
|
275
|
+
}
|
|
@@ -15,18 +15,24 @@
|
|
|
15
15
|
content: "";
|
|
16
16
|
background-color: var(--db-divider-bg-color);
|
|
17
17
|
position: absolute;
|
|
18
|
+
/* jscpd:ignore-start */
|
|
18
19
|
block-size: var(--db-border-width-3xs);
|
|
19
20
|
inset-block-start: 0;
|
|
20
21
|
inset-inline: 0;
|
|
21
|
-
/* stylelint-disable-next-line
|
|
22
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
22
23
|
}
|
|
23
24
|
@media (forced-colors: active) {
|
|
24
|
-
.db-divider-top-before,
|
|
25
|
-
[data-divider=top-before] {
|
|
26
|
-
/* stylelint-disable-next-line
|
|
27
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
25
|
+
.db-divider-top-before::before,
|
|
26
|
+
[data-divider=top-before]::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);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
31
|
+
.db-divider-top-before::before,
|
|
32
|
+
[data-divider=top-before]::before {
|
|
33
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
34
|
+
/* jscpd:ignore-end */
|
|
35
|
+
}
|
|
30
36
|
|
|
31
37
|
.db-divider-top-after,
|
|
32
38
|
[data-divider=top-after] {
|
|
@@ -42,18 +48,24 @@
|
|
|
42
48
|
content: "";
|
|
43
49
|
background-color: var(--db-divider-bg-color);
|
|
44
50
|
position: absolute;
|
|
51
|
+
/* jscpd:ignore-start */
|
|
45
52
|
block-size: var(--db-border-width-3xs);
|
|
46
53
|
inset-block-start: 0;
|
|
47
54
|
inset-inline: 0;
|
|
48
|
-
/* stylelint-disable-next-line
|
|
55
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
49
56
|
}
|
|
50
57
|
@media (forced-colors: active) {
|
|
51
|
-
.db-divider-top-after,
|
|
52
|
-
[data-divider=top-after] {
|
|
53
|
-
/* stylelint-disable-next-line
|
|
54
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
58
|
+
.db-divider-top-after::after,
|
|
59
|
+
[data-divider=top-after]::after {
|
|
60
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
61
|
+
border-block-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
55
62
|
}
|
|
56
63
|
}
|
|
64
|
+
.db-divider-top-after::after,
|
|
65
|
+
[data-divider=top-after]::after {
|
|
66
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
67
|
+
/* jscpd:ignore-end */
|
|
68
|
+
}
|
|
57
69
|
|
|
58
70
|
.db-divider-bottom-before,
|
|
59
71
|
[data-divider=bottom-before] {
|
|
@@ -69,18 +81,24 @@
|
|
|
69
81
|
content: "";
|
|
70
82
|
background-color: var(--db-divider-bg-color);
|
|
71
83
|
position: absolute;
|
|
84
|
+
/* jscpd:ignore-start */
|
|
72
85
|
block-size: var(--db-border-width-3xs);
|
|
73
86
|
inset-block-end: 0;
|
|
74
87
|
inset-inline: 0;
|
|
75
|
-
/* stylelint-disable-next-line
|
|
88
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
76
89
|
}
|
|
77
90
|
@media (forced-colors: active) {
|
|
78
|
-
.db-divider-bottom-before,
|
|
79
|
-
[data-divider=bottom-before] {
|
|
80
|
-
/* stylelint-disable-next-line
|
|
81
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
91
|
+
.db-divider-bottom-before::before,
|
|
92
|
+
[data-divider=bottom-before]::before {
|
|
93
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
94
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
82
95
|
}
|
|
83
96
|
}
|
|
97
|
+
.db-divider-bottom-before::before,
|
|
98
|
+
[data-divider=bottom-before]::before {
|
|
99
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
100
|
+
/* jscpd:ignore-end */
|
|
101
|
+
}
|
|
84
102
|
|
|
85
103
|
.db-divider-bottom-after,
|
|
86
104
|
[data-divider=bottom-after] {
|
|
@@ -96,18 +114,24 @@
|
|
|
96
114
|
content: "";
|
|
97
115
|
background-color: var(--db-divider-bg-color);
|
|
98
116
|
position: absolute;
|
|
117
|
+
/* jscpd:ignore-start */
|
|
99
118
|
block-size: var(--db-border-width-3xs);
|
|
100
119
|
inset-block-end: 0;
|
|
101
120
|
inset-inline: 0;
|
|
102
|
-
/* stylelint-disable-next-line
|
|
121
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
103
122
|
}
|
|
104
123
|
@media (forced-colors: active) {
|
|
105
|
-
.db-divider-bottom-after,
|
|
106
|
-
[data-divider=bottom-after] {
|
|
107
|
-
/* stylelint-disable-next-line
|
|
108
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
124
|
+
.db-divider-bottom-after::after,
|
|
125
|
+
[data-divider=bottom-after]::after {
|
|
126
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
127
|
+
border-block-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
109
128
|
}
|
|
110
129
|
}
|
|
130
|
+
.db-divider-bottom-after::after,
|
|
131
|
+
[data-divider=bottom-after]::after {
|
|
132
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
133
|
+
/* jscpd:ignore-end */
|
|
134
|
+
}
|
|
111
135
|
|
|
112
136
|
.db-divider-left-before,
|
|
113
137
|
[data-divider=left-before] {
|
|
@@ -123,18 +147,24 @@
|
|
|
123
147
|
content: "";
|
|
124
148
|
background-color: var(--db-divider-bg-color);
|
|
125
149
|
position: absolute;
|
|
150
|
+
/* jscpd:ignore-start */
|
|
126
151
|
inline-size: var(--db-border-width-3xs);
|
|
127
152
|
inset-inline-start: 0;
|
|
128
153
|
inset-block: 0;
|
|
129
|
-
/* stylelint-disable-next-line
|
|
154
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
130
155
|
}
|
|
131
156
|
@media (forced-colors: active) {
|
|
132
|
-
.db-divider-left-before,
|
|
133
|
-
[data-divider=left-before] {
|
|
134
|
-
/* stylelint-disable-next-line
|
|
135
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
157
|
+
.db-divider-left-before::before,
|
|
158
|
+
[data-divider=left-before]::before {
|
|
159
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
160
|
+
border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
136
161
|
}
|
|
137
162
|
}
|
|
163
|
+
.db-divider-left-before::before,
|
|
164
|
+
[data-divider=left-before]::before {
|
|
165
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
166
|
+
/* jscpd:ignore-end */
|
|
167
|
+
}
|
|
138
168
|
|
|
139
169
|
.db-divider-left-after,
|
|
140
170
|
[data-divider=left-after] {
|
|
@@ -150,18 +180,24 @@
|
|
|
150
180
|
content: "";
|
|
151
181
|
background-color: var(--db-divider-bg-color);
|
|
152
182
|
position: absolute;
|
|
183
|
+
/* jscpd:ignore-start */
|
|
153
184
|
inline-size: var(--db-border-width-3xs);
|
|
154
185
|
inset-inline-start: 0;
|
|
155
186
|
inset-block: 0;
|
|
156
|
-
/* stylelint-disable-next-line
|
|
187
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
157
188
|
}
|
|
158
189
|
@media (forced-colors: active) {
|
|
159
|
-
.db-divider-left-after,
|
|
160
|
-
[data-divider=left-after] {
|
|
161
|
-
/* stylelint-disable-next-line
|
|
162
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
190
|
+
.db-divider-left-after::after,
|
|
191
|
+
[data-divider=left-after]::after {
|
|
192
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
193
|
+
border-inline-start: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
163
194
|
}
|
|
164
195
|
}
|
|
196
|
+
.db-divider-left-after::after,
|
|
197
|
+
[data-divider=left-after]::after {
|
|
198
|
+
/* stylelint-disable-next-line at-rule-empty-line-before */
|
|
199
|
+
/* jscpd:ignore-end */
|
|
200
|
+
}
|
|
165
201
|
|
|
166
202
|
.db-divider-right-before,
|
|
167
203
|
[data-divider=right-before] {
|
|
@@ -177,17 +213,23 @@
|
|
|
177
213
|
content: "";
|
|
178
214
|
background-color: var(--db-divider-bg-color);
|
|
179
215
|
position: absolute;
|
|
216
|
+
/* jscpd:ignore-start */
|
|
180
217
|
inline-size: var(--db-border-width-3xs);
|
|
181
218
|
inset-inline-end: 0;
|
|
182
219
|
inset-block: 0;
|
|
220
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
183
221
|
}
|
|
184
222
|
@media (forced-colors: active) {
|
|
185
|
-
.db-divider-right-before,
|
|
186
|
-
[data-divider=right-before] {
|
|
187
|
-
/* stylelint-disable-next-line
|
|
188
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
223
|
+
.db-divider-right-before::before,
|
|
224
|
+
[data-divider=right-before]::before {
|
|
225
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
226
|
+
border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
189
227
|
}
|
|
190
228
|
}
|
|
229
|
+
.db-divider-right-before::before,
|
|
230
|
+
[data-divider=right-before]::before {
|
|
231
|
+
/* jscpd:ignore-end */
|
|
232
|
+
}
|
|
191
233
|
|
|
192
234
|
.db-divider-right-after,
|
|
193
235
|
[data-divider=right-after] {
|
|
@@ -203,14 +245,20 @@
|
|
|
203
245
|
content: "";
|
|
204
246
|
background-color: var(--db-divider-bg-color);
|
|
205
247
|
position: absolute;
|
|
248
|
+
/* jscpd:ignore-start */
|
|
206
249
|
inline-size: var(--db-border-width-3xs);
|
|
207
250
|
inset-inline-end: 0;
|
|
208
251
|
inset-block: 0;
|
|
252
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
209
253
|
}
|
|
210
254
|
@media (forced-colors: active) {
|
|
211
|
-
.db-divider-right-after,
|
|
212
|
-
[data-divider=right-after] {
|
|
213
|
-
/* stylelint-disable-next-line
|
|
214
|
-
border: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
255
|
+
.db-divider-right-after::after,
|
|
256
|
+
[data-divider=right-after]::after {
|
|
257
|
+
/* stylelint-disable-next-line db-ux/use-border-color */
|
|
258
|
+
border-inline-end: var(--db-border-width-3xs) solid var(--db-divider-bg-color);
|
|
215
259
|
}
|
|
216
260
|
}
|
|
261
|
+
.db-divider-right-after::after,
|
|
262
|
+
[data-divider=right-after]::after {
|
|
263
|
+
/* jscpd:ignore-end */
|
|
264
|
+
}
|
|
@@ -43,7 +43,7 @@ $default-icon-font-size: var(--db-icon-font-size, #{$default-icon-size-rem});
|
|
|
43
43
|
content: $icon;
|
|
44
44
|
|
|
45
45
|
// Hiding icon from screenreaders, https://www.w3.org/TR/css-content-3/#alt
|
|
46
|
-
// TODO: remove the @support wrapper as soon as we drop our partly-support for Firefox < version 128 (Enterprise ESR / Extended Support Release; expected to end in 2026,
|
|
46
|
+
// TODO: remove the @support wrapper as soon as we drop our partly-support for Firefox < version 128 (Enterprise ESR / Extended Support Release; expected to end in 2026, August / https://whattrainisitnow.com/calendar/)
|
|
47
47
|
@supports (content: ""/"") {
|
|
48
48
|
// stylelint-disable-next-line no-invalid-position-declaration
|
|
49
49
|
content: $icon / "";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// If you serve your assets and your css on root level you might need those paths.
|
|
2
2
|
@use "default.assets-paths" as assets-paths with (
|
|
3
3
|
$icons-path: "/assets/icons/",
|
|
4
|
-
$fonts-path: "/assets/fonts/"
|
|
4
|
+
$fonts-path: "/assets/fonts/",
|
|
5
|
+
$images-path: "/assets/images/"
|
|
5
6
|
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use "./default.assets-paths" as assets-paths;
|
|
2
|
+
|
|
3
|
+
@mixin get-images {
|
|
4
|
+
--db-textarea-resizer-image: url("#{assets-paths.$images-path}resize_handle_corner.svg");
|
|
5
|
+
--db-textarea-scrollbar-button-decrement: url("#{assets-paths.$images-path}chevron_up.svg");
|
|
6
|
+
--db-textarea-scrollbar-button-increment: url("#{assets-paths.$images-path}chevron_down.svg");
|
|
7
|
+
--db-logo-aspect-ratio: 1;
|
|
8
|
+
--db-logo-url: url("#{assets-paths.$images-path}logo.svg");
|
|
9
|
+
|
|
10
|
+
// NOTE: --db-logo-url-short uses the same logo.svg as a placeholder.
|
|
11
|
+
// Override this token in your theme to provide a distinct short variant.
|
|
12
|
+
--db-logo-aspect-ratio-short: 1;
|
|
13
|
+
--db-logo-url-short: url("#{assets-paths.$images-path}logo.svg");
|
|
14
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
|
|
2
2
|
@use "default.assets-paths" as assets-paths with (
|
|
3
3
|
$icons-path: "@db-ux/core-foundations/assets/icons/",
|
|
4
|
-
$fonts-path: "@db-ux/core-foundations/assets/fonts/"
|
|
4
|
+
$fonts-path: "@db-ux/core-foundations/assets/fonts/",
|
|
5
|
+
$images-path: "@db-ux/core-foundations/assets/images/"
|
|
5
6
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// If this library is used as an npm dependency, and the source files should be included rather than css, this corrects the paths.
|
|
2
2
|
@use "default.assets-paths" as assets-paths with (
|
|
3
3
|
$icons-path: "~@db-ux/core-foundations/assets/icons/",
|
|
4
|
-
$fonts-path: "~@db-ux/core-foundations/assets/fonts/"
|
|
4
|
+
$fonts-path: "~@db-ux/core-foundations/assets/fonts/",
|
|
5
|
+
$images-path: "~@db-ux/core-foundations/assets/images/"
|
|
5
6
|
);
|