@ardium-ui/ui 5.0.0-alpha.74 → 5.0.0-alpha.76
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/fesm2022/ardium-ui-ui.mjs +106 -106
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/slider/range-slider/range-slider.component.d.ts +1 -1
- package/package.json +1 -1
- package/prebuilt-themes/default/badge.css +222 -221
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +305 -304
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +302 -303
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +290 -290
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +364 -364
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +130 -137
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +74 -72
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +339 -338
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +384 -383
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +28 -26
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css +105 -103
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css +13 -9
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +15 -15
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +73 -72
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +35 -34
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +286 -285
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +102 -102
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +127 -129
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +163 -162
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -98
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +125 -125
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +110 -111
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +358 -359
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +140 -138
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +128 -126
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +204 -204
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +98 -97
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +10 -8
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +17 -15
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +79 -77
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -234
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +172 -170
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +231 -232
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +414 -412
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +274 -275
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +294 -293
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +370 -369
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +173 -172
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +156 -155
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +259 -262
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +234 -233
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +46 -45
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +441 -439
- package/prebuilt-themes/default/table.css.map +1 -1
- package/themes/default/badge.scss +92 -90
- package/themes/default/buttons/button.scss +70 -68
- package/themes/default/buttons/fab.scss +63 -61
- package/themes/default/buttons/icon-button.scss +56 -54
- package/themes/default/calendar.scss +215 -211
- package/themes/default/card.scss +133 -131
- package/themes/default/checkbox-list.scss +70 -68
- package/themes/default/checkbox.scss +55 -53
- package/themes/default/chips.scss +166 -159
- package/themes/default/color-display.scss +31 -29
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +14 -9
- package/themes/default/dialog.scss +15 -13
- package/themes/default/divider.scss +79 -77
- package/themes/default/dropdown-panel.scss +37 -35
- package/themes/default/file-drop-area.scss +152 -150
- package/themes/default/form-field-frame.scss +69 -67
- package/themes/default/form-field.scss +109 -107
- package/themes/default/inputs/autocomplete-input.scss +61 -59
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +63 -61
- package/themes/default/inputs/digit-input.scss +83 -81
- package/themes/default/inputs/file-input.scss +113 -111
- package/themes/default/inputs/hex-input.scss +39 -37
- package/themes/default/inputs/input.scss +27 -25
- package/themes/default/inputs/number-input.scss +137 -135
- package/themes/default/inputs/password-input.scss +60 -58
- package/themes/default/kbd-shortcut.scss +9 -7
- package/themes/default/kbd.scss +19 -17
- package/themes/default/modal.scss +79 -77
- package/themes/default/progress-bar.scss +127 -103
- package/themes/default/progress-circle.scss +41 -39
- package/themes/default/radio.scss +92 -90
- package/themes/default/segment.scss +260 -255
- package/themes/default/select.scss +206 -204
- package/themes/default/slide-toggle.scss +146 -144
- package/themes/default/slider.scss +185 -179
- package/themes/default/snackbar.scss +32 -30
- package/themes/default/spinner.scss +16 -14
- package/themes/default/stars.scss +81 -79
- package/themes/default/tabber.scss +86 -84
- package/themes/default/table-pagination.scss +47 -46
- package/themes/default/table.scss +342 -340
|
@@ -28,99 +28,101 @@
|
|
|
28
28
|
--ard-modal-close-button-offset-compact: 0.25rem;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
@layer ard-theme {
|
|
32
|
+
.ard-modal {
|
|
33
|
+
position: fixed;
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
right: 0;
|
|
38
|
+
display: grid;
|
|
39
|
+
place-items: center;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
41
|
+
&.ard-modal-backdrop {
|
|
42
|
+
background: ARD.$darken-overlay-strong;
|
|
43
|
+
}
|
|
44
|
+
.ard-modal-panel {
|
|
45
|
+
padding: var(--ard-modal-padding, 1.25rem);
|
|
46
|
+
padding-top: var(--ard-modal-padding-top, 1rem);
|
|
47
|
+
width: var(--ard-modal-width);
|
|
48
|
+
height: var(--ard-modal-height);
|
|
49
|
+
min-width: var(--ard-modal-min-width);
|
|
50
|
+
min-height: var(--ard-modal-min-height);
|
|
51
|
+
max-width: var(--ard-modal-max-width, calc(100vw - var(--ard-modal-viewport-spacing, 2rem) * 2));
|
|
52
|
+
max-height: var(--ard-modal-max-height, calc(100vh - var(--ard-modal-viewport-spacing, 2rem) * 2));
|
|
53
|
+
background: var(--ard-modal-bg, #{ARD.$bg});
|
|
54
|
+
position: relative;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
gap: var(--ard-modal-gap, 1.5rem);
|
|
59
|
+
font-size: 1rem;
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
&.ard-modal-no-heading-text {
|
|
62
|
+
gap: var(--ard-modal-no-heading-gap, 0.25rem);
|
|
62
63
|
|
|
64
|
+
.ard-modal-close-button {
|
|
65
|
+
position: absolute;
|
|
66
|
+
right: var(--ard-modal-close-button-offset, 0.5rem);
|
|
67
|
+
top: var(--ard-modal-close-button-offset, 0.5rem);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
&.ard-modal-has-close-button {
|
|
71
|
+
.ard-modal-heading {
|
|
72
|
+
padding-right: var(--ard-modal-heading-padding-right, 2rem);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.ard-modal-heading {
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: flex-start;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
|
|
81
|
+
.ard-modal-heading-text {
|
|
82
|
+
font-size: var(--ard-modal-heading-font-size, 1.25rem);
|
|
83
|
+
color: var(--ard-modal-heading-color, #{ARD.$text});
|
|
84
|
+
font-weight: var(--ard-modal-heading-font-weight, 500);
|
|
85
|
+
font-family: var(--ard-font-family);
|
|
86
|
+
}
|
|
63
87
|
.ard-modal-close-button {
|
|
64
88
|
position: absolute;
|
|
65
89
|
right: var(--ard-modal-close-button-offset, 0.5rem);
|
|
66
90
|
top: var(--ard-modal-close-button-offset, 0.5rem);
|
|
67
91
|
}
|
|
68
92
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
93
|
+
//! appearances
|
|
94
|
+
&.ard-appearance-raised {
|
|
95
|
+
.ard-modal-panel {
|
|
96
|
+
box-shadow: ARD.$simple-shadow2;
|
|
72
97
|
}
|
|
73
98
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.ard-modal-heading-text {
|
|
81
|
-
font-size: var(--ard-modal-heading-font-size, 1.25rem);
|
|
82
|
-
color: var(--ard-modal-heading-color, #{ARD.$text});
|
|
83
|
-
font-weight: var(--ard-modal-heading-font-weight, 500);
|
|
84
|
-
font-family: var(--ard-font-family);
|
|
85
|
-
}
|
|
86
|
-
.ard-modal-close-button {
|
|
87
|
-
position: absolute;
|
|
88
|
-
right: var(--ard-modal-close-button-offset, 0.5rem);
|
|
89
|
-
top: var(--ard-modal-close-button-offset, 0.5rem);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//! appearances
|
|
93
|
-
&.ard-appearance-raised {
|
|
94
|
-
.ard-modal-panel {
|
|
95
|
-
box-shadow: ARD.$simple-shadow2;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
//! variants
|
|
99
|
-
&.ard-variant-rounded {
|
|
100
|
-
.ard-modal-panel {
|
|
101
|
-
border-radius: var(--ard-modal-rounded-border-radius, 8px);
|
|
99
|
+
//! variants
|
|
100
|
+
&.ard-variant-rounded {
|
|
101
|
+
.ard-modal-panel {
|
|
102
|
+
border-radius: var(--ard-modal-rounded-border-radius, 8px);
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
&.ard-variant-sharp {
|
|
106
|
+
.ard-modal-panel {
|
|
107
|
+
border-radius: 0;
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
|
-
}
|
|
109
110
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
//! compact
|
|
112
|
+
&.ard-compact {
|
|
113
|
+
.ard-modal-panel {
|
|
114
|
+
font-size: var(--ard-modal-font-size-compact, 0.875rem);
|
|
115
|
+
padding: var(--ard-modal-padding-compact, 0.75rem 2rem 1rem 2rem);
|
|
116
|
+
gap: var(--ard-modal-gap-compact, 1rem);
|
|
116
117
|
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
&.ard-modal-no-heading-text {
|
|
119
|
+
gap: var(--ard-modal-no-heading-gap, 0.25rem);
|
|
119
120
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
.ard-modal-close-button {
|
|
122
|
+
position: absolute;
|
|
123
|
+
right: var(--ard-modal-close-button-offset-compact, 0.25rem);
|
|
124
|
+
top: var(--ard-modal-close-button-offset-compact, 0.25rem);
|
|
125
|
+
}
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
}
|
|
@@ -1,127 +1,151 @@
|
|
|
1
1
|
@use './coloring' as CM;
|
|
2
2
|
@use '../variables' as ARD;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
left: 0;
|
|
23
|
-
right: 0;
|
|
24
|
-
opacity: 30%;
|
|
25
|
-
}
|
|
26
|
-
.ard-progress-bar__overlay {
|
|
27
|
-
width: var(--ard-_progress-bar-main, 0);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//! variants
|
|
31
|
-
&.ard-variant-sharp {
|
|
32
|
-
border-radius: 0;
|
|
33
|
-
}
|
|
34
|
-
&.ard-variant-pill {
|
|
35
|
-
border-radius: 9999px;
|
|
36
|
-
}
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-progress-bar-width: 100%;
|
|
8
|
+
--ard-progress-bar-height: 0.25rem;
|
|
9
|
+
--ard-progress-bar-margin: 0.5rem 0;
|
|
10
|
+
// --ard-progress-bar-foreground-color: ;
|
|
11
|
+
// --ard-progress-bar-background-color: ;
|
|
12
|
+
// --ard-progress-bar-buffer-color: ;
|
|
13
|
+
--ard-progress-bar-background-opacity: 30%;
|
|
14
|
+
--ard-progress-bar-buffer-opacity: 100%;
|
|
15
|
+
--ard-progress-bar-transition-duration: 0.1s;
|
|
16
|
+
--ard-progress-bar-indeterminate-animation-duration: 2.1s;
|
|
17
|
+
--ard-progress-bar-buffer-animation-distance: 0.5rem;
|
|
18
|
+
--ard-progress-bar-buffer-animation-duration: 0.4s;
|
|
19
|
+
--ard-progress-bar-currentColor-background-opacity: 22.5%;
|
|
20
|
+
--ard-progress-bar-currentColor-overlay-buffer-opacity: 30%;
|
|
21
|
+
}
|
|
37
22
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
23
|
+
@layer ard-theme {
|
|
24
|
+
.ard-progress-bar {
|
|
25
|
+
@include CM.typeColors();
|
|
26
|
+
width: var(--ard-progress-bar-width, 100%);
|
|
27
|
+
margin: var(--ard-progress-bar-margin, 0.5rem 0);
|
|
28
|
+
overflow: hidden;
|
|
45
29
|
|
|
46
|
-
|
|
47
|
-
&.ard-progress-bar__mode-determinate,
|
|
48
|
-
&.ard-progress-bar__mode-buffer {
|
|
30
|
+
.ard-progress-bar__background,
|
|
49
31
|
.ard-progress-bar__overlay {
|
|
50
|
-
|
|
32
|
+
position: absolute;
|
|
33
|
+
background-color: var(--ard-progress-bar-foreground-color, var(--ard-cmpcl--bg-colored));
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
}
|
|
38
|
+
.ard-progress-bar__background {
|
|
39
|
+
background-color: var(--ard-progress-bar-background-color, var(--ard-cmpcl--bg-colored-light));
|
|
40
|
+
top: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
opacity: var(--ard-progress-bar-background-opacity, 30%);
|
|
51
45
|
}
|
|
52
|
-
}
|
|
53
|
-
&.ard-progress-bar__mode-indeterminate,
|
|
54
|
-
&.ard-progress-bar__mode-query {
|
|
55
46
|
.ard-progress-bar__overlay {
|
|
56
|
-
|
|
47
|
+
width: var(--ard-_progress-bar-main, 0);
|
|
48
|
+
}
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
50
|
+
//! variants
|
|
51
|
+
&.ard-variant-sharp {
|
|
52
|
+
border-radius: 0;
|
|
53
|
+
}
|
|
54
|
+
&.ard-variant-pill {
|
|
55
|
+
border-radius: 9999px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//! sizes
|
|
59
|
+
&.ard-progress-bar__size-default {
|
|
60
|
+
height: var(--ard-progress-bar-height, 0.25rem);
|
|
61
|
+
}
|
|
62
|
+
&.ard-progress-bar__size-auto:not(.ard-progress-bar__mode-buffer) {
|
|
63
|
+
height: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//! modes
|
|
67
|
+
&.ard-progress-bar__mode-determinate,
|
|
68
|
+
&.ard-progress-bar__mode-buffer {
|
|
69
|
+
.ard-progress-bar__overlay {
|
|
70
|
+
transition: width var(--ard-progress-bar-transition-duration, 0.1s) ARD.$timing-fn;
|
|
69
71
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
}
|
|
73
|
+
&.ard-progress-bar__mode-indeterminate,
|
|
74
|
+
&.ard-progress-bar__mode-query {
|
|
75
|
+
.ard-progress-bar__overlay {
|
|
76
|
+
position: unset;
|
|
77
|
+
|
|
78
|
+
&::before,
|
|
79
|
+
&::after {
|
|
80
|
+
content: '';
|
|
81
|
+
position: absolute;
|
|
82
|
+
background-color: inherit;
|
|
83
|
+
top: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
bottom: 0;
|
|
86
|
+
}
|
|
87
|
+
&::before {
|
|
88
|
+
animation: indeterminate var(--ard-progress-bar-indeterminate-animation-duration, 2.1s)
|
|
89
|
+
cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
90
|
+
}
|
|
91
|
+
&::after {
|
|
92
|
+
animation: indeterminate-short var(--ard-progress-bar-indeterminate-animation-duration, 2.1s)
|
|
93
|
+
cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
94
|
+
animation-delay: calc(var(--ard-progress-bar-indeterminate-animation-duration, 2.1s) * 0.55);
|
|
95
|
+
}
|
|
73
96
|
}
|
|
74
97
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
overflow: hidden;
|
|
98
|
+
&.ard-progress-bar__mode-query {
|
|
99
|
+
transform: rotate(180deg);
|
|
100
|
+
}
|
|
101
|
+
&.ard-progress-bar__mode-buffer {
|
|
102
|
+
.ard-progress-bar__background {
|
|
103
|
+
background: none !important;
|
|
104
|
+
left: var(--ard-_progress-bar-buffer, 100%);
|
|
105
|
+
overflow: hidden;
|
|
84
106
|
|
|
85
|
-
|
|
86
|
-
|
|
107
|
+
&::after {
|
|
108
|
+
content: '';
|
|
109
|
+
position: absolute;
|
|
110
|
+
right: calc(var(--ard-progress-bar-buffer-animation-distance, 0.5rem) * -1);
|
|
111
|
+
top: 0;
|
|
112
|
+
bottom: 0;
|
|
113
|
+
width: 9999px;
|
|
114
|
+
animation: buffer var(--ard-progress-bar-buffer-animation-duration, 0.4s) linear infinite;
|
|
115
|
+
border-bottom: var(--ard-progress-bar-height, 0.25rem) dotted var(--ard-cmpcl--bg-colored);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.ard-progress-bar__overlay-buffer {
|
|
119
|
+
background: var(--ard-progress-bar-buffer-color, var(--ard-cmpcl--bg-colored-light));
|
|
120
|
+
opacity: var(--ard-progress-bar-buffer-opacity, 100%);
|
|
87
121
|
position: absolute;
|
|
88
|
-
|
|
122
|
+
left: 0;
|
|
123
|
+
width: var(--ard-_progress-bar-buffer, 0);
|
|
89
124
|
top: 0;
|
|
90
125
|
bottom: 0;
|
|
91
|
-
|
|
92
|
-
animation: buffer 0.4s linear infinite;
|
|
93
|
-
border-bottom: 0.25rem dotted var(--ard-cmpcl--bg-colored);
|
|
126
|
+
transition: width var(--ard-progress-bar-transition-duration, 0.1s) ARD.$timing-fn;
|
|
94
127
|
}
|
|
95
128
|
}
|
|
96
|
-
.ard-progress-bar__overlay-buffer {
|
|
97
|
-
background: var(--ard-cmpcl--bg-colored-light);
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 0;
|
|
100
|
-
width: var(--ard-_progress-bar-buffer, 0);
|
|
101
|
-
top: 0;
|
|
102
|
-
bottom: 0;
|
|
103
|
-
transition: width 0.1s ARD.$timing-fn;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
129
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
130
|
+
//! hiding the value
|
|
131
|
+
&.ard-progress-bar__size-default,
|
|
132
|
+
&.ard-progress-bar__hide-value,
|
|
133
|
+
&.ard-progress-bar__mode-buffer {
|
|
134
|
+
> .ard-progress-bar__value {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
113
137
|
}
|
|
114
|
-
}
|
|
115
138
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
//! currentColor special case
|
|
140
|
+
&.ard-color-currentColor {
|
|
141
|
+
.ard-progress-bar__background {
|
|
142
|
+
opacity: var(--ard-progress-bar-currentColor-background-opacity, 22.5%);
|
|
143
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
144
|
+
}
|
|
145
|
+
.ard-progress-bar__overlay-buffer {
|
|
146
|
+
opacity: var(--ard-progress-bar-currentColor-overlay-buffer-opacity, 30%);
|
|
147
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
148
|
+
}
|
|
125
149
|
}
|
|
126
150
|
}
|
|
127
151
|
}
|
|
@@ -11,52 +11,54 @@
|
|
|
11
11
|
--ard-progress-circle-value-font-size: 0.875em;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
@layer ard-theme {
|
|
15
|
+
.ard-progress-circle {
|
|
16
|
+
@include coloringMixins.typeColors;
|
|
17
|
+
width: var(--ard-progress-circle-size, 3em);
|
|
18
|
+
height: var(--ard-progress-circle-size, 3em);
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
--ard-_progress-circle-fill-color: var(--ard-cmpcl--bg-colored);
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
//! appearances
|
|
23
|
+
&.ard-appearance-transparent {
|
|
24
|
+
.ard-progress-circle-background {
|
|
25
|
+
background: transparent;
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
&.ard-appearance-colorless {
|
|
29
|
+
.ard-progress-circle-background {
|
|
30
|
+
background: var(--ard-progress-circle-colorless-background-color, #{ARD.$darken-overlay-medium});
|
|
31
|
+
opacity: var(--ard-progress-circle-colorless-background-opacity, 100%);
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
&.ard-appearance-colored {
|
|
35
|
+
.ard-progress-circle-background {
|
|
36
|
+
opacity: var(--ard-progress-circle-colored-background-opacity, 100%);
|
|
37
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
//! ring variant
|
|
41
|
+
&.ard-progress-circle-variant-ring {
|
|
42
|
+
.ard-progress-circle-background,
|
|
43
|
+
.ard-progress-circle-overlay {
|
|
44
|
+
//magic number
|
|
45
|
+
//don't know why this value specifically looks good
|
|
46
|
+
mask: radial-gradient(transparent 59%, #000 59%);
|
|
47
|
+
}
|
|
46
48
|
}
|
|
47
|
-
|
|
48
|
-
//! value
|
|
49
|
-
.ard-progress-circle-value {
|
|
50
|
-
position: absolute;
|
|
51
|
-
left: 50%;
|
|
52
|
-
top: 50%;
|
|
53
|
-
transform: translate(-50%, -50%);
|
|
54
|
-
font-weight: bold;
|
|
55
|
-
font-size: var(--ard-progress-circle-value-font-size, 0.875em);
|
|
56
|
-
}
|
|
57
|
-
&.ard-progress-circle-variant-full {
|
|
49
|
+
//! value
|
|
58
50
|
.ard-progress-circle-value {
|
|
59
|
-
|
|
51
|
+
position: absolute;
|
|
52
|
+
left: 50%;
|
|
53
|
+
top: 50%;
|
|
54
|
+
transform: translate(-50%, -50%);
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
font-size: var(--ard-progress-circle-value-font-size, 0.875em);
|
|
57
|
+
}
|
|
58
|
+
&.ard-progress-circle-variant-full {
|
|
59
|
+
.ard-progress-circle-value {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
}
|