-
Notifications
You must be signed in to change notification settings - Fork 0
/
reddit_button.css
140 lines (129 loc) · 2.53 KB
/
reddit_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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.reddit_button {
margin-left: auto;
margin-right: auto;
width: 175px;
height: 40px;
border-radius: 5px;
background-color: #D8D8D8;
padding: 10px;
z-index: 2;
box-shadow: inset 2px 2px 1px rgba(0,0,0,.05);
}
.reddit_button_cover {
position: absolute;
z-index: 10;
background-color: rgba(0, 0, 0, 0.7);
width: 175px;
height: 40px;
border-radius: 5px;
padding: 10px;
margin-top: -10px;
margin-left: -10px;
-o-transition:.3s;
-ms-transition:.3s;
-moz-transition:.3s;
-webkit-transition:.3s;
transition:.3s;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.reddit_button_cover p {
font-family: arial;
font-weight: bold;
font-size: 15px;
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
color: #ffffff;
cursor: default;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.reddit_button_cover:hover {
background-color: rgba(0, 0, 0, 0.5);
margin-top: -20px;
}
.reddit_button_cover.activated {
-webkit-animation: reddit_button_activate .3s;
-moz-animation: reddit_button_activate .3s;
-ms-animation: reddit_button_activate .3s;
-o-animation: reddit_button_activate .3s;
animation: reddit_button_activate .3s;
}
.reddit_button_cover.activated.x {
display: none;
}
.reddit_button_active {
border-radius: 5px;
background-color: #3bb9ff;
width: 175px;
height: 38px;
border-bottom: 2px solid #3399ff;
z-index: 5;
cursor: pointer;
}
.reddit_button_active:hover {
background-color: #3bb4ef;
}
.reddit_button_active:active {
border: none;
margin-top: 2px;
}
@keyframes reddit_button_activate {
from {
opacity: 1;
margin-top: -20px;
}
to {
opacity: 0;
margin-top: -50px;
}
}
@-moz-keyframes reddit_button_activate {
from {
opacity: 1;
margin-top: -20px;
}
to {
opacity: 0;
margin-top: -50px;
}
}
@-webkit-keyframes reddit_button_activate {
from {
opacity: 1;
margin-top: -20px;
}
to {
opacity: 0;
margin-top: -50px;
}
}
@-ms-keyframes reddit_button_activate {
from {
opacity: 1;
margin-top: -20px;
}
to {
opacity: 0;
margin-top: -50px;
}
}
@-o-keyframes reddit_button_activate {
from {
opacity: 1;
margin-top: -20px;
}
to {
opacity: 0;
margin-top: -50px;
}
}