-
Notifications
You must be signed in to change notification settings - Fork 27
/
uc-variables.css
292 lines (269 loc) · 16.6 KB
/
uc-variables.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
/* 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 is where we override firefox's built-in variables. often we'll make our
own variable in uc-globals, with a prefix like "--uc-" and override a built-in
variable to reference the new custom variable. this way we get to share all the
variables with content stylesheets. otherwise you might want to use
--arrowpanel-dimmed in a webextension popup, but find that it's missing because
docs do not inherit from <browser> elements. */
:root,
menupopup {
--lwt-accent-color: var(--uc-accent-color) !important;
--lwt-accent-color-inactive: var(--uc-accent-color) !important;
--lwt-frame: var(--uc-frame-color) !important;
--lwt-text-color: var(--uc-arrowpanel-color) !important;
--toolbar-field-focus: hsla(233, 25%, 28%, 85%) !important;
--toolbar-field-color: var(--uc-toolbar-field-color) !important;
--toolbar-field-focus-color: var(--uc-toolbar-field-color) !important;
--toolbar-field-background-color: hsla(233, 25%, 28%, 85%) !important;
--lwt-toolbar-field-highlight: var(--ui-selection-bgcolor) !important;
--lwt-toolbar-field-highlight-text: var(--ui-selection-color) !important;
--lwt-toolbar-field-highlight-disabled: var(--ui-selection-bgcolor-disabled) !important;
--input-bgcolor: var(--in-content-box-background) !important;
--input-color: inherit !important;
--input-border-color: var(--in-content-box-border-color) !important;
--identity-box-margin-inline: 3px !important;
--urlbar-box-bgcolor: var(--identity-box-solid-bg) !important;
--urlbar-box-focus-bgcolor: var(--button-bgcolor) !important;
--urlbar-box-hover-bgcolor: var(--button-hover-bgcolor) !important;
--urlbar-box-active-bgcolor: var(--button-active-bgcolor) !important;
--urlbar-box-text-color: inherit !important;
--urlbar-box-hover-text-color: var(--urlbar-box-text-color) !important;
--toolbar-bgcolor: var(--uc-toolbar-bgcolor) !important;
--toolbar-color: var(--uc-toolbar-color) !important;
--toolbarbutton-icon-fill: var(--ui-text-100) !important;
--toolbarbutton-icon-fill-attention: var(--attention-color) !important;
--tab-attention-icon-color: var(--lwt-tab-attention-icon-color) !important;
--lwt-background-alignment: right top !important;
--lwt-background-tiling: no-repeat !important;
--inactive-titlebar-opacity: 1 !important;
--toolbarbutton-border-radius: var(--general-button-border-radius) !important;
--border-radius-small: var(--general-button-border-radius) !important;
--toolbarbutton-icon-fill-opacity: 1 !important;
--arrowpanel-background: var(--uc-arrowpanel-background) !important;
--arrowpanel-color: var(--uc-arrowpanel-color) !important;
--arrowpanel-border-color: var(--uc-menu-border-color) !important;
--arrowpanel-faint: var(--uc-arrowpanel-faint);
--arrowpanel-dimmed: var(--uc-arrowpanel-dimmed) !important;
--arrowpanel-dimmed-further: var(--uc-arrowpanel-dimmed-further) !important;
--arrowpanel-dimmed-even-further: var(--uc-arrowpanel-dimmed-even-further) !important;
--desaturate-faint: var(--uc-desaturate-faint);
--desaturate-semi-faint: var(--uc-desaturate-semi-faint);
--desaturate-dimmed: var(--uc-desaturate-dimmed);
--desaturate-dimmed-further: var(--uc-desaturate-dimmed-further);
--desaturate-dimmed-even-further: var(--uc-desaturate-dimmed-even-further);
--panel-description-color: var(--uc-panel-description-color) !important;
--panel-shortcut-color: var(--uc-panel-shortcut-color) !important;
--panel-shortcut-focus: var(--uc-panel-shortcut-focus) !important;
--panel-disabled-color: var(--uc-menu-disabled-color) !important;
--panel-separator-color: var(--desaturate-dimmed) !important;
--toolbarbutton-checked-background: var(--uc-toolbarbutton-checked-background) !important;
--toolbarbutton-hover-background: var(--uc-toolbarbutton-hover-background) !important;
--toolbarbutton-active-background: var(--uc-toolbarbutton-active-background) !important;
--toolbarbutton-checked-active-background: var(--uc-toolbarbutton-checked-active-background);
--default-focusring: var(--global-focus-outline) !important;
--button-background-color: var(--uc-arrowpanel-faint) !important;
--button-background-color-hover: var(--uc-arrowpanel-dimmed) !important;
--button-background-color-active: var(--uc-arrowpanel-dimmed-further) !important;
--button-bgcolor: var(--uc-arrowpanel-faint) !important;
--button-hover-bgcolor: var(--uc-arrowpanel-dimmed) !important;
--button-active-bgcolor: var(--uc-arrowpanel-dimmed-further) !important;
--button-primary-bgcolor: var(--purple-45) !important;
--button-primary-hover-bgcolor: var(--purple-40) !important;
--button-primary-active-bgcolor: var(--purple-35) !important;
--button-primary-color: var(--button-color) !important;
--color-accent-primary: var(--purple-40) !important;
--color-accent-primary-hover: var(--purple-35) !important;
--color-accent-primary-active: var(--purple-30) !important;
--urlbar-toolbar-height: var(--uc-urlbar-container-height) !important;
--urlbar-container-height: var(--uc-urlbar-container-height) !important;
--urlbar-height: calc(var(--urlbar-container-height) - 6px) !important;
--urlbar-container-padding: 1px !important;
--urlbar-margin-inline: 2px !important;
--urlbar-icon-border-radius: var(--general-button-border-radius) !important;
--urlbar-icon-fill-opacity: 0.6 !important;
--urlbar-popup-url-color: var(--purple-35) !important;
--urlbar-popup-action-color: var(--pink-action) !important;
--urlbarView-item-inline-padding: 8px !important;
--urlbarView-result-button-hover-color: var(--toolbar-field-focus-color) !important;
--urlbarView-result-button-hover-background-color: var(--arrowpanel-dimmed) !important;
--urlbarView-result-button-selected-color: var(--toolbar-field-focus-color) !important;
--urlbarView-result-button-selected-background-color: var(--arrowpanel-faint) !important;
--urlbarView-highlight-background: var(--arrowpanel-dimmed-further) !important;
--tab-min-height: var(--uc-tab-min-height) !important;
--tab-block-margin: 2px !important;
--tab-overflow-clip-margin: 1px !important;
--tab-inline-padding: 9.5px !important;
--inline-tab-padding: 10px !important;
--tab-shadow-max-size: 0px !important;
--tabs-navbar-shadow-size: 0px !important;
--autocomplete-popup-background: var(--arrowpanel-background) !important;
--autocomplete-popup-color: var(--lwt-text-color) !important;
--autocomplete-popup-separator-color: var(--panel-separator-color) !important;
--autocomplete-popup-highlight-background: var(--arrowpanel-dimmed-further) !important;
--focus-outline-color: var(--global-focus-outline-color) !important;
--focus-outline-width: 2px;
--focus-outline-offset: 2px;
--size-item-small: 16px !important;
--size-item-medium: 24px !important;
--size-item-large: 28px !important;
--places-cell-focus-bgcolor: var(--uc-places-cell-focus-bgcolor) !important;
--places-cell-hover-bgcolor: var(--uc-places-cell-hover-bgcolor) !important;
--download-progress-fill-color: var(--toolbarbutton-icon-fill-attention) !important;
--download-progress-paused-color: var(--desaturate-dimmed-further) !important;
--download-progress-flare-color: var(--purple-40) !important;
--downloads-item-height: 5.5em;
--downloads-item-font-size-factor: 0.9;
--downloads-item-details-opacity: 0.6;
--downloads-item-disabled-opacity: 0.6;
--in-content-box-background: hsl(232, 32%, 14%) !important;
--in-content-box-border-color: rgba(249, 249, 250, 0.1) !important;
--in-content-button-background: var(--arrowpanel-dimmed) !important;
--in-content-button-background-hover: var(--arrowpanel-dimmed-further) !important;
--in-content-button-background-active: var(--arrowpanel-dimmed-even-further) !important;
--in-content-button-border-radius: var(--general-button-border-radius) !important;
--in-content-item-selected: var(--purple-40) !important;
--in-content-link-color: var(--purple-35) !important;
--in-content-link-color-hover: var(--purple-30) !important;
--in-content-link-color-active: var(--purple-30) !important;
--link-color: var(--purple-35) !important;
--link-color-hover: var(--purple-30) !important;
--link-color-active: var(--purple-30) !important;
--in-content-primary-button-background: var(--purple-40) !important;
--in-content-primary-button-background-hover: var(--purple-35) !important;
--in-content-primary-button-background-active: var(--purple-30) !important;
--button-text-color-primary: var(--light-on-dark-button-text-color) !important;
--button-text-color-primary-hover: var(--light-on-dark-button-text-color) !important;
--in-content-primary-button-text-color: var(--light-on-dark-button-text-color) !important;
--in-content-primary-button-text-color-hover: var(--light-on-dark-button-text-color) !important;
--menu-background-color: var(--arrowpanel-background) !important;
--menu-color: var(--ui-text-80) !important;
--menuitem-hover-background-color: var(--arrowpanel-dimmed) !important;
--menuitem-disabled-hover-background-color: initial !important;
--menu-disabled-color: var(--panel-disabled-color) !important;
--menu-border-color: var(--uc-menu-border-color) !important;
--menu-icon-opacity: 1 !important;
--panel-separator-margin: var(--uc-panel-separator-margin) !important;
--border-interactive-color: color-mix(in srgb, currentColor 25%, var(--uc-menu-border-color)) !important;
--panel-item-bgcolor: var(--arrowpanel-faint);
--panel-item-hover-bgcolor: var(--arrowpanel-dimmed) !important;
--panel-item-active-bgcolor: var(--arrowpanel-dimmed-further) !important;
--panelview-toolbarbutton-hover-bgcolor: var(--panel-item-hover-bgcolor) !important;
--panelview-toolbarbutton-active-bgcolor: var(--panel-item-active-bgcolor) !important;
--panelview-toolbarbutton-focus-box-shadow: none !important;
--buttons-destructive-bgcolor: var(--uc-destructive-bgcolor) !important;
--buttons-destructive-hover-bgcolor: var(--uc-destructive-hover-bgcolor) !important;
--buttons-destructive-active-bgcolor: var(--uc-destructive-active-bgcolor) !important;
--buttons-destructive-color: var(--uc-destructive-color) !important;
--panel-banner-item-color: hsl(240, 9.1%, 97.8%);
--panel-banner-item-background-color: hsla(109.9, 90.9%, 47.3%, 0.1);
--panel-banner-item-hover-bgcolor: hsla(109.9, 90.9%, 47.3%, 0.15);
--panel-banner-item-active-bgcolor: hsla(109.9, 90.9%, 47.3%, 0.2);
--panel-banner-item-info-icon-bgcolor: var(--arrowpanel-color) !important;
--arrowpanel-menuitem-margin-inline: var(--uc-arrowpanel-menuitem-margin-inline, 4px) !important;
--arrowpanel-menuitem-margin-block: var(--uc-arrowpanel-menuitem-margin-block, 0px) !important;
--arrowpanel-menuitem-margin: var(--arrowpanel-menuitem-margin-block) var(--arrowpanel-menuitem-margin-inline) !important;
--arrowpanel-menuitem-padding-block: var(--uc-arrowpanel-menuitem-padding-block, 6px) !important;
--arrowpanel-menuitem-padding-inline: var(--uc-arrowpanel-menuitem-padding-inline, 6px) !important;
--arrowpanel-menuitem-padding: var(--arrowpanel-menuitem-padding-block) var(--arrowpanel-menuitem-padding-inline) !important;
--arrowpanel-padding: var(--uc-arrowpanel-root-padding, 12px) !important;
--panel-subview-body-padding-magnitude: var(--arrowpanel-menuitem-margin-inline);
--panel-subview-body-padding: var(--panel-subview-body-padding-magnitude) 0 !important;
--arrowpanel-menuitem-border-radius: var(--context-menuitem-border-radius) !important;
--arrowpanel-border-radius: var(--menupopup-border-radius) !important;
--arrowpanel-header-back-icon-padding: var(--toolbarbutton-inner-padding, 8px) !important;
--arrowpanel-header-back-icon-full-width: calc(16px + (2 * var(--arrowpanel-header-back-icon-padding))) !important;
--panelui-subview-transition-duration: 150ms;
--error-text-color: var(--warning-color) !important;
--buttons-primary-button-bgcolor: var(--uc-parent-primary-button-background) !important;
--buttons-primary-button-hover-bgcolor: var(--uc-parent-primary-button-background-hover) !important;
--buttons-primary-button-active-bgcolor: var(--uc-parent-primary-button-background-active) !important;
--buttons-primary-button-color: var(--uc-parent-primary-button-text-color) !important;
--buttons-secondary-hover-bgcolor: var(--arrowpanel-dimmed) !important;
--buttons-secondary-active-bgcolor: var(--arrowpanel-dimmed-further) !important;
--brand-color-accent: var(--purple-40) !important;
--brand-color-accent-hover: var(--purple-35) !important;
--brand-color-accent-active: var(--purple-30) !important;
--vertical-tabs-pane-background: var(--ui-secondary-bg) !important;
--vpn-on-icon: url(chrome://userchrome/content/skin/vpn-on-light.svg);
--cfr-animation-duration: 0.35s;
--cfr-button-addons-icon: url(chrome://userchrome/content/material/extension.svg) !important;
--cfr-button-features-icon: url(chrome://userchrome/content/skin/tip.svg) !important;
--cfr-button-highlights-icon: url(chrome://global/skin/icons/highlights.svg) !important;
}
:root[lwthemetextcolor="bright"] {
--toolbarbutton-icon-fill: var(--lwt-toolbarbutton-icon-fill) !important;
--vpn-on-icon: url(chrome://userchrome/content/skin/vpn-on-dark.svg);
}
toolbar {
--toolbarbutton-hover-background: hsla(236, 82%, 83%, 0.17) !important;
--toolbarbutton-active-background: hsla(236, 82%, 83%, 0.22) !important;
--toolbarbutton-checked-background: hsla(236, 82%, 83%, 0.13) !important;
}
panel {
--warning-icon-bgcolor: var(--low-warning-icon-background) !important;
}
#urlbar {
--urlbar-height: calc(var(--urlbar-container-height) - 6px) !important;
}
#confirmation-hint {
--arrowpanel-background: var(--confirmation-hint-bgcolor) !important;
--arrowpanel-color: var(--confirmation-hint-color) !important;
--arrowpanel-border-color: var(--confirmation-hint-border-color) !important;
}
.tab-loading-burst {
--tab-loading-fill: var(--lwt-toolbarbutton-icon-fill-attention) !important;
}
:root,
#TabsToolbar {
--toolbarbutton-inner-padding: var(--uc-toolbarbutton-inner-padding, 8px) !important;
}
#urlbar-container,
#urlbar {
--urlbar-toolbar-height: var(--uc-urlbar-container-height) !important;
--urlbar-container-height: var(--uc-urlbar-container-height) !important;
}
#urlbar,
#searchbar {
--urlbar-box-bgcolor: var(--urlbar-dim-button-bgcolor) !important;
--urlbar-box-focus-bgcolor: var(--desaturate-faint) !important;
--urlbar-box-hover-bgcolor: var(--desaturate-semi-faint) !important;
--urlbar-box-active-bgcolor: var(--desaturate-dimmed) !important;
--urlbar-box-text-color: inherit !important;
--urlbar-box-hover-text-color: var(--urlbar-box-text-color) !important;
}
#appMenu-multiView {
--subviewbutton-height: 32px !important;
--arrowpanel-menuitem-padding-inline: 8px !important;
--arrowpanel-menuitem-padding: var(--arrowpanel-menuitem-padding-block) var(--arrowpanel-menuitem-padding-inline) !important;
}
#identity-popup {
--subviewbutton-height: 30px !important;
}
printpreview-pagination {
--shadow-30: 0 0 15px 0 hsla(0, 0%, 10%, 0.2), 0 0 3px 0 hsla(0, 0%, 5%, 0.2) !important;
--border-active-shadow: var(--global-focus-outline-color) !important;
}
.toggle-button {
--toggle-background-color: var(--checkbox-unchecked-bgcolor) !important;
--toggle-background-color-hover: var(--checkbox-unchecked-hover-bgcolor) !important;
--toggle-background-color-active: var(--checkbox-unchecked-active-bgcolor) !important;
--toggle-background-color-pressed: var(--checkbox-checked-bgcolor) !important;
--toggle-background-color-pressed-hover: var(--checkbox-checked-hover-bgcolor) !important;
--toggle-background-color-pressed-active: var(--checkbox-checked-active-bgcolor) !important;
--toggle-border-color: var(--checkbox-border-color) !important;
--toggle-border-color-hover: var(--toggle-border-color) !important;
--toggle-border-color-active: var(--toggle-border-color) !important;
--toggle-dot-background-color: color-mix(in srgb, currentColor 50%, var(--toggle-background-color-active)) !important;
--toggle-dot-background-color-hover: var(--toggle-dot-background-color) !important;
--toggle-dot-background-color-active: var(--toggle-dot-background-color) !important;
--toggle-dot-background-color-on-pressed: var(--checkbox-checked-color) !important;
}
/* fluent reveal toolbar buttons */
:root[fluent-reveal-hover] #navigator-toolbox :is(.toolbarbutton-1, .bookmark-item) {
--toolbarbutton-hover-background: hsla(236, 82%, 83%, 0.05) !important;
--toolbarbutton-active-background: hsla(236, 82%, 83%, 0.1) !important;
}