-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircularprogress.less
66 lines (60 loc) · 1.77 KB
/
circularprogress.less
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
@import 'mixins.less';
@complete: #319d22; //colour of completed progress bar
@incomplete: #9d2222; //colour of incomplete progress bar
@inner: #c3c3c3; //colour of interior of circle
@border: #c3c3c3; //colour of border round circle
.progress {
position:relative;
padding-bottom:100%;
.progressinner {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:@incomplete;
.border-radius( 10000px );
.border-box();
overflow:hidden;
border:solid 10px @border;
//.box-shadow( 0 0 0 10px @border );
.lpane,
.rpane {
content:"";
position:absolute;
top:-0.5%;
left:-0.5%;
width:50.5%;
height:101%;
overflow:hidden;
.cover {
position:absolute;
top:-5%;
left:100%;
width:100%;
height:110%;
background:@complete;
.transform-point( 0% 50% );
}
}
.rpane {
left:49.5%;
.cover {
left:auto;
right:100%;
.transform-point( 100% 50% );
}
}
.display {
position:absolute;
top:5%;
left:5%;
width:90%;
height:90%;
.border-radius( 1000px );
.border-box();
background:@inner;
text-align:center;
}
}
}