-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
48 lines (42 loc) · 1.12 KB
/
style.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
/* by: ZIMONH src: https://github.com/zimonh/Stars-Rank
License: https://creativecommons.org/licenses/by-nc-sa/4.0/ */
.star-rank{
cursor: pointer;
margin: 0;
opacity:0;
position: absolute;
z-index: 1;
}
.rank{pointer-events: none;}
.rank > star > img,
.rank > star > halfstar > img{
height:auto;
position: absolute;
z-index:99;}
.rank > star > halfstar > img{position: relative;}
star{
display: inline-block;
position: relative;
text-align: left;}
input[type=range].star-rank {
-webkit-appearance: none;
position: relative;
top: 0;}
halfstar{
margin-left: 0;
overflow: hidden;
position: absolute;}
input[type=range].star-rank::-webkit-slider-runnable-track {
border: solid 1px black;
width: 100%;}
input[type=range].star-rank::-moz-range-track {
border: solid 1px black;
width: 100%;}
input[type=range].star-rank::-ms-track {
border: solid 1px black;
width: 100%;}
input[type=range].star-rank::-ms-thumb { width: 1px; }
input[type=range].star-rank::-moz-range-thumb { width: 1px; }
input[type=range].star-rank::-webkit-slider-thumb {
-webkit-appearance: none;
width: 1px;}