-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstates.css
186 lines (167 loc) · 3.63 KB
/
states.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
/*
The glorious buttons.
*/
button {
position: relative;
width: 100px;
height: 40px;
color: #fbfbfb;
background: linear-gradient(to bottom, #4eb5e5 0%,#389ed5 100%); /* W3C */
border: none;
border-bottom: 4px solid #2b8bc6;
border-radius: 5px;
margin: 0 5px;
box-shadow: 0px 3px 0px 0px rgba(0,0,0,.2);
text-shadow: 0 0 1px rgba(0,0,0,.4);
font-size: 15px;
text-align: center;
text-indent: 0;
cursor: pointer;
}
button:active {
top: 1px;
box-shadow: 0px 2px 0px 0px rgba(0,0,0,.2);
}
/* Button pointing left */
button.prev {
text-align: right;
text-indent: 5px;
padding-right: 12px;
box-sizing: border-box;
}
button.prev:after {
content: "";
width: 0;
height: 0;
display: block;
position: absolute;
left: 0;
top: 0;
opacity: 0.6;
border-top: 20px solid #187dbc;
border-bottom: 20px solid #187dbc;
border-right: 16px solid transparent;
border-left: 20px solid #187dbc;
border-radius: 5px 0 0 5px;
}
/* Next button */
button.next {
text-align: left;
text-indent: 5px;
}
button.next:after {
content: "";
width: 0;
height: 0;
display: block;
border-top: 20px solid #187dbc;
border-bottom: 20px solid #187dbc;
border-left: 16px solid transparent;
border-right: 20px solid #187dbc;
position: absolute;
opacity: 0.6;
right: 0;
top: 0;
border-radius: 0 5px 5px 0;
}
/* Slider Styling, thanks range.css! */
.slider {
-webkit-appearance: none;
width: 100%;
margin: 6.5px 0;
background: inherit;
}
.slider:focus {
outline: none;
}
.slider::-webkit-slider-runnable-track {
width: 100%;
height: 3px;
cursor: pointer;
box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
background: #4eb5e5;
border-radius: 1.6px;
border: 0px solid #010101;
}
.slider::-webkit-slider-thumb {
box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49);
border: 1px solid #2b8bc6;
height: 16px;
width: 20px;
border-radius: 16px;
background: rgba(24, 125, 188, 0.93);
cursor: pointer;
-webkit-appearance: none;
margin-top: -6.5px;
}
.slider:focus::-webkit-slider-runnable-track {
background: #64bee8;
}
.slider::-moz-range-track {
width: 100%;
height: 3px;
cursor: pointer;
box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
background: #4eb5e5;
border-radius: 1.6px;
border: 0px solid #010101;
}
.slider::-moz-range-thumb {
box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49);
border: 1px solid #2b8bc6;
height: 16px;
width: 20px;
border-radius: 16px;
background: rgba(24, 125, 188, 0.93);
cursor: pointer;
}
.slider::-ms-track {
width: 100%;
height: 3px;
cursor: pointer;
background: transparent;
border-color: transparent;
color: transparent;
}
.slider::-ms-fill-lower {
background: #38ace2;
border: 0px solid #010101;
border-radius: 3.2px;
box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
}
.slider::-ms-fill-upper {
background: #4eb5e5;
border: 0px solid #010101;
border-radius: 3.2px;
box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
}
.slider::-ms-thumb {
box-shadow: 0px 0px 3px rgba(43, 139, 198, 0.49), 0px 0px 0px rgba(55, 152, 212, 0.49);
border: 1px solid #2b8bc6;
height: 16px;
width: 20px;
border-radius: 16px;
background: rgba(24, 125, 188, 0.93);
cursor: pointer;
height: 3px;
}
.slider:focus::-ms-fill-lower {
background: #4eb5e5;
}
.slider:focus::-ms-fill-upper {
background: #64bee8;
}
/* Containers */
.state-container h2 {
text-align: center;
}
.controls-container {
display: flex;
flex-flow: row nowrap;
justify-content: center;
}
.slider-container {
text-align: center;
width: 75%;
margin: 1em auto;
}