..
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 | @mixin progressbar-size($size: .5em) {
height: $size;
border-radius: #{$size/2};
&::-webkit-progress-bar {
border-radius: #{$size/2};
}
&::-webkit-progress-value {
border-radius: #{$size/2};
}
&::-moz-progress-bar {
border-radius: #{$size/2};
}
}
.progressbar {
@include progressbar-size();
background: var(--bordercolor-input, $pm-global-border);
color: $pm-primary;
appearance: none;
&::-webkit-progress-bar {
background-color: var(--bordercolor-input, $pm-global-border);
}
&::-webkit-progress-value {
background: $pm-primary;
transition: .25s width easing(easeInOutQuint);
}
&::-moz-progress-bar {
background: $pm-primary;
transition: .25s width easing(easeInOutQuint);
}
&::-ms-fill {
border-color: currentColor;
}
@each $variant, $color in (
disabled : darken($pm-global-muted, 25%),
running : $pm-global-info,
success : $pm-global-success,
warning : $pm-global-attention,
error : $pm-global-warning
) {
&--#{$variant} {
color: $color;
&::-webkit-progress-value {
background: $color;
}
&::-moz-progress-bar {
background: $color;
}
}
}
&.is-thin {
@include progressbar-size(.25em);
}
}
|
|