-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
88 lines (87 loc) · 1.65 KB
/
style.css
File metadata and controls
88 lines (87 loc) · 1.65 KB
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
html, body {
margin: 0;
padding: 0;
}
html {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Work Sans', sans-serif;
text-align: center;
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
h1 {
color: #333;
font-weight: 500;
}
h3 {
color: #aaa;
font-weight: 500;
}
h4 {
color: #999;
font-weight: 500;
&:after {
content: "%";
padding-left: 1px;
}
}
// now for the good stuff 🎉
input[type="range"] {
outline: 0;
border: 0;
border-radius: 500px;
width: 400px;
max-width: 100%;
margin: 24px 0;
transition: box-shadow 0.2s ease-in-out;
// Chrome
@media screen and (-webkit-min-device-pixel-ratio:0) {
& {
overflow: hidden;
height: 40px;
-webkit-appearance: none;
background-color: #ddd;
}
&::-webkit-slider-runnable-track {
height: 40px;
-webkit-appearance: none;
color: #444;
margin-top: -1px;
transition: box-shadow 0.2s ease-in-out;
}
&::-webkit-slider-thumb {
width: 40px;
-webkit-appearance: none;
height: 40px;
cursor: ew-resize;
background: #fff;
box-shadow: -340px 0 0 320px #1597ff, inset 0 0 0 40px #1597ff;
border-radius: 50%;
transition: box-shadow 0.2s ease-in-out;
position: relative;
// top: 1px;
}
&:active::-webkit-slider-thumb {
background: #fff;
box-shadow: -340px 0 0 320px #1597ff, inset 0 0 0 3px #1597ff;
}
}
// Firefox
&::-moz-range-progress {
background-color: #43e5f7;
}
&::-moz-range-track {
background-color: #9a905d;
}
// IE
&::-ms-fill-lower {
background-color: #43e5f7;
}
&::-ms-fill-upper {
background-color: #9a905d;
}
}
}