@laser-ui/themes 0.0.1
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/LICENSE +21 -0
- package/README.md +5 -0
- package/_mixins.scss +5 -0
- package/_variables.scss +17 -0
- package/animations.scss +19 -0
- package/common.scss +9 -0
- package/components/accordion.scss +52 -0
- package/components/alert.scss +110 -0
- package/components/anchor.scss +69 -0
- package/components/avatar.scss +36 -0
- package/components/badge.scss +54 -0
- package/components/breadcrumb.scss +50 -0
- package/components/button.scss +245 -0
- package/components/card.scss +77 -0
- package/components/cascader.scss +313 -0
- package/components/checkbox.scss +194 -0
- package/components/circular-progress.scss +30 -0
- package/components/compose.scss +121 -0
- package/components/date-picker.scss +310 -0
- package/components/drawer.scss +113 -0
- package/components/dropdown.scss +156 -0
- package/components/empty.scss +27 -0
- package/components/fab.scss +293 -0
- package/components/form.scss +137 -0
- package/components/icon.scss +17 -0
- package/components/image.scss +213 -0
- package/components/input.scss +172 -0
- package/components/mask.scss +11 -0
- package/components/menu.scss +327 -0
- package/components/modal.scss +139 -0
- package/components/notification.scss +127 -0
- package/components/pagination.scss +134 -0
- package/components/popover.scss +197 -0
- package/components/progress.scss +125 -0
- package/components/radio.scss +203 -0
- package/components/rating.scss +75 -0
- package/components/select.scss +282 -0
- package/components/separator.scss +95 -0
- package/components/skeleton.scss +44 -0
- package/components/slider.scss +202 -0
- package/components/slides.scss +211 -0
- package/components/spinner.scss +43 -0
- package/components/stepper.scss +226 -0
- package/components/switch.scss +151 -0
- package/components/table.scss +297 -0
- package/components/tabs.scss +517 -0
- package/components/tag.scss +59 -0
- package/components/textarea.scss +69 -0
- package/components/time-picker.scss +212 -0
- package/components/timeline.scss +107 -0
- package/components/toast.scss +101 -0
- package/components/tooltip.scss +118 -0
- package/components/transfer.scss +122 -0
- package/components/tree-select.scss +218 -0
- package/components/tree.scss +169 -0
- package/components/upload.scss +367 -0
- package/components/wave.scss +36 -0
- package/index.scss +58 -0
- package/mixins/_polyfill.scss +34 -0
- package/mixins/_utils.scss +5 -0
- package/mixins/bem/_bem.scss +71 -0
- package/mixins/bem/_config.scss +4 -0
- package/mixins/bem/_function.scss +45 -0
- package/package.json +28 -0
- package/reboot.scss +5 -0
- package/root.scss +90 -0
- package/theme-dark.scss +62 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@use '../variables';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@mixin notification-root {
|
|
5
|
+
position: fixed;
|
|
6
|
+
z-index: var(--#{variables.$prefix}zindex-max);
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
##{variables.$prefix}notification-lt-root {
|
|
11
|
+
top: 20px;
|
|
12
|
+
left: 20px;
|
|
13
|
+
|
|
14
|
+
@include notification-root;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
##{variables.$prefix}notification-rt-root {
|
|
18
|
+
top: 20px;
|
|
19
|
+
right: 20px;
|
|
20
|
+
|
|
21
|
+
@include notification-root;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
##{variables.$prefix}notification-lb-root {
|
|
25
|
+
bottom: 20px;
|
|
26
|
+
left: 20px;
|
|
27
|
+
|
|
28
|
+
@include notification-root;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
##{variables.$prefix}notification-rb-root {
|
|
32
|
+
right: 20px;
|
|
33
|
+
bottom: 20px;
|
|
34
|
+
|
|
35
|
+
@include notification-root;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include mixins.b(notification) {
|
|
39
|
+
--color: var(--#{variables.$prefix}notification-color);
|
|
40
|
+
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
width: 380px;
|
|
44
|
+
max-width: calc(100vw - 40px);
|
|
45
|
+
padding: 12px 24px;
|
|
46
|
+
margin-bottom: 20px;
|
|
47
|
+
pointer-events: all;
|
|
48
|
+
background-color: var(--#{variables.$prefix}background-color);
|
|
49
|
+
border-radius: var(--#{variables.$prefix}border-radius);
|
|
50
|
+
outline: none;
|
|
51
|
+
box-shadow: var(--#{variables.$prefix}box-shadow-dialog);
|
|
52
|
+
|
|
53
|
+
@include mixins.m(success) {
|
|
54
|
+
--color: var(--#{variables.$prefix}notification-color, var(--#{variables.$prefix}color-success));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include mixins.m(warning) {
|
|
58
|
+
--color: var(--#{variables.$prefix}notification-color, var(--#{variables.$prefix}color-warning));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@include mixins.m(error) {
|
|
62
|
+
--color: var(--#{variables.$prefix}notification-color, var(--#{variables.$prefix}color-danger));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include mixins.m(info) {
|
|
66
|
+
--color: var(--#{variables.$prefix}notification-color, var(--#{variables.$prefix}color-primary));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include mixins.e(icon) {
|
|
70
|
+
padding: 4px 0;
|
|
71
|
+
margin-right: 10px;
|
|
72
|
+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
|
|
73
|
+
font-size: 32px;
|
|
74
|
+
color: var(--color);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include mixins.e(content) {
|
|
78
|
+
flex: 1 0 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include mixins.e(header) {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include mixins.e(title) {
|
|
87
|
+
flex: 1 0 0;
|
|
88
|
+
padding: 4px 0;
|
|
89
|
+
font-size: var(--#{variables.$prefix}font-size-title);
|
|
90
|
+
font-weight: var(--#{variables.$prefix}font-weight-bold);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@include mixins.e(close) {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
padding: 4px;
|
|
98
|
+
margin: 0 0 0 8px;
|
|
99
|
+
font: inherit;
|
|
100
|
+
font-size: 1.25em;
|
|
101
|
+
line-height: 1;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
vertical-align: top;
|
|
104
|
+
appearance: none;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
background-color: transparent;
|
|
107
|
+
border: none;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
outline: none;
|
|
110
|
+
transition:
|
|
111
|
+
color var(--#{variables.$prefix}animation-duration-base) linear,
|
|
112
|
+
background-color var(--#{variables.$prefix}animation-duration-base) linear;
|
|
113
|
+
|
|
114
|
+
&:hover,
|
|
115
|
+
&:focus {
|
|
116
|
+
background-color: var(--#{variables.$prefix}background-color-hover);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:active {
|
|
120
|
+
color: var(--#{variables.$prefix}color-dark-primary);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include mixins.e(description) {
|
|
125
|
+
padding: 1px 0 4px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@use '../variables';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@include mixins.b(pagination) {
|
|
5
|
+
--size: var(--#{variables.$prefix}pagination-size, var(--size-mini, 32px));
|
|
6
|
+
--font-size: var(--#{variables.$prefix}pagination-font-size, var(--font-size-mini, var(--#{variables.$prefix}font-size-medium)));
|
|
7
|
+
--button-padding-size: var(--#{variables.$prefix}pagination-button-padding-size, var(--button-padding-size-mini, 8px));
|
|
8
|
+
--gutter-x: var(--#{variables.$prefix}pagination-gutter-x, var(--gutter-x-mini, 6px));
|
|
9
|
+
--gutter-y: var(--#{variables.$prefix}pagination-gutter-y, var(--gutter-y-mini, 6px));
|
|
10
|
+
|
|
11
|
+
--#{variables.$prefix}select-size: var(--size);
|
|
12
|
+
--#{variables.$prefix}input-size: var(--size);
|
|
13
|
+
|
|
14
|
+
padding: 0;
|
|
15
|
+
font-size: var(--font-size);
|
|
16
|
+
|
|
17
|
+
@include mixins.e(row) {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
align-items: center;
|
|
21
|
+
margin: calc(-1 * var(--gutter-y)) calc(-0.5 * var(--gutter-x)) 0 calc(-0.5 * var(--gutter-x));
|
|
22
|
+
|
|
23
|
+
& > * {
|
|
24
|
+
padding-right: calc(var(--gutter-x) * 0.5);
|
|
25
|
+
padding-left: calc(var(--gutter-x) * 0.5);
|
|
26
|
+
margin-top: var(--gutter-y);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include mixins.m(mini) {
|
|
31
|
+
--size-mini: 24px;
|
|
32
|
+
--font-size-mini: var(--#{variables.$prefix}font-size-small);
|
|
33
|
+
--button-padding-size-mini: 4px;
|
|
34
|
+
--gutter-x-mini: 4px;
|
|
35
|
+
--gutter-y-mini: 2px;
|
|
36
|
+
|
|
37
|
+
@include mixins.e(button) {
|
|
38
|
+
&:not(.is-active) {
|
|
39
|
+
border-color: transparent;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include mixins.e(jump) {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
|
|
48
|
+
& > * + * {
|
|
49
|
+
margin-left: 4px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include mixins.e(button) {
|
|
54
|
+
position: relative;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
min-width: var(--size);
|
|
59
|
+
height: var(--size);
|
|
60
|
+
vertical-align: top;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
user-select: none;
|
|
63
|
+
border-radius: var(--#{variables.$prefix}border-radius);
|
|
64
|
+
outline: none;
|
|
65
|
+
transition:
|
|
66
|
+
border-color var(--#{variables.$prefix}animation-duration-base) linear,
|
|
67
|
+
color var(--#{variables.$prefix}animation-duration-base) linear;
|
|
68
|
+
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus {
|
|
71
|
+
color: var(--#{variables.$prefix}color-light-primary);
|
|
72
|
+
border-color: var(--#{variables.$prefix}color-light-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include mixins.when(disabled) {
|
|
76
|
+
color: var(--#{variables.$prefix}color-disabled);
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@include mixins.when(active) {
|
|
81
|
+
color: var(--#{variables.$prefix}color-primary);
|
|
82
|
+
border-color: var(--#{variables.$prefix}color-primary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include mixins.m(border) {
|
|
86
|
+
border: 1px solid var(--#{variables.$prefix}color-border);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@include mixins.m(number) {
|
|
90
|
+
padding: 0 var(--button-padding-size);
|
|
91
|
+
transition:
|
|
92
|
+
border-color var(--#{variables.$prefix}animation-duration-base) linear,
|
|
93
|
+
color var(--#{variables.$prefix}animation-duration-base) linear,
|
|
94
|
+
box-shadow var(--#{variables.$prefix}animation-duration-base) linear;
|
|
95
|
+
|
|
96
|
+
&:focus-visible {
|
|
97
|
+
box-shadow: 0 0 0 3px rgb(var(--#{variables.$prefix}color-primary-rgb) / var(--#{variables.$prefix}shadow-normal));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@include mixins.m(jump5) {
|
|
102
|
+
&:hover,
|
|
103
|
+
&:focus {
|
|
104
|
+
@include mixins.e(jump5-icon) {
|
|
105
|
+
opacity: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@include mixins.e(ellipsis) {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include mixins.e(jump5-icon) {
|
|
114
|
+
color: var(--#{variables.$prefix}color-primary);
|
|
115
|
+
opacity: 0;
|
|
116
|
+
transition: opacity var(--#{variables.$prefix}animation-duration-fast) linear;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@include mixins.e(ellipsis) {
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 0;
|
|
124
|
+
right: 0;
|
|
125
|
+
bottom: 0;
|
|
126
|
+
left: 0;
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
color: var(--#{variables.$prefix}color-disabled);
|
|
131
|
+
transition: opacity var(--#{variables.$prefix}animation-duration-fast) linear;
|
|
132
|
+
transform: scale(1.5);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
@use '../variables';
|
|
2
|
+
@use '../mixins';
|
|
3
|
+
|
|
4
|
+
@include mixins.b(popover) {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
outline: none;
|
|
12
|
+
|
|
13
|
+
@include mixins.m(top) {
|
|
14
|
+
@include mixins.e(arrow) {
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, 50%) rotate(45deg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include mixins.m(top-left) {
|
|
22
|
+
@include mixins.e(arrow) {
|
|
23
|
+
bottom: 0;
|
|
24
|
+
left: 20px;
|
|
25
|
+
transform: translate(0, 50%) rotate(45deg);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include mixins.m(top-right) {
|
|
30
|
+
@include mixins.e(arrow) {
|
|
31
|
+
right: 20px;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
transform: translate(0, 50%) rotate(45deg);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include mixins.m(right) {
|
|
38
|
+
@include mixins.e(arrow) {
|
|
39
|
+
top: 50%;
|
|
40
|
+
left: 0;
|
|
41
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include mixins.m(right-top) {
|
|
46
|
+
@include mixins.e(arrow) {
|
|
47
|
+
top: 12px;
|
|
48
|
+
left: 0;
|
|
49
|
+
transform: translate(-50%, 0) rotate(45deg);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include mixins.m(right-bottom) {
|
|
54
|
+
@include mixins.e(arrow) {
|
|
55
|
+
bottom: 12px;
|
|
56
|
+
left: 0;
|
|
57
|
+
transform: translate(-50%, 0) rotate(45deg);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@include mixins.m(bottom) {
|
|
62
|
+
@include mixins.e(arrow) {
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translate(-50%, -50%) rotate(45deg);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include mixins.m(bottom-left) {
|
|
70
|
+
@include mixins.e(arrow) {
|
|
71
|
+
top: 0;
|
|
72
|
+
left: 20px;
|
|
73
|
+
transform: translate(0, -50%) rotate(45deg);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include mixins.m(bottom-right) {
|
|
78
|
+
@include mixins.e(arrow) {
|
|
79
|
+
top: 0;
|
|
80
|
+
right: 20px;
|
|
81
|
+
transform: translate(0, -50%) rotate(45deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include mixins.m(left) {
|
|
86
|
+
@include mixins.e(arrow) {
|
|
87
|
+
top: 50%;
|
|
88
|
+
right: 0;
|
|
89
|
+
transform: translate(50%, -50%) rotate(45deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@include mixins.m(left-top) {
|
|
94
|
+
@include mixins.e(arrow) {
|
|
95
|
+
top: 12px;
|
|
96
|
+
right: 0;
|
|
97
|
+
transform: translate(50%, 0) rotate(45deg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@include mixins.m(left-bottom) {
|
|
102
|
+
@include mixins.e(arrow) {
|
|
103
|
+
right: 0;
|
|
104
|
+
bottom: 12px;
|
|
105
|
+
transform: translate(50%, 0) rotate(45deg);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include mixins.e(mask) {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
bottom: 0;
|
|
114
|
+
left: 0;
|
|
115
|
+
pointer-events: all;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@include mixins.e(content) {
|
|
119
|
+
position: absolute;
|
|
120
|
+
z-index: 1;
|
|
121
|
+
max-width: calc(100% - 32px);
|
|
122
|
+
pointer-events: all;
|
|
123
|
+
background-color: var(--#{variables.$prefix}background-color);
|
|
124
|
+
border-radius: var(--#{variables.$prefix}border-radius);
|
|
125
|
+
outline: none;
|
|
126
|
+
box-shadow: var(--#{variables.$prefix}box-shadow-popup);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@include mixins.e(arrow) {
|
|
130
|
+
position: absolute;
|
|
131
|
+
width: 6px;
|
|
132
|
+
height: 6px;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
background-color: inherit;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@include mixins.e(body) {
|
|
138
|
+
padding: 12px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@include mixins.e(header) {
|
|
142
|
+
position: relative;
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
padding: 6px 12px;
|
|
146
|
+
border-bottom: 1px solid var(--#{variables.$prefix}color-divider);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include mixins.e(header-title) {
|
|
150
|
+
@include mixins.utils-ellipsis;
|
|
151
|
+
|
|
152
|
+
flex: 1 0 0;
|
|
153
|
+
font-size: var(--#{variables.$prefix}font-size-title);
|
|
154
|
+
font-weight: var(--#{variables.$prefix}font-weight-bold);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include mixins.e(header-actions) {
|
|
158
|
+
@include mixins.polyfill-column-gap(6px);
|
|
159
|
+
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
flex-shrink: 0;
|
|
162
|
+
align-items: center;
|
|
163
|
+
|
|
164
|
+
.#{variables.$prefix}button {
|
|
165
|
+
--#{variables.$prefix}button-size: 20px;
|
|
166
|
+
--#{variables.$prefix}button-padding-size: 6px;
|
|
167
|
+
--#{variables.$prefix}button-font-size: 14px;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@include mixins.e(footer) {
|
|
172
|
+
@include mixins.polyfill-column-gap(6px);
|
|
173
|
+
|
|
174
|
+
position: relative;
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
padding: 0 12px 10px;
|
|
178
|
+
|
|
179
|
+
.#{variables.$prefix}button {
|
|
180
|
+
--#{variables.$prefix}button-size: 28px;
|
|
181
|
+
--#{variables.$prefix}button-padding-size: 10px;
|
|
182
|
+
--#{variables.$prefix}button-font-size: 14px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include mixins.m(left) {
|
|
186
|
+
justify-content: flex-start;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@include mixins.m(right) {
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@include mixins.m(center) {
|
|
194
|
+
justify-content: center;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../variables';
|
|
3
|
+
@use '../mixins';
|
|
4
|
+
|
|
5
|
+
@keyframes #{variables.$prefix}progress-line-wave {
|
|
6
|
+
0% {
|
|
7
|
+
opacity: 0.1;
|
|
8
|
+
transform: translateX(-100%) scaleX(0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
20% {
|
|
12
|
+
opacity: 0.5;
|
|
13
|
+
transform: translateX(-100%) scaleX(0);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
100% {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
transform: translateX(0) scaleX(1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include mixins.b(progress) {
|
|
23
|
+
--background-color: var(--#{variables.$prefix}progress-background-color, var(--#{variables.$prefix}background-color-indicator));
|
|
24
|
+
|
|
25
|
+
position: relative;
|
|
26
|
+
color: var(--color);
|
|
27
|
+
|
|
28
|
+
@include mixins.m(line) {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
|
|
32
|
+
@include mixins.e(label) {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
min-width: 2em;
|
|
35
|
+
margin-left: 8px;
|
|
36
|
+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include mixins.m(circle) {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
vertical-align: top;
|
|
44
|
+
|
|
45
|
+
@include mixins.e(label) {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 50%;
|
|
48
|
+
left: 50%;
|
|
49
|
+
transform: translate(-50%, -50%);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include mixins.m(dashboard) {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
vertical-align: top;
|
|
56
|
+
|
|
57
|
+
@include mixins.e(label) {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 50%;
|
|
60
|
+
left: 50%;
|
|
61
|
+
transform: translate(-50%, -50%);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@include mixins.m(success) {
|
|
66
|
+
--color: var(--#{variables.$prefix}progress-color, var(--#{variables.$prefix}color-success));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@include mixins.m(warning) {
|
|
70
|
+
--color: var(--#{variables.$prefix}progress-color, var(--#{variables.$prefix}color-warning));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include mixins.m(error) {
|
|
74
|
+
--color: var(--#{variables.$prefix}progress-color, var(--#{variables.$prefix}color-danger));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@include mixins.m(process) {
|
|
78
|
+
--color: var(--#{variables.$prefix}progress-color, var(--#{variables.$prefix}color-primary));
|
|
79
|
+
|
|
80
|
+
@include mixins.e(label) {
|
|
81
|
+
color: var(--#{variables.$prefix}color-text);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include mixins.e(line-track) {
|
|
86
|
+
position: relative;
|
|
87
|
+
flex: 1 0 0;
|
|
88
|
+
background-color: var(--background-color);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include mixins.e(line-bar) {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
bottom: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
background-color: var(--color);
|
|
98
|
+
border-radius: inherit;
|
|
99
|
+
transition:
|
|
100
|
+
opacity var(--#{variables.$prefix}animation-duration-slow) ease,
|
|
101
|
+
background-color var(--#{variables.$prefix}animation-duration-slow) ease,
|
|
102
|
+
width var(--#{variables.$prefix}animation-duration-slow) ease;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@include mixins.e(line-wave) {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 0;
|
|
108
|
+
right: 0;
|
|
109
|
+
bottom: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
background-color: map.get(variables.$colors, 'white');
|
|
112
|
+
border-radius: inherit;
|
|
113
|
+
animation: #{variables.$prefix}progress-line-wave 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
|
|
114
|
+
animation-fill-mode: both;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@include mixins.e(svg) {
|
|
118
|
+
circle {
|
|
119
|
+
transition:
|
|
120
|
+
opacity var(--#{variables.$prefix}animation-duration-slow) ease,
|
|
121
|
+
stroke var(--#{variables.$prefix}animation-duration-slow) ease,
|
|
122
|
+
stroke-dasharray var(--#{variables.$prefix}animation-duration-slow) ease;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|