PageRenderTime 92ms CodeModel.GetById 40ms app.highlight 11ms RepoModel.GetById 39ms app.codeStats 0ms

/kai/public/css/rating.css

https://bitbucket.org/bbangert/kai/
CSS | 67 lines | 61 code | 3 blank | 3 comment | 0 complexity | b371622c58e0bf5f08fab6fc4fe3e76e MD5 | raw file
 1#rating_area {
 2    float: right;
 3    text-align: right;
 4    margin-top: -35px;
 5}
 6
 7.rating{
 8    width:80px;
 9    height:16px;
10    padding:0;
11    list-style:none;
12    position:relative;
13    background: url(/css/images/star-matrix.gif) no-repeat 0 0;
14    display: block;
15    clear: none;
16    text-align: center;
17}
18
19.rating_text {
20    margin-right: 15px;
21    font-size: 12px;
22    color: #ababab;
23}
24/* add these classes to the ul to effect the change to the correct number of stars */
25.nostar {background-position:0 0;
26}
27.onestar {background-position:0 -16px}
28.twostar {background-position:0 -32px}
29.threestar {background-position:0 -48px}
30.fourstar {background-position:0 -64px}
31.fivestar {background-position:0 -80px}
32
33ul.rating li {
34    cursor: pointer;
35 /*ie5 mac doesn't like it if the list is floated\*/
36    float:left;
37    /* end hide*/
38    text-indent:-999em;
39    list-style: none;
40}
41ul.rating li a {
42    position:absolute;
43    left:0;
44    top:0;
45    width:16px;
46    height:16px;
47    text-decoration:none;
48    z-index: 200;
49}
50ul.rating li.one a {left:0}
51ul.rating li.two a {left:16px;}
52ul.rating li.three a {left:32px;}
53ul.rating li.four a {left:48px;}
54ul.rating li.five a {left:64px;}
55ul.rating li a:hover {
56    z-index:2;
57    width:80px;
58    height:16px;
59    overflow:hidden;
60    left:0; 
61    background: url(/css/images/star-matrix.gif) no-repeat 0 0
62}
63ul.rating li.one a:hover {background-position:0 -96px;}
64ul.rating li.two a:hover {background-position:0 -112px;}
65ul.rating li.three a:hover {background-position:0 -128px}
66ul.rating li.four a:hover {background-position:0 -144px}
67ul.rating li.five a:hover {background-position:0 -160px}