-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
98 lines (88 loc) · 2.24 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
:root {
--blue: rgba(16, 68, 255, 0.9);
--yellow: rgba(255, 249, 132, 0.9);
--red: rgba(255, 41, 41, 0.9);
--light-grey: hsl(222, 15%, 92%);
--darker-grey: hsl(222, 15%, 72%);
--shadow: rgba(0,0,0,0.22);
}
body, html {
background: linear-gradient(133deg, var(--light-grey) 0%, var(--darker-grey) 100%);
margin: 0;
height: 100%;
font-family: Arial, Helvetica, sans-serif;
}
.custom-range-slider-wrapper {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 20px;
}
.custom-range-slider-decale {
width: 260px;
height: 260px;
padding: 60px 0;
}
.custom-range-slider {
-webkit-appearance: none;
width: min(600px, 100%);
border-radius: 22px;
background: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 50%, var(--red) 100%);
box-shadow:
inset 4px 0 6px 2px var(--shadow),
0 0 0 2px var(--darker-grey),
0 0 0 6px var(--light-grey),
0 0 12px 14px #dfe2ea;
}
.custom-range-slider::-webkit-slider-thumb {
-webkit-appearance: none;
}
.custom-range-slider:focus {
outline: none;
}
/* Styling the range "Thumb" */
.custom-range-slider::-webkit-slider-thumb {
-webkit-appearance: none;
height: 30px;
width: 68px;
border-radius: 16px;
background: white;
cursor: pointer;
margin-top: 1px;
box-shadow:
4px 0 6px 2px var(--shadow),
inset 0px 22px 25px 0 white,
inset 5px 0 5px var(--yellow),
inset -5px 0 15px var(--red);
transition: scale 0.1s ease-out;
}
.custom-range-slider::-webkit-slider-thumb:active {
scale: 0.9;
box-shadow:
2px 0 4px 2px var(--shadow),
inset 0px 22px 25px 0 white,
inset 5px 0 5px var(--yellow),
inset -5px 0 15px var(--red);
}
.footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
display: flex;
justify-content: center;
font-size: 0.8em;
padding: 6px 20px;
background-color: white;
box-sizing: border-box;
}
.bounce {
animation: bounce 0.7s forwards;
}
@keyframes bounce {
from, to { transform: scale(1, 1); }
25% { transform: scale(0.9, 1.1); }
50% { transform: scale(1.1, 0.9); }
75% { transform: scale(0.95, 1.05); }
}