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
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Permissions */
#trackingGroup {
--section-highlight-background-color: color-mix(in srgb, var(--in-content-accent-color) 20%, transparent);
}
.permission-icon {
width: 20px;
height: 20px;
vertical-align: middle;
margin-inline-end: 0.2em;
}
.permission-icon,
.content-blocking-category .checkbox-label-box,
.extra-information-label > image,
.arrowhead,
.reload-tabs-button,
.content-blocking-warning-image {
-moz-context-properties: fill;
fill: currentColor;
}
.geo-icon {
list-style-image: url(chrome://browser/skin/notification-icons/geo.svg);
}
.xr-icon {
list-style-image: url(chrome://browser/skin/notification-icons/xr.svg);
}
.camera-icon {
list-style-image: url(chrome://browser/skin/notification-icons/camera.svg);
}
.microphone-icon {
list-style-image: url(chrome://browser/skin/notification-icons/microphone.svg);
}
.desktop-notification-icon {
list-style-image: url(chrome://browser/skin/notification-icons/desktop-notification.svg);
}
.autoplay-icon {
list-style-image: url(chrome://browser/skin/notification-icons/autoplay-media.svg);
}
.midi-icon {
list-style-image: url(chrome://browser/skin/notification-icons/midi.svg);
}
/* Content Blocking */
/* Override styling that sets descriptions as grey */
#trackingGroup description.indent,
#trackingGroup .indent > description {
color: inherit;
}
[data-subcategory="trackingprotection"] {
margin-top: 10px;
}
#trackingProtectionShield {
list-style-image: url("chrome://browser/skin/controlcenter/tracking-protection.svg");
-moz-context-properties: fill, fill-opacity;
fill: currentColor;
fill-opacity: 0.5;
width: 64px;
height: 64px;
margin-inline-end: 10px;
}
.content-blocking-category,
#fpiIncompatibilityWarning {
margin: 3px 0;
}
#fpiIncompatibilityWarning {
background-color: var(--section-highlight-background-color);
}
#fpiIncompatibilityWarning,
#contentBlockingCategories {
margin-top: 16px;
}
.content-blocking-category {
border-color: var(--in-content-box-border-color);
}
.content-blocking-category.disabled {
opacity: 0.5;
}
.content-blocking-category.disabled .radio-check {
opacity: 1;
}
.content-blocking-category > .indent {
margin-inline-end: 22px;
}
.arrowhead {
border-radius: 2px;
min-height: 20px;
min-width: 20px;
max-height: 20px;
max-width: 20px;
list-style-image: url("chrome://global/skin/icons/arrow-down-12.svg");
background-color: transparent;
padding: 3px;
}
.arrowhead:not([disabled]):hover {
cursor: pointer;
}
.arrowhead.up {
list-style-image: url("chrome://global/skin/icons/arrow-up-12.svg");
}
.content-blocking-category.expanded:not(.selected) .reload-tabs {
display: none;
}
.content-blocking-warning.reload-tabs:not([hidden]) {
display: flex;
flex-wrap: wrap;
}
.content-blocking-reload-desc-container {
/* 345px is enough for (almost) twice the size of the default English
* string at default font sizes. If this and the button do not fit
* on one line, the button will get wrapped to the next line and this
* item will stretch to fill all available space. */
flex: 1 1 345px;
display: flex;
align-self: center;
}
.content-blocking-reload-description {
line-height: 1.8em;
margin-inline-end: 5px;
}
.reload-tabs-button {
max-height: 30px;
min-height: 30px;
padding: 0 20px;
list-style-image: url("chrome://global/skin/icons/reload.svg");
align-self: center;
}
.reload-tabs-button .button-icon {
margin: 0 6px;
color: inherit;
}
.reload-tabs-button .button-text {
color: inherit;
}
.content-blocking-category.selected .content-blocking-warning {
background-color: var(--section-highlight-background-color);
}
.content-blocking-category.selected .arrowhead {
display: none;
}
.content-blocking-category.selected {
border-color: var(--in-content-accent-color);
}
@media (prefers-contrast) {
.content-blocking-category.selected {
outline: 2px solid var(--in-content-accent-color);
}
}
@media not (prefers-contrast) {
.content-blocking-category {
background-color: rgba(215, 215, 219, 0.1);
}
.content-blocking-category.selected {
background-color: var(--section-highlight-background-color);
}
}
.content-blocking-warning-title,
.content-blocking-category .radio-label-box {
font-weight: bold;
}
.content-blocking-category:not(.expanded, .selected) .content-blocking-extra-information {
visibility: collapse;
}
.extra-information-label {
margin-top: 18px;
}
/* Apply display: block to the containers of all the category information, as
* without this the flex-wrapped blocks inside don't stretch vertically to
* enclose their content. */
.content-blocking-category > .indent {
display: block;
}
.content-blocking-category.expanded .content-blocking-extra-information,
.content-blocking-category.selected .content-blocking-extra-information {
display: flex;
flex-direction: column;
align-content: stretch;
}
.content-blocking-extra-information > .indent {
margin-bottom: 18px;
}
.content-blocking-extra-information > .custom-option {
margin: 10px 0;
}
.content-blocking-warning {
/* Match .indent's horizontal padding, minus the border added via .info-box-container: */
padding-inline: calc(22px - 1px);
margin: 10px 0;
}
.content-blocking-warning:not([hidden]) + .content-blocking-warning {
margin-top: 0;
}
.content-blocking-extra-blocking-desc {
margin-inline-start: 0.5em;
position: relative;
top: 0.65em;
}
.content-blocking-label {
display: list-item;
line-height: 1.2em;
}
.content-blocking-warning-image {
list-style-image: url("chrome://global/skin/icons/warning.svg");
margin-inline-end: 6px;
}
#blockCookiesMenu {
width: 450px;
}
#blockCookiesMenu,
#trackingProtectionMenu {
margin: 0;
}
#changeBlockListLink {
margin-inline-start: 56px;
}
#telemetry-container {
margin-block: 4px;
line-height: 1.8em;
width: 100%;
}
.content-blocking-category-description {
font-size: 90%;
opacity: 0.6;
}
.warning-description {
background: url(chrome://global/skin/icons/warning.svg) no-repeat 0 5px;
opacity: 0.6;
-moz-context-properties: fill, stroke;
fill: #d7b600;
stroke: white;
padding-inline-start: 20px;
}
.reject-trackers-warning-icon:-moz-locale-dir(rtl) {
background-position-x: right 0;
}
#contentBlockingChangeCookieSettings {
padding: 0.25em 0.75em;
margin: 4px 8px;
}
#deleteOnCloseNote {
margin-top: 8px;
margin-inline-end: 32px;
}
#submitHealthReportBox {
display: -moz-inline-box;
}
/* Address bar */
.firefoxSuggestOptionBox {
/* With this value we're trying to keep the apparent vertical space between
option boxes the same as the apparent vertical space between the labels of
the checkboxes above the Firefox Suggest subsection. */
margin-block-start: 11px;
}
.firefoxSuggestOptionBox:first-of-type {
/* Similar here: Make the apparent vertical space between the last checkbox
and first option box the same as elsewhere. */
margin-block-start: 5px;
}
.firefoxSuggestToggle {
/* These variables and comments are copied from and override
toggle-button.css. We include values for all variables, even those that are
the same at the time this comment was written, for sanity and locality of
reference. */
--button-height: 16px !important;
--button-half-height: 8px !important;
--button-width: 32px !important;
--button-border-width: 1px !important;
/* dot-size = button-height - 2*dot-margin - 2*button-border-width */
--dot-size: 14px !important;
--dot-margin: 0px !important;
/* --dot-transform-x = button-width - 2*dot-margin - dot-size - 2*button-border-width */
--dot-transform-x: 16px !important;
}
.firefoxSuggestOptionDescription {
/* Prevent the description from flowing under the toggle button.
32px = toggle button width
1em = a little extra */
padding-inline-end: calc(32px + 1em);
color: var(--in-content-deemphasized-text);
}
#firefoxSuggestInfoBox {
margin-block-start: 16px;
padding: 12px;
}
#firefoxSuggestInfoBox > description {
margin-inline-start: 2px;
margin-block: 2px;
}
#openSearchEnginePreferences {
margin-block-start: 6px;
line-height: 30px;
}
#openSearchEnginePreferences.extraMargin {
margin-block-start: 24px;
}
|