-
Notifications
You must be signed in to change notification settings - Fork 293
Expand file tree
/
Copy pathSpeedControl.css
More file actions
111 lines (91 loc) · 1.97 KB
/
SpeedControl.css
File metadata and controls
111 lines (91 loc) · 1.97 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
.SpeedControl {
user-select: none;
font-size: 1.1em;
background-color: var(--fg-color);
--padding: 0px;
display: flex;
flex-direction: column;
gap: 10px;
padding: 10px;
padding-bottom: 0px;
& > .options {
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
grid-gap: 3px;
& > button {
width: 100%;
text-align: center;
border: none;
padding: var(--padding) 0px;
&:focus {
outline: 1px solid var(--focus-color);
}
&.selected {
background-color: var(--speed-focus-bg-color);
color: var(--speed-focus-text-color);
}
}
}
& .pause-site-button {
display: flex;
justify-content: center;
margin-top: 5px;
}
& .pause-site-button button {
display: flex;
align-items: center;
justify-content: center;
background-color: #3a3a3a;
color: white;
border: none;
border-radius: 4px;
padding: 8px 12px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s;
}
& .pause-site-button button:hover {
background-color: #555;
}
& > .NumericControl {
margin-top: 15px;
button, input[type="text"] {
padding: var(--padding) 0px !important;
}
}
& > .slider {
display: grid;
grid-template-columns: max-content 1fr;
align-items: center;
margin-top: 15px;
column-gap: 5px;
& > svg {
color: var(--header-icon-color);
opacity: 0.5;
&.active {
opacity: 1;
color: var(--header-icon-active-color);
}
}
}
}
.NumericControl {
display: grid;
grid-template-columns: repeat(2, 50fr) 64fr repeat(2, 50fr);
column-gap: 5px;
align-items: stretch;
& > button {
font-size: 0.75em;
}
& > button, & input[type="text"] {
padding: none;
text-align: center;
}
& > .NumericInput > input[type="text"] {
padding: 2px 0;
}
& > .NumericInput {
font-size: 0.9em;
}
}