-
Notifications
You must be signed in to change notification settings - Fork 7
/
styles.css
214 lines (193 loc) · 5.98 KB
/
styles.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
html, body {
height: 100%;
margin: 0;
padding: 0;
}
#main {
position: relative;
background-color: #141414;
background-image: -webkit-linear-gradient(top, #CCC, #EEE 100%);
background-image: -moz-linear-gradient(top, #CCC, #EEE 100%);
background-image: -ms-linear-gradient(top, #CCC, #EEE 100%);
background-image: -o-linear-gradient(top, #CCC, #EEE 100%);
background-image: linear-gradient(top, #CCC, #EEE 100%);
height: 100%;
min-height: 800px;
color: #333;
font: 300 15px/1 Verdana;
}
#main:before {
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -moz-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -ms-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -o-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
position: absolute;
content: '';
top: 0; right: 0; bottom: 0; left: 0;
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
body {
text-shadow: 1px 1px 1px rgba(255, 255, 255, .5);
}
.wrapper {
position: relative;
width: 500px;
height: 900px;
position: absolute;
top: 50%; left: 50%;
margin-left: -250px;
margin-top: -450px;
}
h1, h2 {
font: bold 60px/1 'Ubuntu';
color: rgba(40, 40, 40, 0.8);
text-shadow: 1px 2px 3px #DDD, 0 0 0 #000, 1px 2px 3px #DDD;
letter-spacing: -5px;
}
h2 {
font-size: 30px;
letter-spacing: -2px;
text-shadow: 1px 2px 3px #DDD, 0 0 0 #222, 1px 2px 3px #DDD;
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
input[type="range"] {
width: 100%;
}
.range {
position: relative;
}
.range input {
position: absolute;
text-align: left;
direction: ltr;
left: -9999px;
}
/* legend */
.range .legend {
font-size: 16px;
position: absolute;
top: -25px;
left: 0;
right: 0;
z-index: 1;
}
.range .legend .label {
padding-top: 55px;
float: left;
text-align: center;
height: 30px;
line-height: 30px;
}
.range .legend .label:first-child {
text-align: left;
}
.range .legend .label:last-child {
text-align: right;
}
.range .legend .label:empty {
position: relative;
}
.range .legend .label:empty:before {
content: '';
position: absolute;
width: 1px;
top: 62px; left: 50%; bottom: 7px;
background: #CCC;
border-left: 1px solid white;
}
.range .legend .label:empty:first-child:before {
left: 20px; /* btn half size */
}
.range .legend .label:empty:last-child:before {
left: auto;
right: 20px; /* btn half size */
}
.range .legend .label.active {
-webkit-transition: 0.2s all ease-out;
-moz-transition: 0.2s all ease-out;
-o-transition: 0.2s all ease-out;
transition: 0.2s all ease-out;
color: #8D8DAC;
text-shadow: 1px 1px 1px #CCC;
}
/* bar, fill, btn */
.range .bar,
.range .fill {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
height: 10px;
}
.range .bar {
position: relative;
margin-top: 50px;
margin-bottom: 100px;
margin-left: 20px; /* btn half size */
margin-right: 20px; /* btn half size */
background: #999;
border-bottom: 1px solid rgba(255, 255, 255, .9);
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.05);
-o-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.05);
}
.range .fill {
background: rgba(100, 100, 255, .2);
position: absolute;
top: 0; left: 0;
}
.range .btn {
margin-top: -16px;
position: absolute;
top: 0; left: -20px; /* btn half size */
width: 38px;
height: 38px;
z-index: 2;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, .8);
background-image: -webkit-radial-gradient(10px 10px, circle cover, #FFF, #DDD);
background-image: -moz-radial-gradient(10px 10px, circle cover, #FFF, #DDD);
background-image: -o-radial-gradient(10px 10px, circle cover, #FFF, #DDD);
background-image: radial-gradient(10px 10px, circle cover, #FFF, #DDD);
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
-o-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
}
.range .btn:active {
border-color: rgba(255, 255, 255, .5);
top: 1px;
-webkit-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
-o-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
.range.inside .bar{
margin-left: 0;
margin-right: 0;
}
.range.inside .btn {
left: 0;
}
.range.inside .fill {
padding-right: 20px; /* btn half size */
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
.range .fill,
.range .btn {
-webkit-transition: 0.2s all ease-out;
-moz-transition: 0.2s all ease-out;
-o-transition: 0.2s all ease-out;
transition: 0.2s all ease-out;
}
.range.moving .fill,
.range.moving .btn {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}