-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathprogress.component.scss
More file actions
executable file
·95 lines (82 loc) · 1.87 KB
/
Copy pathprogress.component.scss
File metadata and controls
executable file
·95 lines (82 loc) · 1.87 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@import '../style/theme/color';
@import '../style/theme/corner';
@import '../style/core/_font';
@mixin ellipsis() {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
:host {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: nowrap;
.devui-progress-default-text {
width: fit-content;
margin: 0;
padding: 0 8px;
color: $devui-text;
font-size: $devui-font-size;
line-height: 1;
}
.devui-progress-line,
.devui-progress-circle {
flex: 1 1 auto;
position: relative;
}
.devui-progress-line {
background: $devui-range-item-hover-bg;
border-radius: $devui-border-radius-full;
.devui-progress-bar {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 100%;
transition: width 0.6s ease;
border-radius: $devui-border-radius-full;
&.devui-progress-bar-default-bg {
background-color: $devui-brand;
}
& > span {
color: $devui-light-text;
font-size: $devui-font-size;
position: absolute;
right: 8px;
height: 100%;
line-height: 100%;
@include ellipsis();
}
}
& > span {
color: $devui-light-text;
font-size: $devui-font-size;
display: block;
white-space: nowrap;
position: absolute;
left: 50%;
top: 0;
width: fit-content;
transform: translateX(-50%);
@include ellipsis();
}
}
.devui-progress-circle {
height: 100%;
.devui-progress-default-text {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
@include ellipsis();
}
.devui-progress-circle-trail {
stroke: $devui-dividing-line;
}
.devui-progress-circle-path {
stroke: $devui-brand;
}
}
}