-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
117 lines (98 loc) · 1.82 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
@import url("https://necolas.github.io/normalize.css/latest/normalize.css");
html {
font-family: sans-serif;
background: #fffefe;
}
h1 {
font-weight: 200;
width: fit-content;
margin: 0.5em auto;
margin-bottom: 1em;
}
p {
max-width: 50em;
margin: 1em auto;
padding: 0 2em;
}
#slidercontainer {
max-width: 40em;
margin: 0 auto;
margin-top: 6em;
display: grid;
grid-template-columns: min-content auto min-content;
}
#slider {
width: 100%;
grid-column: 2;
-webkit-appearance: none;
appearance: none;
height: 0.25em;
background: purple;
outline: none;
margin: auto auto;
}
#slider::-webkit-slider-thumb {
transition: transform .1s;
}
#slider::-moz-range-thumb {
transition: transform .1s;
}
#slider:hover::-webkit-slider-thumb {
background: #cc00cc;
transform: scale(1.5);
}
#slider:hover::-moz-range-thumb {
background: #cc00cc;
transform: scale(1.5);
}
#slider:hover {
background: #cc00cc;
}
#slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 1em;
height: 1em;
border-radius: 50%;
background: purple;
}
#slider::-moz-range-thumb {
width: 1em;
height: 1em;
background: purple;
border: none;
}
.sliderlabel {
width: auto;
margin: 0 1em;
}
@media screen and (max-width: 250px) {
.sliderlabel {
margin: 0 0.5em;
}
}
#maybelabel {
grid-column: 2;
margin: 0.5em auto;
}
#yeslabel {
grid-column-start: 3;
grid-row: 1;
}
#copylink {
grid-row: 3;
grid-column: 2;
margin: 1em auto;
height: 3em;
border: none;
border-radius: 1em;
min-width: 8em;
background: purple;
color: white;
}
@media (prefers-color-scheme: dark) {
html {
background-color: #333333;
color: #ffffff;
}
}