/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
- #rating_area {
- float: right;
- text-align: right;
- margin-top: -35px;
- }
- .rating{
- width:80px;
- height:16px;
- padding:0;
- list-style:none;
- position:relative;
- background: url(/css/images/star-matrix.gif) no-repeat 0 0;
- display: block;
- clear: none;
- text-align: center;
- }
- .rating_text {
- margin-right: 15px;
- font-size: 12px;
- color: #ababab;
- }
- /* add these classes to the ul to effect the change to the correct number of stars */
- .nostar {background-position:0 0;
- }
- .onestar {background-position:0 -16px}
- .twostar {background-position:0 -32px}
- .threestar {background-position:0 -48px}
- .fourstar {background-position:0 -64px}
- .fivestar {background-position:0 -80px}
- ul.rating li {
- cursor: pointer;
- /*ie5 mac doesn't like it if the list is floated\*/
- float:left;
- /* end hide*/
- text-indent:-999em;
- list-style: none;
- }
- ul.rating li a {
- position:absolute;
- left:0;
- top:0;
- width:16px;
- height:16px;
- text-decoration:none;
- z-index: 200;
- }
- ul.rating li.one a {left:0}
- ul.rating li.two a {left:16px;}
- ul.rating li.three a {left:32px;}
- ul.rating li.four a {left:48px;}
- ul.rating li.five a {left:64px;}
- ul.rating li a:hover {
- z-index:2;
- width:80px;
- height:16px;
- overflow:hidden;
- left:0;
- background: url(/css/images/star-matrix.gif) no-repeat 0 0
- }
- ul.rating li.one a:hover {background-position:0 -96px;}
- ul.rating li.two a:hover {background-position:0 -112px;}
- ul.rating li.three a:hover {background-position:0 -128px}
- ul.rating li.four a:hover {background-position:0 -144px}
- ul.rating li.five a:hover {background-position:0 -160px}