This repository was archived by the owner on Nov 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.css
More file actions
77 lines (67 loc) · 2.11 KB
/
Copy pathindex.css
File metadata and controls
77 lines (67 loc) · 2.11 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
/* Basscss Input Range */
.input-range {
vertical-align: middle;
background-color: transparent;
padding-top: var(--form-field-padding-y);
padding-bottom: var(--form-field-padding-y);
color: inherit;
background-color: transparent;
-webkit-appearance: none;
}
.input-range::-webkit-slider-thumb {
position: relative;
width: var(--range-thumb-width);
height: var(--range-thumb-height);
cursor: pointer;
margin-top: var(--range-thumb-offset);
border-radius: var(--border-radius);
background-color: currentcolor;
-webkit-appearance: none;
}
/* Touch screen friendly pseudo element */
.input-range::-webkit-slider-thumb:before {
content: '';
display: block;
position: absolute;
top: calc( -.5 * var(--range-thumb-pseudo-size) + (.5 * var(--range-thumb-height)) );
left: calc( (-.5 * var(--range-thumb-pseudo-size)) + (.5 * var(--range-thumb-width)) );
width: var(--range-thumb-pseudo-size);
height: var(--range-thumb-pseudo-size);
opacity: 0;
}
.input-range::-moz-range-thumb {
width: var(--range-thumb-width);
height: var(--range-thumb-height);
cursor: pointer;
border-radius: var(--border-radius);
border-color: transparent;
border-width: 0;
background-color: currentcolor;
}
.input-range::-webkit-slider-runnable-track {
height: var(--range-track-height);
cursor: pointer;
border-radius: var(--border-radius);
background-color: var(--darken-3);
}
.input-range::-moz-range-track {
height: var(--range-track-height);
cursor: pointer;
border-radius: var(--border-radius);
background-color: var(--darken-3);
}
.input-range:focus {
outline: none;
}
:root {
--form-field-padding-x: .5rem;
--form-field-padding-y: .5rem;
--form-field-height: 2.25rem;
--border-radius: 3px;
--darken-3: rgba(0, 0, 0, .25);
--range-thumb-width: var(--form-field-padding-x);
--range-thumb-height: calc( var(--form-field-height) - (var(--form-field-padding-y) * 2) );
--range-track-height: calc( var(--form-field-padding-y) / 2 );
--range-thumb-offset: calc( var(--range-thumb-height) / -2 + (var(--range-track-height) / 2) );
--range-thumb-pseudo-size: var(--form-field-height);
}