@db-ux/core-components 4.4.0-loading-567cd0c → 4.4.1-floating-components-066d296
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 +6 -0
- package/build/components/accordion-item/accordion-item.css +0 -6
- package/build/components/button/button.css +0 -43
- package/build/components/button/button.scss +0 -4
- package/build/components/custom-select-dropdown/custom-select-dropdown.css +21 -2
- package/build/components/custom-select-dropdown/custom-select-dropdown.scss +10 -2
- package/build/components/drawer/drawer.css +0 -6
- package/build/components/link/link.css +0 -6
- package/build/components/navigation-item/navigation-item.css +0 -6
- package/build/components/notification/notification.css +0 -6
- package/build/components/popover/popover.css +26 -6
- package/build/components/tab-list/tab-list.css +0 -6
- package/build/components/tag/tag.css +0 -6
- package/build/components/textarea/textarea.css +0 -6
- package/build/components/tooltip/tooltip.css +26 -6
- package/build/styles/absolute.css +4 -18
- package/build/styles/component-animations.css +1 -1
- package/build/styles/index.css +3 -17
- package/build/styles/index.scss +0 -2
- package/build/styles/internal/_custom-elements.scss +0 -2
- package/build/styles/internal/_popover-component.scss +15 -5
- package/build/styles/relative.css +4 -18
- package/build/styles/rollup.css +4 -18
- package/build/styles/wc-workarounds.css +1 -1
- package/build/styles/wc-workarounds.scss +0 -1
- package/build/styles/webpack.css +4 -18
- package/package.json +2 -2
- package/build/components/loading-indicator/loading-indicator.css +0 -591
- package/build/components/loading-indicator/loading-indicator.scss +0 -515
- package/build/styles/internal/_loading.scss +0 -76
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @db-ux/core-components
|
|
2
2
|
|
|
3
|
+
## 4.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- DBCustomSelect: Prevent floating label from flickering during initial render - [see commit e5ceff8](https://github.com/db-ux-design-system/core-web/commit/e5ceff861534186cf86d1f5f0a876e04aeac9e41)
|
|
8
|
+
|
|
3
9
|
## 4.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -77,12 +77,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
77
77
|
transform: rotate(1turn);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
@keyframes wobbling {
|
|
81
|
-
50% {
|
|
82
|
-
inset-inline-start: 100%;
|
|
83
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
80
|
.db-accordion-item > details > summary:not([data-show-icon-trailing=false])::after {
|
|
87
81
|
color: var(--db-icon-color, inherit);
|
|
88
82
|
display: inline-block;
|
|
@@ -154,48 +154,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
154
154
|
display: inline-flex;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
.db-button .db-loading-indicator:not([data-overlay]) div label, .db-button .db-loading-indicator:not([data-overlay=true]) div label,
|
|
158
|
-
.db-button .db-loading-indicator:not([data-overlay]) div span,
|
|
159
|
-
.db-button .db-loading-indicator:not([data-overlay=true]) div span {
|
|
160
|
-
display: none;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.db-button:has(.db-loading-indicator:not([data-overlay=true]))[data-icon]::before, .db-button:has(.db-loading-indicator:not([data-overlay=true]))[data-icon-before]::before {
|
|
164
|
-
display: none;
|
|
165
|
-
}
|
|
166
|
-
.db-button:has(.db-loading-indicator:not([data-overlay=true]))[data-icon-after]::after {
|
|
167
|
-
display: none;
|
|
168
|
-
}
|
|
169
|
-
.db-button:has(.db-loading-indicator[data-state=inactive]) .db-loading-indicator {
|
|
170
|
-
display: none;
|
|
171
|
-
}
|
|
172
|
-
.db-button .db-loading-indicator:not([data-state=successful], [data-state=critical]) {
|
|
173
|
-
--db-loading-indicator-segment-color: currentcolor;
|
|
174
|
-
--db-loading-indicator-segment-color-overlay: currentcolor;
|
|
175
|
-
}
|
|
176
|
-
.db-button .db-loading-indicator:not([data-overlay]), .db-button .db-loading-indicator:not([data-overlay=true]) {
|
|
177
|
-
margin-inline-end: var(--db-spacing-fixed-xs);
|
|
178
|
-
}
|
|
179
|
-
.db-button .db-loading-indicator[data-overlay=true] {
|
|
180
|
-
background-color: transparent;
|
|
181
|
-
}
|
|
182
|
-
.db-button .db-loading-indicator[data-overlay=true]::before {
|
|
183
|
-
z-index: 1;
|
|
184
|
-
background-color: var(--db-loading-indicator-button-overlay-color, inherit);
|
|
185
|
-
}
|
|
186
|
-
.db-button .db-loading-indicator[data-overlay=true]::after {
|
|
187
|
-
z-index: 0;
|
|
188
|
-
content: "";
|
|
189
|
-
position: absolute;
|
|
190
|
-
inset: 0;
|
|
191
|
-
border-radius: inherit;
|
|
192
|
-
background-color: var(--db-adaptive-bg-basic-level-1-default);
|
|
193
|
-
}
|
|
194
|
-
.db-button .db-loading-indicator[data-overlay=true] svg,
|
|
195
|
-
.db-button .db-loading-indicator[data-overlay=true] div {
|
|
196
|
-
z-index: 2;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
157
|
.db-button {
|
|
200
158
|
max-inline-size: 100%;
|
|
201
159
|
color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
|
|
@@ -235,7 +193,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
235
193
|
inline-size: 100%;
|
|
236
194
|
}
|
|
237
195
|
.db-button[data-variant=brand] {
|
|
238
|
-
--db-loading-indicator-button-overlay-color: var(--db-brand-origin-default);
|
|
239
196
|
background-color: var(--db-brand-origin-default);
|
|
240
197
|
color: var(--db-brand-on-origin-default);
|
|
241
198
|
border-color: var(--db-brand-on-bg-basic-emphasis-70-default);
|
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
7
7
|
@use "../../styles/internal/component";
|
|
8
8
|
@use "../../styles/internal/button-components";
|
|
9
|
-
@use "../../styles/internal/loading";
|
|
10
9
|
|
|
11
10
|
// generic styles can be found in _button-components.scss
|
|
12
11
|
.db-button {
|
|
13
12
|
@extend %default-interactive-component;
|
|
14
13
|
@extend %default-button;
|
|
15
|
-
@extend %interactive-element-with-loading;
|
|
16
14
|
@extend %db-overwrite-font-size-md;
|
|
17
15
|
|
|
18
16
|
max-inline-size: 100%;
|
|
@@ -64,8 +62,6 @@
|
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
&[data-variant="brand"] {
|
|
67
|
-
--db-loading-indicator-button-overlay-color: #{colors.$db-brand-origin-default};
|
|
68
|
-
|
|
69
65
|
background-color: colors.$db-brand-origin-default;
|
|
70
66
|
color: colors.$db-brand-on-origin-default;
|
|
71
67
|
border-color: colors.$db-brand-on-bg-basic-emphasis-70-default;
|
|
@@ -219,6 +219,21 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
219
219
|
* @mixin screen-min-max
|
|
220
220
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
221
221
|
*/
|
|
222
|
+
@keyframes popover-animation {
|
|
223
|
+
0% {
|
|
224
|
+
opacity: 0;
|
|
225
|
+
transform: translate(var(--db-popover-center-x, var(--db-popover-translate-x, 0%)), var(--db-popover-center-y, var(--db-popover-translate-y, 0%)));
|
|
226
|
+
}
|
|
227
|
+
100% {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
transform: translate(var(--db-popover-center-x, 0%), var(--db-popover-center-y, 0%));
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
@keyframes rotate {
|
|
233
|
+
100% {
|
|
234
|
+
transform: rotate(1turn);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
222
237
|
/**
|
|
223
238
|
Generates 3 types of placeholders, e.g:
|
|
224
239
|
- %db-component-variables-md
|
|
@@ -412,10 +427,14 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
412
427
|
display: none;
|
|
413
428
|
}
|
|
414
429
|
}
|
|
415
|
-
.db-custom-select-dropdown > db-loading-indicator > .db-loading-indicator,
|
|
416
|
-
.db-custom-select-dropdown > .db-loading-indicator,
|
|
417
430
|
.db-custom-select-dropdown > db-infotext > .db-infotext,
|
|
418
431
|
.db-custom-select-dropdown > .db-infotext {
|
|
419
432
|
padding: var(--db-spacing-fixed-lg) var(--db-spacing-fixed-md);
|
|
420
433
|
margin: auto;
|
|
421
434
|
}
|
|
435
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
436
|
+
.db-custom-select-dropdown > db-infotext > .db-infotext[data-icon=circular_arrows]::before,
|
|
437
|
+
.db-custom-select-dropdown > .db-infotext[data-icon=circular_arrows]::before {
|
|
438
|
+
animation: rotate 1.5s linear 0s infinite normal none running;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "@db-ux/core-foundations/build/styles/colors";
|
|
3
3
|
@use "@db-ux/core-foundations/build/styles/screen-sizes";
|
|
4
4
|
@use "@db-ux/core-foundations/build/styles/helpers";
|
|
5
|
+
@use "@db-ux/core-foundations/build/styles/animation";
|
|
5
6
|
@use "../../styles/internal/form-components";
|
|
6
7
|
|
|
7
8
|
.db-custom-select-dropdown {
|
|
@@ -68,11 +69,18 @@
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
|
|
71
|
-
> db-loading-indicator > .db-loading-indicator,
|
|
72
|
-
> .db-loading-indicator,
|
|
73
72
|
> db-infotext > .db-infotext,
|
|
74
73
|
> .db-infotext {
|
|
75
74
|
padding: variables.$db-spacing-fixed-lg variables.$db-spacing-fixed-md;
|
|
76
75
|
margin: auto;
|
|
76
|
+
|
|
77
|
+
&[data-icon="circular_arrows"] {
|
|
78
|
+
&::before {
|
|
79
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
80
|
+
animation: rotate 1.5s linear 0s infinite normal none
|
|
81
|
+
running;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
77
85
|
}
|
|
78
86
|
}
|
|
@@ -58,12 +58,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
58
58
|
transform: rotate(1turn);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
@keyframes wobbling {
|
|
62
|
-
50% {
|
|
63
|
-
inset-inline-start: 100%;
|
|
64
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
61
|
/**
|
|
68
62
|
* @mixin screen-min-max
|
|
69
63
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -144,12 +144,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
144
144
|
transform: rotate(1turn);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
@keyframes wobbling {
|
|
148
|
-
50% {
|
|
149
|
-
inset-inline-start: 100%;
|
|
150
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
147
|
.db-link[data-content=internal]:not([data-variant=inline]):not([data-show-icon-trailing=false])::after, .db-link[data-content=external]:not([data-variant=inline]):not([data-show-icon-trailing=false])::after {
|
|
154
148
|
color: var(--db-icon-color, inherit);
|
|
155
149
|
display: inline-block;
|
|
@@ -136,12 +136,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
136
136
|
transform: rotate(1turn);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
@keyframes wobbling {
|
|
140
|
-
50% {
|
|
141
|
-
inset-inline-start: 100%;
|
|
142
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
139
|
.db-navigation-item .db-navigation-item-expand-button:is(button):not([data-show-icon-trailing=false])::after,
|
|
146
140
|
.db-navigation-item .db-navigation-item-expand-button > button:not([data-show-icon-trailing=false])::after {
|
|
147
141
|
color: var(--db-icon-color, inherit);
|
|
@@ -980,12 +980,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
980
980
|
transform: rotate(1turn);
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
@keyframes wobbling {
|
|
984
|
-
50% {
|
|
985
|
-
inset-inline-start: 100%;
|
|
986
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
983
|
.db-notification a:not([hidden]) {
|
|
990
984
|
display: inline-block;
|
|
991
985
|
}
|
|
@@ -58,12 +58,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
58
58
|
transform: rotate(1turn);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
@keyframes wobbling {
|
|
62
|
-
50% {
|
|
63
|
-
inset-inline-start: 100%;
|
|
64
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
61
|
/**
|
|
68
62
|
* @mixin screen-min-max
|
|
69
63
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -80,10 +74,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
80
74
|
.db-popover > article:not([data-placement], [data-corrected-placement]), .db-popover > article[data-placement=bottom]:not([data-corrected-placement]), .db-popover > article[data-placement=top]:not([data-corrected-placement]), .db-popover > article[data-corrected-placement=bottom], .db-popover > article[data-corrected-placement=top] {
|
|
81
75
|
--db-popover-center-x: -50%;
|
|
82
76
|
inset-inline-start: 50%;
|
|
77
|
+
transform: translateX(var(--db-popover-center-x, 0));
|
|
83
78
|
}
|
|
84
79
|
.db-popover > article[data-corrected-placement=left], .db-popover > article[data-corrected-placement=right], .db-popover > article[data-placement=left]:not([data-corrected-placement]), .db-popover > article[data-placement=right]:not([data-corrected-placement]) {
|
|
85
80
|
--db-popover-center-y: -50%;
|
|
86
81
|
inset-block-start: 50%;
|
|
82
|
+
transform: translateY(var(--db-popover-center-y, 0));
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
.db-popover > article {
|
|
@@ -180,6 +176,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
180
176
|
opacity: 1;
|
|
181
177
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
182
178
|
}
|
|
179
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
180
|
+
.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] {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
183
185
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
184
186
|
.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] {
|
|
185
187
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -205,6 +207,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
205
207
|
opacity: 1;
|
|
206
208
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
207
209
|
}
|
|
210
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
211
|
+
.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] {
|
|
212
|
+
opacity: 1;
|
|
213
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
208
216
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
209
217
|
.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] {
|
|
210
218
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -230,6 +238,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
230
238
|
opacity: 1;
|
|
231
239
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
232
240
|
}
|
|
241
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
242
|
+
.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] {
|
|
243
|
+
opacity: 1;
|
|
244
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
245
|
+
}
|
|
246
|
+
}
|
|
233
247
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
234
248
|
.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] {
|
|
235
249
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -255,6 +269,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
255
269
|
opacity: 1;
|
|
256
270
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
257
271
|
}
|
|
272
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
273
|
+
.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] {
|
|
274
|
+
opacity: 1;
|
|
275
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
276
|
+
}
|
|
277
|
+
}
|
|
258
278
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
259
279
|
.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] {
|
|
260
280
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -81,12 +81,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
81
81
|
transform: rotate(1turn);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
@keyframes wobbling {
|
|
85
|
-
50% {
|
|
86
|
-
inset-inline-start: 100%;
|
|
87
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
84
|
/**
|
|
91
85
|
Generates 3 types of placeholders, e.g:
|
|
92
86
|
- %db-component-variables-md
|
|
@@ -27,12 +27,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
27
27
|
transform: rotate(1turn);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
@keyframes wobbling {
|
|
31
|
-
50% {
|
|
32
|
-
inset-inline-start: 100%;
|
|
33
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
30
|
/* Variants for adaptive components like input, select, notification, ... */
|
|
37
31
|
.db-tag:has(label, button:not(.db-tab-remove-button), a)[data-semantic=neutral] {
|
|
38
32
|
/* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
|
|
@@ -216,12 +216,6 @@ input[type=radio]:checked) > label {
|
|
|
216
216
|
transform: rotate(1turn);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
@keyframes wobbling {
|
|
220
|
-
50% {
|
|
221
|
-
inset-inline-start: 100%;
|
|
222
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
219
|
.db-textarea textarea {
|
|
226
220
|
/* Buttons */
|
|
227
221
|
/* Up */
|
|
@@ -130,12 +130,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
130
130
|
transform: rotate(1turn);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
@keyframes wobbling {
|
|
134
|
-
50% {
|
|
135
|
-
inset-inline-start: 100%;
|
|
136
|
-
transform: translateX(calc(-100% - var(--db-loading-indicator-progress-bar-segment-padding, 2px)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
133
|
/**
|
|
140
134
|
* @mixin screen-min-max
|
|
141
135
|
* @param $data an object like (min:"sm", max:"lg") or (min: "sm")
|
|
@@ -152,10 +146,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
152
146
|
.db-tooltip:not([data-placement], [data-corrected-placement]), [data-placement=bottom].db-tooltip:not([data-corrected-placement]), [data-placement=top].db-tooltip:not([data-corrected-placement]), [data-corrected-placement=bottom].db-tooltip, [data-corrected-placement=top].db-tooltip {
|
|
153
147
|
--db-popover-center-x: -50%;
|
|
154
148
|
inset-inline-start: 50%;
|
|
149
|
+
transform: translateX(var(--db-popover-center-x, 0));
|
|
155
150
|
}
|
|
156
151
|
[data-corrected-placement=left].db-tooltip, [data-corrected-placement=right].db-tooltip, [data-placement=left].db-tooltip:not([data-corrected-placement]), [data-placement=right].db-tooltip:not([data-corrected-placement]) {
|
|
157
152
|
--db-popover-center-y: -50%;
|
|
158
153
|
inset-block-start: 50%;
|
|
154
|
+
transform: translateY(var(--db-popover-center-y, 0));
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
.db-tooltip {
|
|
@@ -252,6 +248,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
252
248
|
opacity: 1;
|
|
253
249
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
254
250
|
}
|
|
251
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
252
|
+
.db-tooltip[data-e2e-hover=true]:not([data-placement], [data-corrected-placement]), [data-has-tooltip=true]:hover .db-tooltip:not([data-placement], [data-corrected-placement]):first-of-type, [data-has-tooltip=true]:focus-visible .db-tooltip:not([data-placement], [data-corrected-placement]):first-of-type, [data-placement^=bottom].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement]), [data-has-tooltip=true]:hover [data-placement^=bottom].db-tooltip:not([data-corrected-placement]):first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=bottom].db-tooltip:not([data-corrected-placement]):first-of-type, [data-corrected-placement^=bottom].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=bottom].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=bottom].db-tooltip:first-of-type {
|
|
253
|
+
opacity: 1;
|
|
254
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
255
257
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
256
258
|
.db-tooltip[data-e2e-hover=true]:not([data-placement], [data-corrected-placement])[data-animation=true], [data-has-tooltip=true]:hover .db-tooltip:not([data-placement], [data-corrected-placement])[data-animation=true]:first-of-type, [data-has-tooltip=true]:focus-visible .db-tooltip:not([data-placement], [data-corrected-placement])[data-animation=true]:first-of-type, [data-placement^=bottom].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement])[data-animation=true], [data-has-tooltip=true]:hover [data-placement^=bottom].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=bottom].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-corrected-placement^=bottom][data-animation=true].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=bottom][data-animation=true].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=bottom][data-animation=true].db-tooltip:first-of-type {
|
|
257
259
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -277,6 +279,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
277
279
|
opacity: 1;
|
|
278
280
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
279
281
|
}
|
|
282
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
283
|
+
[data-placement^=top].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement]), [data-has-tooltip=true]:hover [data-placement^=top].db-tooltip:not([data-corrected-placement]):first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=top].db-tooltip:not([data-corrected-placement]):first-of-type, [data-corrected-placement^=top].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=top].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=top].db-tooltip:first-of-type {
|
|
284
|
+
opacity: 1;
|
|
285
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
280
288
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
281
289
|
[data-placement^=top].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement])[data-animation=true], [data-has-tooltip=true]:hover [data-placement^=top].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=top].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-corrected-placement^=top][data-animation=true].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=top][data-animation=true].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=top][data-animation=true].db-tooltip:first-of-type {
|
|
282
290
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -302,6 +310,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
302
310
|
opacity: 1;
|
|
303
311
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
304
312
|
}
|
|
313
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
314
|
+
[data-placement^=right].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement]), [data-has-tooltip=true]:hover [data-placement^=right].db-tooltip:not([data-corrected-placement]):first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=right].db-tooltip:not([data-corrected-placement]):first-of-type, [data-corrected-placement^=right].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=right].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=right].db-tooltip:first-of-type {
|
|
315
|
+
opacity: 1;
|
|
316
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
317
|
+
}
|
|
318
|
+
}
|
|
305
319
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
306
320
|
[data-placement^=right].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement])[data-animation=true], [data-has-tooltip=true]:hover [data-placement^=right].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=right].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-corrected-placement^=right][data-animation=true].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=right][data-animation=true].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=right][data-animation=true].db-tooltip:first-of-type {
|
|
307
321
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|
|
@@ -327,6 +341,12 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
|
|
|
327
341
|
opacity: 1;
|
|
328
342
|
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
329
343
|
}
|
|
344
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
345
|
+
[data-placement^=left].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement]), [data-has-tooltip=true]:hover [data-placement^=left].db-tooltip:not([data-corrected-placement]):first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=left].db-tooltip:not([data-corrected-placement]):first-of-type, [data-corrected-placement^=left].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=left].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=left].db-tooltip:first-of-type {
|
|
346
|
+
opacity: 1;
|
|
347
|
+
transform: translate(var(--db-popover-center-x, 0), var(--db-popover-center-y, 0));
|
|
348
|
+
}
|
|
349
|
+
}
|
|
330
350
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
331
351
|
[data-placement^=left].db-tooltip[data-e2e-hover=true]:not([data-corrected-placement])[data-animation=true], [data-has-tooltip=true]:hover [data-placement^=left].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-has-tooltip=true]:focus-visible [data-placement^=left].db-tooltip:not([data-corrected-placement])[data-animation=true]:first-of-type, [data-corrected-placement^=left][data-animation=true].db-tooltip[data-e2e-hover=true], [data-has-tooltip=true]:hover [data-corrected-placement^=left][data-animation=true].db-tooltip:first-of-type, [data-has-tooltip=true]:focus-visible [data-corrected-placement^=left][data-animation=true].db-tooltip:first-of-type {
|
|
332
352
|
animation: popover-animation var(--db-transition-straight-emotional) normal both;
|