-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
239 lines (191 loc) · 4.8 KB
/
style.css
File metadata and controls
239 lines (191 loc) · 4.8 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
.rating_meter {
border: 4px solid;
border-top-color: rgba(0,0,0,0.4);
border-right-color: rgba(0,0,0,0.3);
border-bottom-color: rgba(0,0,0,0.3);
border-left-color: rgba(0,0,0,0.5);
margin: 60px auto;
border-radius: 50px;
position: relative;
box-sizing: content-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-webkit-tap-highlight-color:rgba(0,0,0,0);
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.rating_meter ul.marking {
position: absolute;
z-index: 3;
width: 100%;
height: 100%;
list-style-type: none;
margin: 0px;
padding: 0px;
display: -webkit-flex;
display: flex;
top: 0;
left: 0;
}
.rating_meter ul.marking li {
-webkit-flex-grow: 1;
flex-grow: 1;
}
.rating_meter ul.marking li span {
font-size: 11px;
color: #b8b8b8;
}
.rating_meter.minified ul.marking li span {
display: none;
}
.rating_meter .currentGrade {
width: 50px;
height: 14px;
position: absolute;
font-size: 14px;
text-align: center;
}
.rating_meter.minified .currentGrade{
display: none;
}
.rating_meter .scale {
position: absolute;
z-index: 1;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 50px;
overflow: hidden;
}
.rating_meter .filling {
width: 100%;
height: 100%;
}
.rating_meter .overlay {
position: absolute;
z-index: 4;
top: 0;
right: 0;
background: #fff;
}
/* Vertical orientation */
.rating_meter.vertical {
width: 30px;
height: 300px;
}
.rating_meter.vertical.small {
width: 15px;
height: 150px;
}
.rating_meter.vertical ul.marking {
-webkit-flex-direction: column;
flex-direction: column;
}
.rating_meter.vertical ul.marking li {
border-bottom: 1px solid #919191;
}
.rating_meter.vertical ul.marking li:last-child {
border: none;
}
.rating_meter.vertical ul.marking li span {
padding-left: 150%;
}
.rating_meter.vertical .filling {
background: -moz-linear-gradient(top, #00FBC8 0%, #1C57EC 50%, #C244C5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00FBC8), color-stop(50%,#1C57EC), color-stop(100%,#C244C5));
background: -webkit-linear-gradient(top, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: -o-linear-gradient(top, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: -ms-linear-gradient(top, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: linear-gradient(to bottom, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00FBC8',endColorstr='#C244C5',GradientType=0);
}
.rating_meter.vertical .overlay {
left: 0;
bottom: 0;
}
.rating_meter.vertical svg {
position: absolute;
}
.rating_meter.vertical .currentGrade {
height: 14px;
position: absolute;
left: 0;
font-size: 14px;
bottom: -21px;
}
/* End vertical orientation */
/* Horizontal orientation */
.rating_meter.horizontal {
width: 300px;
height: 50px;
}
.rating_meter.horizontal.small {
width: 150px;
height: 15px;
}
.rating_meter.horizontal ul.marking {
-webkit-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.rating_meter.horizontal ul.marking li {
border-left: 1px solid #919191;
text-align: center;
}
.rating_meter.horizontal ul.marking li:last-child {
border: none;
}
.rating_meter.horizontal ul.marking li span {
position: absolute;
top: 150%;
}
.rating_meter.horizontal .filling {
background: -moz-linear-gradient(top, #00FBC8 0%, #1C57EC 50%, #C244C5 100%);
background: -webkit-gradient(linear, top top, left bottom, color-stop(0%,#00FBC8), color-stop(50%,#1C57EC), color-stop(100%,#C244C5));
background: -webkit-linear-gradient(right, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: -o-linear-gradient(right, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: -ms-linear-gradient(right, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
background: linear-gradient(to left, #00FBC8 0%,#1C57EC 50%,#C244C5 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C244C5',endColorstr='#00FBC8',GradientType=1);
}
.rating_meter.horizontal .overlay {
left: 0;
bottom: 0;
}
.rating_meter.horizontal svg {
position: absolute;
top: 0;
}
.rating_meter.horizontal .currentGrade {
width: 50px;
height: 14px;
position: absolute;
right: -73px;
font-size: 14px;
bottom: 0;
text-align: center;
}
/* End horizontal orientation */
/* No flex support */
.rating_meter.no_flex ul.marking {
display: table;
border-collapse: collapse;
table-layout: fixed;
}
.rating_meter.vertical.no_flex ul.marking li {
display: table-row;
border-bottom: 1px solid #919191;
}
.rating_meter.vertical.no_flex ul.marking li:last-child {
border: none;
}
.rating_meter.horizontal.no_flex ul.marking {
direction: rtl;
}
.rating_meter.horizontal.no_flex ul.marking li {
direction: ltr;
display: table-cell;
}
/* End no flex support */