-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
55 lines (39 loc) · 1.05 KB
/
style.css
File metadata and controls
55 lines (39 loc) · 1.05 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
html, body {
margin: 0;
padding: 0;
}
canvas {
display: block;
}
/* Styles the whole slider */
.mySliders{
width: 80px;
background-color: transparent;
/* Removes some defaults */
-webkit-appearance: none;
}
/* These styles affect what happens when the cursor is focused on the slider (i.e. clicking it) */
.mySliders:focus {
/* Stops the default outline showing up */
outline: none;
}
/* This is the "track" that the slider sits on */
.mySliders::-webkit-slider-runnable-track {
background: #000000;
height: 10px;
-webkit-appearance: none;
/* Turns the cursor into the hand pointer icon when hovering over the slider */
cursor: pointer;
}
/* This is the moveable bit of the slider, known as the "thumb"*/
.mySliders::-webkit-slider-thumb {
width: 20px;
height: 22px;
background: #5500cc;
cursor: pointer;
-webkit-appearance: none;
/* negative top padding moves it up */
margin-top: -6px;
/* Border radius gives rounded corners, if they're big enough, you end up with circles */
border-radius: 2px;
}