-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
132 lines (119 loc) · 2.58 KB
/
style.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
/*
ignore this file, it's completely useless as none of it's components are being used
except for html, body and canvas
*/
$slider-bg:#FFF;
$slider-thumb: #62438a;
html, body {
margin: 5;
padding: 0;
}
canvas {
display: block;
}
/* BUTTON: https://getcssscan.com/css-buttons-examples (button-30) */
.button {
align-items: center;
appearance: none;
background-color: #e4e4e4;
border-radius: 12px;
border-width: 0;
box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px;
box-sizing: border-box;
color: #55576e;
cursor: pointer;
display: inline-flex;
font-family: "ShareTechMono-Regular",monospace;
height: 48px;
justify-content: center;
line-height: 1;
list-style: none;
overflow: hidden;
padding-left: 16px;
padding-right: 16px;
position: relative;
text-align: left;
text-decoration: none;
transition: box-shadow .15s,transform .15s;
user-select: none;
-webkit-user-select: none;
touch-action: manipulation;
white-space: nowrap;
will-change: box-shadow,transform;
font-size: 18px;
}
.button:focus {
box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px;
}
.button:hover {
box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px;
transform: translateY(-2px);
}
.button:active {
transform: translateY(2px);
}
/* SLIDER: https://codepen.io/fadzrinmadu/pen/WNrJWbG */
#slider {
-webkit-appearance: none;
width: 100%;
height: 7px;
border-radius: 3px;
}
/* Design slider button */
#slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 48px;
height: 48px;
cursor: pointer;
position: relative;
z-index: 3;
}
#selector {
height: 104px;
width: 48px;
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
}
.selectBtn {
height: 48px;
width: 48px;
background-image: url(https://fadzrinmadu.github.io/hosted-assets/range-slider-using-html-and-css/icon.png);
background-size: cover;
background-position: center;
border-radius: 50%;
position: absolute;
bottom: 0;
}
#selectValue {
width: 48px;
height: 40px;
position: absolute;
top: 0;
background: #ffd200;
border-radius: 4px;
text-align: center;
line-height: 45px;
font-size: 20px;
font-weight: bold;
}
#selectValue::after {
content: '';
border-top: 17px solid #ffd200;
border-left: 24px solid #000;
border-right: 24px solid #000;
position: absolute;
bottom: -14px;
left: 0;
}
#progressBar {
width: 50%;
height: 7px;
background: #ffd200;
border-radius: 3px;
position: absolute;
bottom: 4px;
left: 0;
}