forked from insin/control-panel-for-twitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.css
457 lines (429 loc) · 10.8 KB
/
options.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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
:root {
color-scheme: light dark;
}
body {
user-select: none;
padding: 0;
margin: 0;
/* XXX These are defaults for Chrome, do something else instead */
font-size: 13px;
font-family: Roboto, "Segoe UI", Tahoma, sans-serif;
}
body.browserAction {
min-width: 450px;
}
body.iOS.browserAction {
min-width: 0;
}
body.mobile .desktop,
body.desktop .mobile,
body:not(.chronological) .chronological,
body:not(.debug) .debug,
body:not(.disabledHomeTimeline) .disabledHomeTimeline,
body:not(.fullWidthContent) .fullWidthContent,
body:not(.hidingBookmarkButton) .hidingBookmarkButton,
body:not(.hidingExploreNav) .hidingExploreNav,
body:not(.hidingMetrics) .hidingMetrics,
body:not(.hidingQuotesFrom) #hideQuotesFromDetails,
body:not(.hidingSidebarContent) .hidingSidebarContent,
body:not(.hidingTwitterBlueReplies) .hidingTwitterBlueReplies,
body:not(.iOS.safari) .toggle,
body:not(.mutingQuotes) #mutedQuotesDetails,
body:not(.showingBlueReplyFollowersCount) .showingBlueReplyFollowersCount,
body:not(.uninvertedFollowButtons) .uninvertedFollowButtons {
display: none;
}
#showDebugOptions.clickable {
cursor: pointer;
user-select: none;
}
label {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 4px 12px;
margin: 8px 0;
cursor: pointer;
}
label.button button {
margin-left: 12px;
}
summary {
padding-left: 12px;
padding-top: 4px;
padding-bottom: 4px;
margin-top: 8px;
margin-bottom: 8px;
cursor: pointer;
}
input[type=checkbox],
select {
cursor: pointer;
}
input[type=checkbox] {
margin-left: 12px;
flex-shrink: 0;
}
section.group > label:not(.checkbox) {
cursor: default;
}
section:not(:first-of-type) {
border-top: 1px solid #f0f0f0;
}
section.group > section {
margin-left: 40px;
}
section.group > label {
margin-bottom: 12px;
}
section.group > section > * {
color: rgb(95, 99, 104);
padding-left: 0;
}
section.group > p {
margin: 0 0 12px 40px;
font-size: 12px;
}
section.group > section > p {
margin: 0 60px 12px 0;
font-size: 12px;
}
#mutedQuotes p {
white-space: pre-line;
}
/* Firefox overrides */
@-moz-document url-prefix() {
body {
font-family: inherit;
font-size: 15px;
}
body.browserAction {
min-width: auto;
max-width: 450px;
}
section:not(:first-of-type) {
border-color: #d7d7db;
}
section.group > p,
section.group > section > * {
color: rgb(91, 91, 102);
}
section.group > p,
section.group > section > p {
font-size: 14px;
}
}
/* Edge overrides */
body.edge {
font-family: "system-ui", sans-serif;
font-size: 14px;
}
body.edge section:not(:first-of-type) {
border-color: #B6B6B6;
}
body.edge section.group > label {
font-weight: 600;
}
body.edge section.group > p,
body.edge section.group > section > * {
color: #767676;
}
/* Safari overrides */
body.safari {
font-family: system-ui;
-webkit-user-select: none;
}
/* Safari overrides (macOS) */
body.macOS.safari form {
padding: 4px 0;
}
/* Space option groups */
body.macOS.safari form > section:not(:first-of-type) {
margin-top: 20px;
}
/* Add colons to option group labels */
body.macOS.safari section.group > label:not(.checkbox)::after {
content: ":";
}
body.macOS.safari form > section.group > label {
margin-bottom: 0;
}
/* Indent options to align with the toggle all checkbox if there is one */
body.macOS.safari section.group > section {
margin-left: 32px;
}
/* Align option group help text with options */
body.macOS.safari form > section.group > p {
margin: 12px 12px 12px 32px;
}
/* Don't display dividing lines between option groups or options */
body.macOS.safari section {
border-top: none;
}
/* Indent nested options to align with checkbox labels */
body.macOS.safari section.group > section > section {
margin-left: 8px;
}
/* Put controls next to their labels... */
body.macOS.safari label {
justify-content: start;
align-items: center;
padding-top: 0;
padding-bottom: 0;
}
/* ...except for muted quotes' Unmute button */
body.macOS.safari label.mutedQuote {
justify-content: space-between;
}
/* Put checkboxes before their labels */
body.macOS.safari section.checkbox > label,
body.macOS.safari label.checkbox {
flex-direction: row-reverse;
}
body.macOS.safari input[type=checkbox] {
margin-left: 0;
margin-right: 6px;
}
/* Put a period between labels and their buttons. */
body.macOS.safari label.button :is(div, span) {
margin-right: 6px
}
body.macOS.safari label.button span::after {
content: ".";
}
/* Add colons to dropdown labels */
body.macOS.safari section.select label {
display: block;
}
body.macOS.safari section.select span::after {
content: ": ";
display: inline-block
}
/* Align help text with checkbox labels */
body.macOS.safari section.checkbox > p {
margin-left: 20px;
margin-right: 12px;
}
body.macOS.safari p {
color: rgb(123, 123, 123) !important;
}
body.macOS.safari section.group > section > * {
color: inherit;
}
/* Safari overrides (iOS) */
body.iOS.safari {
background-color: rgb(240, 240, 245);
padding: 18px;
font-size: inherit;
}
body.iOS.safari label {
/* Prevent flash when labels are tapped */
-webkit-tap-highlight-color: transparent;
padding-left: 0;
padding-right: 18px;
}
/* Option groups should contain their options in a rounded box */
body.iOS.safari form > section {
background-color: white;
border-radius: 10px;
padding-left: 18px;
padding-bottom: 1px;
padding-top: 1px;
border-top: none !important;
}
body.iOS.safari form > section:not(:first-of-type) {
margin-top: 34px;
}
/* All options should have a dividing line */
body.iOS.safari section.group section {
border-top: 1px solid rgb(236, 236, 237);
}
/* Options should not be indented by default */
body.iOS.safari section.group > section {
margin-left: 0;
}
/* Groups which have a toggle for all their options should indent their options */
body.iOS.safari section.group > label.checkbox ~ section,
/* Nested groups should indent their options */
body.iOS.safari section.group > section.group > section {
margin-left: 18px;
}
/* Labelled option groups should display their label above the box */
body.iOS.safari form > section.labelled {
position: relative;
margin-top: 46px;
}
body.iOS.safari form > section:first-child.labelled {
margin-top: 12px;
}
body.iOS.safari form > section.labelled > label {
position: absolute;
top: -32px;
text-transform: uppercase;
font-size: 75%;
color: rgb(133, 133, 135);
}
body.iOS.safari form > section.labelled > label + section,
body.iOS.safari form > section.labelled > label + section.desktop + section {
border-top: none;
}
body.iOS.safari form > section.labelled > label + p {
margin-top: 12px;
margin-left: 0;
}
/* A checkbox options with nested options should indent their names */
body.iOS.safari section.checkbox > section:not(.group) > label {
padding-left: 18px
}
/* A checkbox option with nested group should indent it */
body.iOS.safari section.checkbox > section.group {
margin-left: 18px
}
body.iOS.safari summary {
padding-left: 0;
}
body.iOS.safari p {
font-size: inherit !important;
color: rgb(95, 99, 104) !important;
margin-right: 18px;
}
body.iOS.safari section.group > section > * {
color: inherit;
}
/* iOS-style toggles */
body.iOS.safari .checkbox input[type="checkbox"] {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
body.iOS.safari .checkbox .toggle {
position: relative;
display: inline-block;
min-width: 46px;
height: 26px;
background-color: #e6e6e6;
border-radius: 23px;
vertical-align: text-bottom;
transition: all 0.3s linear;
margin-left: 8px;
}
body.iOS.safari .checkbox .toggle::before {
content: "";
position: absolute;
left: 0;
width: 42px;
height: 22px;
background-color: #fff;
border-radius: 11px;
transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
transition: all 0.25s linear;
}
body.iOS.safari .checkbox .toggle::after {
content: "";
position: absolute;
left: 0;
width: 22px;
height: 22px;
background-color: #fff;
border-radius: 11px;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
transform: translate3d(2px, 2px, 0);
transition: all 0.2s ease-in-out;
}
body.iOS.safari .checkbox label:active .toggle::after,
body.iOS.safari label.checkbox:active .toggle:after {
width: 28px;
transform: translate3d(2px, 2px, 0);
}
body.iOS.safari .checkbox label:active input:checked + .toggle::after,
body.iOS.safari label.checkbox:active input:checked + .toggle::after {
transform: translate3d(16px, 2px, 0);
}
body.iOS.safari input:checked + .toggle {
background-color: #4BD763;
}
body.iOS.safari input:checked + .toggle::before {
transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}
body.iOS.safari input:checked + .toggle::after {
transform: translate3d(22px, 2px, 0);
}
body.iOS.safari .checkbox input:focus + .toggle {
outline: 5px auto Highlight;
outline: 5px auto -webkit-focus-ring-color;
}
/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
body {
background-color: #292a2d;
color: #e8eaed;
}
section:not(:first-of-type) {
border-color: #3f4042;
}
section.group > p,
section.group > section > * {
color: rgb(154, 160, 166);
}
/* Edge dark mode overrides */
body.edge {
background-color: #3B3B3B;
color: #A7A7A7;
}
body.edge section.group > label {
color: #fff;
}
body.edge section:not(:first-of-type) {
border-color: #737373;
}
body.edge section.group > p,
body.edge section.group > section > * {
color: #A7A7A7;
}
/* Firefox dark mode overrides */
@-moz-document url-prefix() {
body {
background-color: #23222b;
}
section:not(:first-of-type) {
border-color: #4e4d54;
}
section.group > p,
section.group > section > * {
color: rgb(191, 191, 201);
}
}
/* Safari dark mode overrides */
body.macOS.safari p {
color: rgb(184, 184, 184) !important;
}
body.iOS.safari {
background-color: rgb(0, 0, 0);
}
body.iOS.safari form > section {
background-color: rgb(28, 28, 30);
}
body.iOS.safari form > section.labelled > label {
color: rgb(115, 115, 121);
}
body.iOS.safari section.group section {
border-color: rgb(35, 35, 37);
}
body.iOS.safari p {
color: rgb(132, 132, 138) !important;
}
body.iOS.safari .checkbox .toggle {
background-color: rgb(57, 57, 61);
}
body.iOS.safari .checkbox .toggle::before {
background-color: rgb(57, 57, 61);
}
}
.mb-0 {
margin-bottom: 0 !important;
}