hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 .enable_progressbar() when(@enable-progressbar = true) {
A 2
3 //progressbar
4 @progress-bg: #e9e9e9;
5
6 .progress {
7  .border-radius(0);
8  .box-shadow(none);
9   background: @progress-bg;
10
11  height: 18px;
12
13  .progress-bar {
14     .box-shadow(none);
15     line-height:18px;
16  }
17
18  &[data-percent] {
19     &:after {
20          display: inline-block;
21          content: attr(data-percent);
22          color: #FFF;
23          position: absolute;
24          left: 0;
25          right: 0;
26          top: 0;
27          bottom: 0;
28          
29          line-height: 16px;
30          
31          text-align: center;
32          font-size: @base-font-size - 1;
33          //font-family: Verdana;
34     }
35  }
36  &.progress-yellow[data-percent]:after {
37     color: #996633;
38  }
39
40
41  &.progress-small {
42     height: 12px;
43     .progress-bar {
44         line-height: 10px;
45         font-size: @base-font-size - 2;
46     }
47     &[data-percent]:after {
48         line-height: 10px;
49         font-size: @base-font-size - 2;
50     }
51  }
52
53
54  &.progress-mini {
55     height: 9px;
56     .progress-bar {
57         line-height: 8px;
58         font-size: @base-font-size - 2;
59     }
60     &[data-percent]:after {
61         line-height: 8px;
62         font-size: @base-font-size - 2;
63     }
64  }
65 }
66
67
68
69 .progress-bar {
70  .progress-bar-variant(@progress-color);
71 }
72 .progress-bar-danger {
73  .progress-bar-variant(@progress-danger);
74 }
75 .progress-bar-success {
76  .progress-bar-variant(@progress-success);
77 }
78 .progress-bar-warning {
79  .progress-bar-variant(@progress-warning);
80 }
81 .progress-bar-pink {
82  .progress-bar-variant(@progress-pink);
83 }
84 .progress-bar-purple {
85  .progress-bar-variant(@progress-purple);
86 }
87 .progress-bar-yellow {
88  .progress-bar-variant(@progress-yellow);
89 }
90 .progress-bar-inverse {
91  .progress-bar-variant(@progress-inverse);
92 }
93 .progress-bar-grey {
94  .progress-bar-variant(@progress-grey);
95 }
96
97
98
99
100 /**
101 .progress {
102   position: relative;
103 }
104 .progress:before {
105   display: inline-block;
106   content: "";
107   
108   position: absolute;
109   left: 0;
110   right: 0;
111   top: 0;
112   bottom: 0;
113  
114   background: radial-gradient(9px 9px 0deg, circle cover, aqua 0%, rgba(0, 0, 255, 0) 100%, blue 95%);
115 }
116 */
117
118
119 }
120 .enable_progressbar();