forked from mozilla/zamboni
/
reviews.less
88 lines (82 loc) · 1.94 KB
/
reviews.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@import 'lib';
.stars {
display: inline-block;
vertical-align: middle;
width: 63px;
height: 12px;
background: url(../../img/impala/stars.png) no-repeat left top;
text-indent: -9999px;
margin-right: 4px;
&.stars-4 { background-position: -13px 0; }
&.stars-3 { background-position: -26px 0; }
&.stars-2 { background-position: -39px 0; }
&.stars-1 { background-position: -52px 0; }
&.large {
display: block;
background: url(../../img/impala/stars-16.png) no-repeat left top;
width: 89px;
height: 16px;
&.stars-4 { background-position: -18px 0; }
&.stars-3 { background-position: -36px 0; }
&.stars-2 { background-position: -54px 0; }
&.stars-1 { background-position: -70px 0; }
}
}
.html-rtl .stars {
text-indent: 9999px;
margin-right: 0;
margin-left: 4px;
}
/* grouped ratings style */
.grouped_ratings {
font-family: @sans-stack;
color: #666;
li {
margin: 0;
padding: 0;
border: 0;
}
.rating_bar {
border-left: 1px solid #999;
height: 20px;
float: left;
width: 0px;
overflow: visible;
width: 96px;
span.bar {
display:block;
height: 100%;
position: relative;
background: #ddd;
margin: .4em .5em 0 0;
height: 10px;
}
}
.num_ratings {
width: 1px;
position: absolute;
right: -5px;
top: -2px;
line-height: 12px;
font-size: 10px;
}
.stars {
float: left;
margin: 4px 8px 0 0 ;
}
}
.html-rtl .grouped_ratings {
.rating_bar {
border-left: 0;
border-right: 1px solid black;
float: right;
span.bar {
float: right;
margin: .4em 0 0 .5em;
}
span.num_ratings {
right: auto;
left: -4px;
}
}
}