forked from yshiga/q2a-custom-vote-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-vote-button.css
75 lines (74 loc) · 1.24 KB
/
custom-vote-button.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
/* Custom Vote Button */
.qa-vote-buttons {
height: 40px;
}
.qa-vote-first-button {
top: 12px;
}
.qa-vote-one-button {
top: 12px;
}
.qa-netvote-count {
margin-top: 17px;
}
.qa-vote-up-button,
.qa-vote-up-hover,
.qa-vote-up-disabled,
.qa-voted-up-button,
.qa-voted-up-hover {
background: url(img/thumbs.png) no-repeat;
height: 30px;
width: 30px;
}
.qa-vote-up-button {
background-position: 0 0;
color: #f1c96b;
}
.qa-vote-up-disabled {
background-position: 0 -120px;
color: #CCC;
}
.qa-vote-up-hover,
.qa-vote-up-button:hover {
background-position: 0 -30px;
color: #f1c96b;
}
.qa-voted-up-button {
background-position: 0 -60px;
color: #f1c96b;
}
.qa-voted-up-hover,
.qa-voted-up-button:hover {
background-position: 0 -90px;
color: #f1c96b;
}
/* Vote avatars */
.voted-avatar-list {
margin-top: 10px;
}
.voted-avatar-list ul{
list-style-type: none;
}
li.qa-voted-avatar {
float: left;
margin: 3px 3px 0 0;
width:20px;
height:20px;
overflow:hidden;
position:relative;
display: block;
}
li.qa-voted-avatar .qa-avatar-link img {
max-width:140%;
min-width:100%;
width:auto;
min-height:100%;
max-height:140%;
height:auto;
position:absolute;
top:-40%;
right:-40%;
bottom:-40%;
left:-40%;
margin:auto;
}