progressbar.less
1.86 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.enable_progressbar() when(@enable-progressbar = true) {
//progressbar
@progress-bg: #DADADA;
.progress {
.border-radius(0);
.box-shadow(none);
background: @progress-bg;
height: 18px;
.progress-bar {
.box-shadow(none);
line-height:18px;
}
&[data-percent] {
&:after {
display: inline-block;
content: attr(data-percent);
color: #FFF;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
line-height: 16px;
text-align: center;
font-size: @baseFontSize - 1;
//font-family: Verdana;
}
}
&.progress-yellow[data-percent]:after {
color: #996633;
}
&.progress-small {
height: 12px;
.progress-bar {
line-height: 10px;
font-size: @baseFontSize - 2;
}
&[data-percent]:after {
line-height: 10px;
font-size: @baseFontSize - 2;
}
}
&.progress-mini {
height: 9px;
.progress-bar {
line-height: 8px;
font-size: @baseFontSize - 2;
}
&[data-percent]:after {
line-height: 8px;
font-size: @baseFontSize - 2;
}
}
}
.progress-bar {
.progress-bar-variant(@progress-color);
}
.progress-bar-danger {
.progress-bar-variant(@progress-danger);
}
.progress-bar-success {
.progress-bar-variant(@progress-success);
}
.progress-bar-warning {
.progress-bar-variant(@progress-warning);
}
.progress-bar-pink {
.progress-bar-variant(@progress-pink);
}
.progress-bar-purple {
.progress-bar-variant(@progress-purple);
}
.progress-bar-yellow {
.progress-bar-variant(@progress-yellow);
}
.progress-bar-inverse {
.progress-bar-variant(@progress-inverse);
}
.progress-bar-grey {
.progress-bar-variant(@progress-grey);
}
/**
.progress {
position: relative;
}
.progress:before {
display: inline-block;
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: radial-gradient(9px 9px 0deg, circle cover, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
}
*/
}
.enable_progressbar();