-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
112 lines (93 loc) · 1.96 KB
/
Copy pathstyle.css
File metadata and controls
112 lines (93 loc) · 1.96 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;600&display=swap");
* {
font-family: "Jost", sans-serif;
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root {
--blue-color: #357ded;
--gray-color: #77889926;
}
body {
/* images/3.png */
background-color: var(--blue-color);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
/* images/4.png */
background-color: #fff;
padding: 30px;
border-radius: 10px;
width: min(480px, 90%);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}
.container h3 {
font-size: 2rem; /* images/5.png */
}
/* range slider styles */
.range-slider {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding-block: 20px;
}
.range-slider.dragging {
cursor: ew-resize;
}
.range-slider > input {
/* images/7.png */
border: none;
outline: none;
background: var(--gray-color);
font-size: 1.5rem;
font-weight: 500;
padding: 5px 10px;
border-radius: 5px;
min-width: 64px;
}
.range {
width: 100%; /* images/6.png */
display: grid;
position: relative; /* images/8.png */
z-index: 5;
}
.range input {
grid-row: 2;
grid-column: 1; /* images/9.png */
pointer-events: none;
appearance: none;
background: transparent;
}
.range input::-webkit-slider-thumb {
pointer-events: auto;
appearance: none;
width: 24px;
height: 24px;
background: var(--blue-color);
border-radius: 50%;
cursor: pointer;
}
.slider {
position: absolute;
height: 10px;
width: 100%;
background: var(--gray-color);
border-radius: 5px;
top: 50%;
transform: translateY(-50%);
overflow: hidden;
z-index: -1;
}
.progress {
position: absolute;
height: 100%;
background: var(--blue-color);
/* images/10.png */
cursor: ew-resize;
}