forked from aminomancer/uc.css.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uc-globals.css
507 lines (474 loc) · 24.6 KB
/
uc-globals.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
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
/* This Source Code Form is subject to the terms of the Creative Commons
* Attribution-NonCommercial-ShareAlike International License, v. 4.0.
* If a copy of the CC BY-NC-SA 4.0 was not distributed with this
* file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
* or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */
/* this stylesheet is where our basic custom variables are defined, especially colors.
this is required by almost every other stylesheet, both chrome and content.
plaintext documents use just uc-low-globals.css,
but other than that these variables should be available everywhere. */
@import url(chrome://userchrome/content/layout/uc-low-globals.css);
@font-face {
font-family: "Fira Code UC";
font-style: normal;
src: local("Fira Code"), local("Fira Code Light"), url(../fonts/FiraCode-VF.woff);
/* This enables some alternate glyphs and ligatures */
font-feature-settings: "ss01", "ss02", "cv19", "ss05", "ss07", "ss08", "cv14", "cv25", "cv28",
"cv32";
}
:root {
--ui-text-10: hsla(0, 0%, 100%, 0.1);
--ui-text-20: hsla(0, 0%, 100%, 0.2);
--ui-text-30: hsla(0, 0%, 100%, 0.3);
--ui-text-40: hsla(0, 0%, 100%, 0.4);
--ui-text-50: hsla(0, 0%, 100%, 0.5);
--ui-text-60: hsla(0, 0%, 100%, 0.6);
--ui-text-70: hsla(0, 0%, 100%, 0.7);
--ui-text-80: hsla(0, 0%, 100%, 0.8);
--ui-text-90: hsla(0, 0%, 100%, 0.9);
--ui-text-100: #fff;
--uc-accent-color: hsl(233, 59%, 8%);
--uc-frame-color: var(--uc-accent-color);
--uc-toolbar-bgcolor: hsl(233, 42%, 15%);
--uc-toolbar-color: var(--ui-text-100);
--uc-toolbar-field-color: hsl(240, 60%, 99%);
--uc-arrowpanel-background: hsl(233, 36%, 11%);
--uc-arrowpanel-color: hsl(213, 43%, 89%);
--uc-arrowpanel-very-faint: hsla(236, 100%, 83%, 0.05);
--uc-arrowpanel-faint: hsla(236, 100%, 83%, 0.1);
--uc-arrowpanel-dimmed: hsla(236, 100%, 83%, 0.17);
--uc-arrowpanel-dimmed-further: hsla(234, 100%, 83%, 0.25);
--uc-arrowpanel-dimmed-even-further: hsla(232, 100%, 85%, 0.3);
--uc-desaturate-faint: hsla(236, 60%, 83%, 0.1);
--uc-desaturate-semi-faint: hsla(236, 60%, 83%, 0.13);
--uc-desaturate-dimmed: hsla(236, 60%, 83%, 0.17);
--uc-desaturate-dimmed-further: hsla(234, 60%, 83%, 0.25);
--uc-desaturate-dimmed-even-further: hsla(232, 60%, 85%, 0.3);
--uc-content-text-a50: hsla(236, 100%, 85%, 0.5);
--uc-content-text-a80: hsla(0, 0%, 100%, 0.8);
--uc-panel-button-solid: hsl(234, 24%, 35%);
--uc-panel-box-solid: hsl(233, 29%, 18%);
--button-solid-hover-background: hsl(232, 29%, 26%);
--button-solid-active-background: hsl(234, 26%, 30%);
--button-solid-checked-background: hsl(232, 31%, 23%);
--uc-toolbarbutton-checked-background: hsla(236, 82%, 83%, 0.13);
--uc-toolbarbutton-hover-background: hsla(236, 82%, 83%, 0.17);
--uc-toolbarbutton-active-background: hsla(234, 82%, 83%, 0.22);
--uc-toolbarbutton-checked-active-background: hsla(232, 82%, 83%, 0.27);
--uc-toolbarbutton-badge-bgcolor: var(--lwt-toolbarbutton-icon-fill-attention);
--uc-panel-description-color: hsla(235, 48%, 89%, 70%);
--uc-panel-shortcut-color: hsla(235, 27%, 73%, 70%);
--uc-panel-shortcut-focus: hsla(235, 32%, 80%, 95%);
--uc-places-cell-focus-bgcolor: hsl(232, 30%, 19%);
--uc-places-cell-hover-bgcolor: hsl(232, 30%, 23%);
--light-on-dark-button-text-color: #fff;
--menupopup-inner-box-margin: 0px;
--uc-menupopup-shadow: none;
--uc-panel-shadow: none;
--searchbar-popup-border: 1px solid var(--uc-menu-border-color);
--searchbar-popup-border-radius: 0 0 4px 4px;
--searchbar-popup-box-shadow: 0 0 10px 3px hsla(0, 0%, 0%, 0.15);
--searchbar-popup-box-shadow-size: 15px; /* if you increase the blur or spread values in the variable above, increase this variable commensurately */
--uc-toolbarbutton-inner-padding: 6px;
--webextension-panel-border-radius: 5px;
--menupopup-margin: calc(0px - var(--menupopup-inner-box-margin));
--menupopup-background: transparent;
--menupopup-child-margin-block-start: calc(-4px - var(--menupopup-inner-box-margin));
--menupopup-child-margin-inline-start: calc(2px - var(--menupopup-inner-box-margin));
--menupopup-padding: 0px;
--menupopup-inner-padding-magnitude: 4px;
--menupopup-inner-padding: var(--menupopup-inner-padding-magnitude) 0;
--uc-panel-separator-margin-vertical: 4px;
--uc-panel-separator-margin-horizontal: 4px;
--uc-panel-separator-margin: var(--uc-panel-separator-margin-vertical)
var(--uc-panel-separator-margin-horizontal);
--uc-arrowpanel-menuitem-inline-margin: 4px;
--uc-arrowpanel-menuitem-padding-block: 6px;
--uc-arrowpanel-menuitem-padding-inline: 6px;
--uc-arrowpanel-root-padding: 12px;
--arrowpanel-subviewbutton-iconic-gap: 8px;
--context-iconic-margin-start: 5px;
--context-iconic-margin-end: 6px;
--context-iconic-margin: var(--context-iconic-margin-start, 5px)
var(--context-iconic-margin-end, 6px);
--context-checkbox-margin-start: calc(1px + var(--context-iconic-margin-start, 5px));
--context-checkbox-margin-end: calc(1px + var(--context-iconic-margin-end, 6px));
--context-checkbox-margin: var(--context-checkbox-margin-start, 6px)
var(--context-checkbox-margin-end, 7px);
--context-iconic-composite-width: calc(
16px + var(--context-iconic-margin-start) + var(--context-iconic-margin-end)
);
--context-padding-inline: var(--context-iconic-composite-width) 0px;
--panel-menulist-padding: 4px 6px;
--menulist-dropmarker-margin: 8px 0;
--menupopup-border-radius: 5px;
--panel-border-radius-mini: 3px;
--context-menuitem-border-radius: 2.6px;
--general-button-border-radius: 2.6px;
--menu-right-bg: none;
--menu-right-img: url(chrome://userchrome/content/menu-arrow.svg);
--menu-right-margin: 4px;
--menu-right-size: 14px;
--menu-separator-margin: 4px;
--uc-font-weight-extrabold: 700;
--uc-font-weight-bold: 600;
--uc-font-weight-semibold: 500;
--uc-font-weight-thin: 400;
--popup-on-popup-contrast-bg: hsl(233, 33%, 17%);
--autocomplete-background: var(--popup-on-popup-contrast-bg);
--ui-secondary-bg: hsl(234, 39%, 10%);
--ui-tertiary-bg: hsl(233, 39%, 8.5%);
--ui-quaternary-bg: hsl(233, 34%, 8.5%);
--global-focus-shadow-color: var(--purple-30-a50);
--global-focus-outline-color: var(--purple-30);
--global-focus-outline-width: 2px;
--global-focus-outline: var(--global-focus-outline-width) solid
var(--global-focus-outline-color);
--global-focus-shadow: 0 0 0 2px var(--global-focus-shadow-color),
0 0 0 2px var(--global-focus-outline-color);
--global-focus-outline-offset: -2px;
--transparent-img-background: center/16px repeat hsla(0, 0%, 80%)
url(chrome://userchrome/content/checker.svg);
--transparent-img-background-context: center/16px repeat
url(chrome://userchrome/content/checker-context.svg);
--acrylic-blur: blur(15px);
--acrylic-texture: url(chrome://userchrome/content/texture/lightnoise.png);
--acrylic-blue: hsla(233.3, 39.1%, 9%, 0.58);
--dialog-bgcolor: hsla(240, 5.9%, 6.7%, 0.85);
--dialog-box-bgcolor: hsla(232, 100%, 75%, 8%);
--dialog-box-bgcolor-dim: hsla(240, 100%, 70%, 3%);
--dialog-box-border-color: hsla(232, 100%, 85%, 0.2);
--dialog-box-border-hover: hsla(232, 100%, 85%, 0.3);
--blurred-dialog-border-color: hsla(240, 7%, 20%, 0.8);
--alertbox-bgcolor: var(--uc-content-box-background-dim);
--notification-menu-color: var(--uc-parent-page-color);
--ui-disabled-alpha: 0.5;
--uc-menu-disabled-color: hsla(213, 43%, 89%, var(--ui-disabled-alpha, 0.5));
/* this url is for the icon that displays in the identity box when entering
text in the urlbar, and on the new tab page. my script
searchModeIndicatorIcons.uc.js detects your default engine and looks for a
matching icon in chrome/resources/engines/ so for example if your default
engine is Google, it'll find google.svg in that folder (it comes with this
theme) and dynamically set this variable to the url for google.svg. if you
set your default engine to something that doesn't have a matching icon
included with the theme, you can add your own icon to this folder. just make
sure the file ends in .svg, .png, .jpg, or .jpeg and matches the name of the
default engine. the name of the engine is whatever appears in the search
shortcuts list in about:preferences#search. so let's say you download an
engine for amazon, and the name that appears in the list is "Search with
Amazon". technically, the script is capable of reducing "Search with Amazon"
to "amazon" and linking it to the included amazon icon. but if you want to
add an icon for a search engine that has spaces in its name, write it out in
lowercase without spaces. so "Search with Amazon" would become
"searchwithamazon" and "Duck Duck Go" would become "duckduckgo" for example.
if your search engine is displayed in non-latin characters then use exactly
those characters when naming the icon file. if the script still doesn't
work, you can override this directly in custom-chrome.css by adding this
rule:
:root{
--default-search-identity-icon: url(chrome://userchrome/content/engines/my-engine-icon.svg) !important;
}
*/
--default-search-identity-icon: url(chrome://userchrome/content/search-glass.svg);
--identity-box-solid-bg: hsl(233, 34%, 22%);
--identity-box-focus-bg: hsl(234, 34%, 23%);
--secure-color: hsl(119, 80%, 60%);
--secure-text-color: hsl(129, 100%, 70%);
--warning-color: hsl(355, 100%, 66%);
--uc-warning-background: hsla(2, 100%, 66%, 25%);
--warning-text-color: hsl(355, 100%, 70%);
--warning-icon-background: hsl(358, 86%, 63%);
--warning-icon-detail: hsl(354, 69%, 30%);
--warning-icon-stroke: hsl(358, 100%, 60%);
--low-warning-background: hsla(48, 100%, 66%, 0.2);
--low-warning-color: hsl(40, 100%, 57%);
--low-warning-text-color: hsl(40, 100%, 70%);
--low-warning-border-color: hsla(35, 70%, 76%, 0.2);
--low-warning-icon-background: hsl(44, 95%, 60%);
--low-warning-icon-detail: hsl(32, 52%, 35%);
--low-warning-icon-stroke: hsl(40, 93%, 53%);
--protection-idle-color: hsl(205, 100%, 67%);
--protection-active-color: hsl(358, 98%, 66%);
--update-badge-bg: hsl(125, 81%, 57%);
--update-badge-color: hsl(118, 89%, 24%);
--update-badge-inactive: hsl(227, 19%, 48%);
--attention-color: hsl(224, 100%, 71%);
--eom-warning-bg: hsla(48, 100%, 66%, 0.15);
--eom-warning-bg-hover: hsla(48, 100%, 75%, 0.23);
--eom-warning-bg-active: hsla(48, 100%, 80%, 0.27);
--eom-error-bg: hsla(2, 100%, 66%, 0.15);
--eom-error-bg-hover: hsla(2, 100%, 76%, 0.23);
--eom-error-bg-active: hsla(2, 100%, 80%, 0.27);
--uc-destructive-bgcolor: hsl(350.1, 82%, 56.2%);
--uc-destructive-hover-bgcolor: hsl(346, 86%, 46.6%);
--uc-destructive-active-bgcolor: hsl(345.8, 90%, 40%);
--uc-destructive-color: var(--ui-text-100);
--global-selection-bgcolor: hsla(245, 100%, 70%, 0.55);
--global-selection-color: white;
--global-selection-bgcolor-disabled: hsla(243, 35%, 65%, 0.45);
--ui-selection-bgcolor: hsla(0, 0%, 100%, 0.9);
--ui-selection-color: hsl(236, 20%, 16%);
--ui-selection-bgcolor-disabled: hsla(0, 0%, 100%, 0.7);
--content-selection-bgcolor: hsla(0, 0%, 100%, 0.8);
--content-selection-color: hsl(240, 4%, 10%);
--content-selection-bgcolor-disabled: hsla(0, 0%, 100%, 0.7);
--pdf-selection-bgcolor: hsl(245, 100%, 46.7%);
--pdf-highlight-bgcolor: hsl(345, 100%, 40%);
/* controls the color of the search highlights in about:preferences */
--solid-selection-bgcolor: var(--pink-action);
/* controls the color of the little tooltips that appear on search highlighted buttons in about:preferences */
--aboutPrefs-find-tags: var(--pink-action);
--uc-tab-background: var(--lwt-accent-color);
--uc-tab-selected: var(--uc-toolbar-bgcolor);
--uc-tab-hover: linear-gradient(hsl(231, 49%, 11%), hsl(233, 55%, 8%));
--uc-tab-pinned: linear-gradient(var(--lwt-accent-color), var(--uc-toolbar-bgcolor));
--uc-tab-multi: linear-gradient(hsl(231, 50%, 11%), hsl(233, 53%, 8%));
--uc-tab-multi-hover: linear-gradient(hsl(231, 47%, 13%), hsl(233, 51%, 10%));
--uc-tab-pinned-hover: var(--uc-toolbar-bgcolor);
--uc-tab-focused-highlight: hsl(231, 36%, 22%);
--uc-tab-focused-hover: linear-gradient(
color-mix(in srgb, var(--uc-tab-focused-highlight) 50%, var(--uc-toolbar-bgcolor)),
var(--uc-toolbar-bgcolor)
);
--multiselected-color: hsl(241, 50%, 51%);
/* width of the spacer between the tabs and the window control buttons. this
is basically the only drag space left, so treat it conservatively. I design
this theme based on my own use, and I very rarely move browser windows by
dragging them. so I can afford to make the spacers very small. you might
prefer a larger spacer width. override this in custom-chrome.css. */
--titlebar-spacer-width: 32px;
/* subtle gradient drawn behind the window control buttons. */
--titlebar-gradient: radial-gradient(
circle at 100% 0%,
hsl(231, 45%, 13%),
var(--uc-accent-color) 140px
);
--titlebar-gradient-left: radial-gradient(
circle at 0% 0%,
hsl(231, 45%, 13%),
var(--uc-accent-color) 140px
);
--titlebar-background: var(--lwt-accent-color) var(--titlebar-gradient);
--search-box-color: hsl(229, 32%, 23%);
--search-box-focus: hsl(229, 27%, 27%);
--search-box-null: hsl(230, 30%, 20%);
--search-box-focus-outline-color: var(--purple-30);
--textbox-button-hidden: hsla(240, 100%, 89%, 0);
--confirmation-hint-color: var(--ui-text-100);
--confirmation-hint-bgcolor: hsl(240, 60%, 59%);
--confirmation-hint-border-color: hsl(240, 60%, 59%);
--picture-in-picture-toggle-bgcolor: hsl(244, 100%, 63%);
--ui-textbox-bgcolor: hsl(233, 24%, 28%);
--ui-textbox-focus-bgcolor: hsl(232, 22%, 34%);
--ebp-menulist-background-color: hsl(232, 24%, 32%);
--ebp-menulist-menuitem-hover-background-color: hsl(232, 21%, 40%);
--ebp-menulist-separator-color: hsl(232, 21%, 43%);
--ebp-favicon-background-color: var(--dialog-bgcolor);
--ui-solid-button-bgcolor: var(--uc-arrowpanel-dimmed);
--ui-solid-button-hover-bgcolor: var(--uc-arrowpanel-dimmed-further);
--ui-solid-button-active-bgcolor: var(--uc-arrowpanel-dimmed-even-further);
--ebmp-hover-bgcolor: hsl(233, 24%, 33%);
--ebmp-focus-bgcolor: hsl(233, 24%, 38%);
--ebmp-double-focus-bgcolor: hsl(233, 22%, 43%);
--urlbar-base-font-weight: 400;
--urlbar-result-strong-font-weight: 400;
--urlbar-results-bgcolor: var(--ui-secondary-bg);
/* the width of a search one-off button in the urlbar */
--urlbar-one-offs-engine-width: 28px;
--loading-throbber-fill: hsl(225, 100%, 75%);
--busy-throbber-fill: hsl(218, 90%, 85%);
--sanitize-border-color: hsla(0, 0%, 5%, 0.2);
--menu-separator-color: hsl(233, 25%, 23%);
--urlbar-input-bgcolor: hsl(233, 28%, 25%);
--urlbar-input-bgcolor-brighter: hsl(233, 26%, 27%);
--urlbar-input-bgcolor-disabled: hsl(233, 30%, 21%);
--urlbar-dim-button-bgcolor: hsla(0, 0%, 0%, 0.09);
--uc-urlbar-container-height: 38px;
--uc-menubar-searchbar-width: 256px;
--uc-tab-min-height: 35px;
--tab-max-width: 100vw;
--pinned-tab-width: 36px;
--tabbrowser-arrowscrollbox-display: none;
/* how round should tab buttons be? e.g. the close button or the sound icon.
2px yields a rounded square. 50% yields a circle. this affects actual tab
buttons, as well as buttons in tab-like elements like the all-tabs menu and
my vertical tabs pane script. personally I've settled on circles for small
buttons, rounded squares for big buttons. */
--tab-button-border-radius: 2.6px;
--tree-row-height: 24px;
--menuitem-height: 26px;
--subviewbutton-height: 28px;
--subview-subheader-padding: 5px 3px;
--findbar-height: 22px;
--textbox-outline-transition-duration: 100ms;
--findbar-textbox-bg-transition-duration: 200ms;
--findbar-textbox-bg-notfound-transition-duration: 300ms;
--default-identity-icon: url(chrome://userchrome/content/info-filled.svg);
/* icon used for screenshot buttons. I prefer the second one, but use the
first one it if you prefer the vanilla icon */
/* --screenshot-icon: url(chrome://userchrome/content/skin/screenshot.svg); */
--screenshot-icon: url(chrome://userchrome/content/devtools/command-screenshot.svg);
--fxa-ui-img: url(chrome://userchrome/content/fxa/avatar-big.svg);
--uc-smooth-timing-function: cubic-bezier(0.07, 0.78, 0.21, 0.95);
--download-button-hover-bg: var(--button-hover-bgcolor);
--download-button-active-bg: var(--button-active-bgcolor);
/* if you prefer the old downloads panel highlight/hover gradient effect, uncomment this: */
/* --download-button-hue: 236.86;
--download-button-hover-bg: linear-gradient(
to right,
hsla(var(--download-button-hue), 100%, 81%, 0.15) 7.1%,
hsla(var(--download-button-hue), 94%, 80%, 0.13) 20.9%,
hsla(var(--download-button-hue), 94%, 80%, 0.1) 34.1%,
hsla(var(--download-button-hue), 97%, 78.94%, 0.07) 47.1%,
hsla(var(--download-button-hue), 96%, 78.94%, 0.04) 60%,
hsla(var(--download-button-hue), 95%, 76.94%, 0.02) 80%,
hsla(var(--download-button-hue), 90%, 73.94%, 0.005) 96.3%
);
--download-button-active-bg: linear-gradient(
to right,
hsla(var(--download-button-hue), 100%, 84%, 0.18) 7.1%,
hsla(var(--download-button-hue), 94%, 83%, 0.16) 20.9%,
hsla(var(--download-button-hue), 94%, 83%, 0.13) 34.1%,
hsla(var(--download-button-hue), 97%, 81.94%, 0.1) 47.1%,
hsla(var(--download-button-hue), 96%, 81.94%, 0.07) 60%,
hsla(var(--download-button-hue), 95%, 79.94%, 0.05) 80%,
hsla(var(--download-button-hue), 90%, 76.94%, 0.01) 96.3%
); */
--pink-action: hsl(340, 73%, 58%);
--purple-20: hsl(240, 100%, 80%);
--purple-25: hsl(240, 100%, 75%);
--purple-30: hsl(239, 100%, 70%);
--purple-30-a50: hsla(240, 100%, 70%, 0.5);
--purple-35: hsl(245, 100%, 65%);
--purple-40: hsl(250, 100%, 60%);
--purple-40-a10: hsla(250, 100%, 60%, 0.1);
--purple-40-a30: hsla(250, 100%, 60%, 0.3);
--purple-40-a50: hsla(250, 100%, 60%, 0.5);
--purple-45: hsl(250, 87%, 55%);
--purple-50: hsl(256, 87%, 50%) !important;
--purple-55: hsl(256, 87%, 45%);
--purple-50-a30: hsla(256, 87%, 50%, 0.3);
--purple-60: hsl(258, 95%, 40%) !important;
--purple-70: hsl(256, 97%, 30%);
--purple-80: hsl(254, 100%, 20%);
--pink-40: hsl(340, 73%, 60%);
--pink-35: hsl(340, 73%, 65%);
--pink-30: hsl(340, 73%, 70%);
--uc-parent-page-color: hsl(212, 43%, 90%);
--uc-parent-link-color: var(--purple-35);
--uc-parent-link-color-hover: var(--purple-30);
--uc-parent-link-color-active: var(--purple-30);
--uc-parent-primary-button-background: var(--purple-40);
--uc-parent-primary-button-background-hover: var(--purple-35);
--uc-parent-primary-button-background-active: var(--purple-30);
--uc-parent-primary-button-text-color: #fff;
--uc-content-page-background: var(--in-content-bg-dark);
--uc-content-page-background-light: hsl(240, 3%, 12%);
--uc-content-page-color: var(--uc-parent-page-color);
--uc-content-box-background: hsl(240, 2%, 14%);
--uc-content-box-background-odd: hsl(260, 3%, 19%);
--uc-content-box-background-dim: hsl(240, 2%, 12%);
--uc-content-box-border-color: hsla(240, 7%, 98%, 0.1);
--uc-content-button-background: hsla(240, 3%, 70%, 0.1);
--uc-content-button-background-hover: hsla(240, 4%, 70%, 0.15);
--uc-content-button-background-active: hsla(240, 5%, 70%, 0.19);
--uc-content-button-background-solid: hsl(240, 3%, 18%);
--uc-content-border-hover: var(--uc-content-button-background-hover);
--uc-checkbox-border-color: var(--dialog-box-border-color);
--uc-checkbox-checked-border-color: transparent;
--uc-checkbox-unchecked-bgcolor: var(--uc-arrowpanel-faint);
--uc-checkbox-unchecked-hover-bgcolor: var(--uc-arrowpanel-dimmed);
--uc-checkbox-unchecked-active-bgcolor: var(--uc-arrowpanel-dimmed-further);
--uc-checkbox-checked-bgcolor: var(--uc-parent-primary-button-background);
--uc-checkbox-checked-color: var(--uc-parent-primary-button-text-color);
--uc-checkbox-checked-hover-bgcolor: var(--uc-parent-primary-button-background-hover);
--uc-checkbox-checked-active-bgcolor: var(--uc-parent-primary-button-background-active);
--uc-switch-off-background: hsl(233, 15%, 32%);
--uc-switch-off-hover-background: hsl(233, 18%, 27%);
--uc-switch-off-active-background: hsl(233, 19%, 24.5%);
--uc-switch-off-hover-border: hsl(233, 15%, 32%);
accent-color: var(--purple-40);
}
:root[fxastatus="not_configured"] {
--fxa-ui-img: url(chrome://userchrome/content/fxa/avatar-empty-big.svg);
}
:root[fxastatus="login-failed"],
:root[fxastatus="unverified"] {
--fxa-ui-img: url(chrome://userchrome/content/fxa/avatar-alert-big.svg);
}
menupopup,
.in-menulist,
#ContentSelectDropdown,
popupnotification,
#customization-container,
#mainPopupSet panel {
--checkbox-border-color: var(--uc-checkbox-border-color) !important;
--checkbox-checked-border-color: var(--uc-checkbox-checked-border-color) !important;
--checkbox-unchecked-bgcolor: var(--uc-checkbox-unchecked-bgcolor) !important;
--checkbox-unchecked-hover-bgcolor: var(--uc-checkbox-unchecked-hover-bgcolor) !important;
--checkbox-unchecked-active-bgcolor: var(--uc-checkbox-unchecked-active-bgcolor) !important;
--checkbox-checked-bgcolor: var(--uc-checkbox-checked-bgcolor) !important;
--checkbox-checked-color: var(--uc-checkbox-checked-color) !important;
--checkbox-checked-hover-bgcolor: var(--uc-checkbox-checked-hover-bgcolor) !important;
--checkbox-checked-active-bgcolor: var(--uc-checkbox-checked-active-bgcolor) !important;
}
#protections-popup {
--button-primary-bgcolor: var(--purple-45) !important;
--button-primary-hover-bgcolor: var(--purple-35) !important;
--button-primary-active-bgcolor: var(--purple-30) !important;
--protections-popup-switch-off-background: color-mix(in srgb, currentColor 15%, transparent);
--protections-popup-switch-off-hover-background-custom: color-mix(
in srgb,
currentColor 20%,
transparent
);
--protections-popup-switch-off-active-background-custom: color-mix(
in srgb,
currentColor 23%,
transparent
);
--protections-popup-switch-off-hover-border-custom: color-mix(
in srgb,
currentColor 5%,
transparent
);
--protections-popup-switch-on-background: var(--purple-40);
--protections-popup-switch-on-hover-background-custom: var(--purple-50);
--protections-popup-switch-on-active-background-custom: var(--purple-55);
--protections-popup-switch-on-hover-border-custom: var(--purple-40);
}
:root[lwt-popup-brighttext] #protections-popup {
--protections-popup-switch-off-background: var(--uc-switch-off-background);
--protections-popup-switch-off-hover-background-custom: var(--uc-switch-off-hover-background);
--protections-popup-switch-off-active-background-custom: var(--uc-switch-off-active-background);
--protections-popup-switch-off-hover-border-custom: var(--uc-switch-off-hover-border);
}
/* SF Pro is a bit heavier than Segoe UI so adjust font weights on certain elements */
@supports -moz-bool-pref("userChrome.css.mac-ui-fonts") {
:root {
--uc-font-weight-extrabold: 600;
--uc-font-weight-bold: 500;
--uc-font-weight-semibold: 400;
--uc-font-weight-thin: 300;
}
}
@supports -moz-bool-pref("userChrome.css.menupopup-shadows") {
:root {
--menupopup-inner-box-margin: 8px !important;
--uc-menupopup-shadow: var(--tooltip-box-shadow) !important;
--uc-panel-shadow: var(--tooltip-box-shadow) !important;
}
}
/* you can remove the following rule if you want to be able to drag tabs across
the whole strip. but doing so causes some minor visual bugs with rounded outside
tab corners which really bother me for some reason. if you need to be able to
autoscroll while dragging, and the visual bugs bother you, then instead of
deleting this rule, you can simply disable rounded outside corners by setting
userChrome.tabs.rounded-outer-corners.disabled to false. this will mean only the
top corners are rounded, but it'll bring back the scroll buttons without any
visual bugs. */
@supports -moz-bool-pref("userChrome.tabs.rounded-outer-corners.disabled") {
:root {
--tabbrowser-arrowscrollbox-display: block;
}
}