-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrateanything.css
90 lines (86 loc) · 1.33 KB
/
rateanything.css
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
label {
padding: 0 0 0 50px;
width: 150px;
line-height: 40px;
float: left;
}
.rating_table {
background-color: #000;
color: #FFF;
text-align: center;
-moz-border-radius: 8px;
}
.rating_odd {
background-color: #1c1c1c;
}
.rating_even {
background-color: #222222;
}
.rating_table td {
border-top: 1px solid #252525;
border-bottom: 1px solid #252525;
padding: 0 15px 0 15px;
}
.rating_table th {
padding: 5px 0 5px 0;
}
.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating .current-rating{
background: url(stars.png) left -1000px repeat-x;
cursor: pointer;
}
.star-rating{
position:relative;
width:125px;
height:25px;
overflow:hidden;
list-style:none;
margin:0;
padding:0;
background-position: left top;
}
.star-rating li{
display: inline;
}
.star-rating a,
.star-rating .current-rating{
position:absolute;
top:0;
left:0;
text-indent:-1000em;
height:25px;
line-height:25px;
outline:none;
overflow:hidden;
border: none;
}
.star-rating a:hover,
.star-rating a:active{
background-position: left bottom;
}
.star-rating a.star1{
width:20%;
z-index:6;
}
.star-rating a.star2{
width:40%;
z-index:5;
}
.star-rating a.star3{
width:60%;
z-index:4;
}
.star-rating a.star4{
width:80%;
z-index:3;
}
.star-rating a.star5{
width:100%;
z-index:2;
}
.star-rating .current-rating{
z-index:1;
background-position: left center;
}