-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
57 lines (50 loc) · 1.57 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
.color-picker{
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: 1px solid #aaa;
height: 20px;
width: 12px;
border-radius: 5px;
background: white;
cursor: pointer;
}
input[type=range]::-moz-range-thumb {
border: 1px solid #aaa;
height: 20px;
width: 10px;
border-radius: 3px;
background: white;
cursor: pointer;
}
input[type="number"] {
appearance: textfield;
-moz-appearance: textfield;
-webkit-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
}
.dark .color-picker input[type=range]::-moz-range-thumb,
.dark .color-picker input[type=range]::-webkit-slider-thumb {
background: red !important;
border-color: #ddd;
}
.color-picker .opacity-wrapper {
display: flex;
align-items: center;
--cdark: #57575723;
--clight: #9292920d;
background: linear-gradient(45deg, var(--cdark) 25%, transparent 25%, transparent 75%, var(--cdark) 75%, var(--cdark) 0px) 0 0 / 16px 16px repeat padding-box border-box, linear-gradient(45deg, var(--cdark) 25%, transparent 25%, transparent 75%, var(--cdark) 75%, var(--cdark) 0px) 8px 8px / 16px 16px repeat padding-box border-box, var(--clight);
}
.dark .color-picker .opacity-wrapper {
--cdark: #6b6b6b56;
--clight: #92929256;
}