Commit | Line | Data |
---|---|---|
bb9362a9 RK |
1 | /* - This Source Code Form is subject to the terms of the Mozilla Public |
2 | - License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
3 | - You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 | ||
5 | /* === BEGIN shared/in-content/preferences.css === */ | |
6 | ||
7 | @namespace html "http://www.w3.org/1999/xhtml"; | |
8 | ||
bb9362a9 | 9 | .main-content { |
0b8749a4 | 10 | padding: 1.5em 0 0; /* That padding needs to match the upper stripe. */ |
bb9362a9 | 11 | overflow: auto; |
0b8749a4 RK |
12 | |
13 | /* This actually results in two black boxes extending to the right and bottom, | |
14 | * leaving the LCARS-gray background only in a top stripe and | |
15 | * a bit larger area on the top left. | |
16 | * The prefpane will overlay that with the rounded shape we want. */ | |
17 | background-color: #A09090; | |
18 | background-position: 3em 1.5em, 0px 5em; | |
19 | background-image: linear-gradient(0deg, #000, #000), linear-gradient(0deg, #000, #000); | |
20 | background-repeat: no-repeat; | |
bb9362a9 RK |
21 | } |
22 | ||
c1080df6 | 23 | #mainPrefPane { |
0b8749a4 RK |
24 | padding: 10px 20px 0px; |
25 | border-radius: 1em 0 0 0; | |
26 | background-color: #000000; | |
27 | ||
589b5528 | 28 | max-width: 800px; |
93c91f62 | 29 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
bb9362a9 RK |
30 | font-size: 1.25rem; |
31 | line-height: 22px; | |
6edbc6e8 | 32 | color: #FF9F00; |
bb9362a9 RK |
33 | } |
34 | ||
8922acc9 RK |
35 | * { |
36 | -moz-user-select: text; | |
37 | } | |
38 | ||
39 | button, | |
40 | treecol { | |
41 | /* override the * rule */ | |
42 | -moz-user-select: none; | |
43 | } | |
44 | ||
bb9362a9 RK |
45 | /* Category List */ |
46 | ||
47 | #categories { | |
d533ec21 RK |
48 | max-height: 100vh; |
49 | ||
bb9362a9 | 50 | background-color: #A09090; |
0b8749a4 | 51 | padding-top: 4em; |
bb9362a9 RK |
52 | margin: 0; |
53 | border-radius: 1em 0 0 0; | |
0b8749a4 | 54 | border: none; |
bb9362a9 RK |
55 | } |
56 | ||
d533ec21 RK |
57 | #categories > scrollbox { |
58 | overflow-x: hidden !important; | |
59 | } | |
60 | ||
bb9362a9 RK |
61 | .category { |
62 | background-color: #000000; | |
63 | color: #FFCF00; | |
64 | -moz-border-end-width: 0; | |
3d64e0ce | 65 | -moz-padding-start: 15px; |
bb9362a9 RK |
66 | -moz-padding-end: 21px; |
67 | min-height: 40px; | |
3d64e0ce | 68 | transition: background-color 150ms; |
bb9362a9 RK |
69 | } |
70 | ||
71 | .category:hover { | |
72 | background-color: #FFCF00; | |
73 | color: #000000; | |
74 | } | |
75 | ||
76 | .category[selected] { | |
77 | background-color: #008484; | |
78 | color: #000000; | |
79 | } | |
80 | ||
2b5a5147 RK |
81 | #categories[keyboard-navigation="true"]:-moz-focusring > .category[current] { |
82 | border-top: 1px dotted #000000; | |
83 | border-bottom: 1px dotted #000000; | |
84 | } | |
85 | ||
bb9362a9 RK |
86 | .category-name { |
87 | line-height: 22px; | |
bb9362a9 RK |
88 | font-size: 1.25rem; |
89 | padding-bottom: 2px; | |
90 | -moz-padding-start: 9px; | |
91 | margin: 0; | |
92 | } | |
93 | ||
d533ec21 RK |
94 | /** |
95 | * We want the last category to always have non-0 getBoundingClientRect().bottom | |
96 | * so we can use the value to figure out the max-height of the list in | |
97 | * preferences.js, so use collapse instead of display: none; if it's hidden | |
98 | */ | |
99 | #categories > .category[hidden="true"] { | |
100 | display: -moz-box; | |
101 | visibility: collapse; | |
102 | } | |
103 | ||
bb9362a9 RK |
104 | .category-icon { |
105 | width: 24px; | |
106 | height: 24px; | |
107 | list-style-image: url("chrome://browser/skin/preferences/in-content/icons.png"); | |
108 | } | |
109 | ||
110 | #category-general > .category-icon { | |
111 | -moz-image-region: rect(0, 24px, 24px, 0); | |
112 | } | |
113 | ||
114 | #category-general:hover > .category-icon, | |
115 | #category-general[selected] > .category-icon { | |
116 | -moz-image-region: rect(24px, 24px, 48px, 0); | |
117 | } | |
118 | ||
58036cb8 | 119 | #category-search > .category-icon { |
1eb9479d | 120 | -moz-image-region: rect(0, 192px, 24px, 168px); |
58036cb8 RK |
121 | } |
122 | ||
123 | #category-search:hover > .category-icon, | |
124 | #category-search[selected] > .category-icon { | |
1eb9479d | 125 | -moz-image-region: rect(24px, 192px, 48px, 168px); |
58036cb8 RK |
126 | } |
127 | ||
bb9362a9 RK |
128 | #category-content > .category-icon { |
129 | -moz-image-region: rect(0, 48px, 24px, 24px) | |
130 | } | |
131 | ||
132 | #category-content:hover > .category-icon, | |
133 | #category-content[selected] > .category-icon { | |
134 | -moz-image-region: rect(24px, 48px, 48px, 24px); | |
135 | } | |
136 | ||
137 | #category-application > .category-icon { | |
138 | -moz-image-region: rect(0, 72px, 24px, 48px) | |
139 | } | |
140 | ||
141 | #category-application:hover > .category-icon, | |
142 | #category-application[selected] > .category-icon { | |
143 | -moz-image-region: rect(24px, 72px, 48px, 48px); | |
144 | } | |
145 | ||
146 | #category-privacy > .category-icon { | |
147 | -moz-image-region: rect(0, 96px, 24px, 72px) | |
148 | } | |
149 | ||
150 | #category-privacy:hover > .category-icon, | |
151 | #category-privacy[selected] > .category-icon { | |
152 | -moz-image-region: rect(24px, 96px, 48px, 72px); | |
153 | } | |
154 | ||
155 | #category-security > .category-icon { | |
156 | -moz-image-region: rect(0, 120px, 24px, 96px) | |
157 | } | |
158 | ||
159 | #category-security:hover > .category-icon, | |
160 | #category-security[selected] > .category-icon { | |
161 | -moz-image-region: rect(24px, 120px, 48px, 96px); | |
162 | } | |
163 | ||
164 | #category-sync > .category-icon { | |
165 | -moz-image-region: rect(0, 144px, 24px, 120px); | |
166 | } | |
167 | ||
168 | #category-sync:hover > .category-icon, | |
169 | #category-sync[selected] > .category-icon { | |
170 | -moz-image-region: rect(24px, 144px, 48px, 120px); | |
171 | } | |
172 | ||
173 | #category-advanced > .category-icon { | |
174 | -moz-image-region: rect(0, 168px, 24px, 144px) | |
175 | } | |
176 | ||
177 | #category-advanced:hover > .category-icon, | |
178 | #category-advanced[selected] > .category-icon { | |
179 | -moz-image-region: rect(24px, 168px, 48px, 144px); | |
180 | } | |
181 | ||
b3bf08b1 RK |
182 | @media (max-width: 800px) { |
183 | .category-name { | |
184 | display: none; | |
185 | } | |
186 | } | |
187 | ||
bb9362a9 RK |
188 | /* header */ |
189 | ||
d4d77dc0 RK |
190 | #header-advanced { |
191 | border-bottom: none; | |
192 | padding-bottom: 0; | |
bb9362a9 RK |
193 | } |
194 | ||
bb9362a9 RK |
195 | .indent { |
196 | margin-top: 7px; | |
197 | margin-bottom: 7px; | |
198 | } | |
199 | ||
200 | /* General Pane */ | |
bb9362a9 | 201 | |
d533ec21 RK |
202 | #startupTable { |
203 | border-collapse: collapse; | |
204 | } | |
205 | ||
206 | #startupTable > tr > td { | |
207 | padding: 0; /* remove the padding from html.css */ | |
208 | } | |
209 | ||
210 | #startupTable > tr:not(:first-child) > td { | |
211 | padding-top: 0.5em; /* add a spacing between the rows */ | |
212 | } | |
213 | ||
214 | #startupTable > tr > .label-cell { | |
215 | text-align: end; | |
216 | width: 0; /* make the column as small as possible */ | |
217 | } | |
218 | ||
219 | #startupTable > tr > .label-cell > label { | |
220 | white-space: nowrap; | |
221 | } | |
222 | ||
223 | #startupTable > tr > .content-cell > menulist, | |
224 | #startupTable > tr > .content-cell > textbox { | |
225 | width: calc(100% - 8px); | |
226 | margin-left: 4px; | |
227 | margin-right: 4px; | |
228 | } | |
229 | ||
230 | #startupTable > tr > .homepage-buttons { | |
231 | display: flex; | |
232 | flex-wrap: wrap; | |
233 | } | |
234 | ||
235 | #startupTable > tr > .homepage-buttons > .content-cell-item { | |
236 | flex-grow: 1; | |
237 | } | |
238 | ||
e548e22e RK |
239 | #useFirefoxSync { |
240 | font-size: 90%; | |
241 | -moz-margin-end: 8px !important; | |
242 | } | |
243 | ||
244 | #getStarted { | |
245 | font-size: 90%; | |
246 | } | |
247 | ||
a21f2959 RK |
248 | #isNotDefaultLabel { |
249 | font-weight: bold; | |
bb9362a9 RK |
250 | } |
251 | ||
20752032 RK |
252 | /* Content pane */ |
253 | #playDRMContentLink { | |
254 | /* Line up with the buttons in the other grid bits: */ | |
255 | margin-left: 4px !important; | |
256 | margin-right: 4px !important; | |
257 | } | |
258 | ||
bb9362a9 RK |
259 | /* Applications Pane Styles */ |
260 | ||
3d64e0ce | 261 | #applicationsContent { |
3d64e0ce RK |
262 | padding: 15px 0; |
263 | } | |
264 | ||
265 | #filter { | |
266 | -moz-margin-start: 0; | |
bb9362a9 RK |
267 | } |
268 | ||
368d0b7f RK |
269 | #handlersView { |
270 | height: 25em; | |
271 | } | |
272 | ||
bb9362a9 | 273 | #handlersView > richlistitem { |
b3bf08b1 | 274 | min-height: 36px !important; |
bb9362a9 RK |
275 | } |
276 | ||
277 | .typeIcon { | |
278 | -moz-margin-start: 10px !important; | |
279 | -moz-margin-end: 9px !important; | |
280 | } | |
281 | ||
282 | .actionIcon { | |
283 | -moz-margin-start: 11px !important; | |
284 | -moz-margin-end: 8px !important; | |
285 | } | |
286 | ||
287 | .actionsMenu { | |
b3bf08b1 | 288 | min-height: 36px; |
bb9362a9 RK |
289 | } |
290 | ||
291 | .actionsMenu > menupopup > menuitem { | |
292 | -moz-padding-start: 10px !important; | |
293 | } | |
294 | ||
295 | .actionsMenu > menupopup > menuitem > .menu-iconic-left { | |
296 | -moz-margin-end: 8px !important; | |
297 | } | |
298 | ||
299 | /* XXX This style is for bug 740213 and should be removed once that | |
300 | bug has a solution. */ | |
301 | description > html|a { | |
302 | cursor: pointer; | |
303 | } | |
304 | ||
9168a62c RK |
305 | #noFxaAccount { |
306 | /* Overriding the margins from the base preferences.css theme file. | |
307 | These overrides can be simplified by fixing bug 1027174 */ | |
308 | margin: 0; | |
309 | } | |
310 | ||
311 | #weavePrefsDeck > vbox > label, | |
312 | #weavePrefsDeck > vbox > groupbox, | |
313 | #weavePrefsDeck > vbox > description, | |
314 | #weavePrefsDeck > vbox > #pairDevice > label, | |
315 | #weavePrefsDeck > #needsUpdate > hbox > #loginError, | |
cac2a998 RK |
316 | #weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-normal) > label, |
317 | #weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-small) > label { | |
9168a62c RK |
318 | /* no margin-start for elements at the begin of a line */ |
319 | -moz-margin-start: 0; | |
320 | } | |
321 | ||
bb9362a9 RK |
322 | #advancedPrefs { |
323 | padding-bottom: 0; /* no padding needed in inContent prefs */ | |
324 | } | |
325 | ||
20752032 RK |
326 | #tabsElement { |
327 | /* -moz-margin-end: 4px; / add the 4px end-margin of other elements */ | |
328 | } | |
329 | ||
bb9362a9 RK |
330 | #encryptionPanel { |
331 | margin-top: 15px; | |
bb9362a9 RK |
332 | } |
333 | ||
bb9362a9 RK |
334 | #telemetryLearnMore, |
335 | #FHRLearnMore, | |
336 | #crashReporterLearnMore { | |
337 | /* center the links */ | |
338 | margin-top: 8px; | |
339 | margin-bottom: 8px; | |
340 | } | |
341 | ||
8c5bee4f RK |
342 | #trackingProtectionImage { |
343 | width: 16px; | |
344 | height: 16px; | |
345 | list-style-image: url("chrome://browser/skin/bad-content-blocked-16.png"); | |
346 | } | |
347 | ||
348 | @media (min-resolution: 2dppx) { | |
349 | #trackingProtectionImage { | |
350 | list-style-image: url("chrome://browser/skin/bad-content-blocked-16@2x.png"); | |
351 | } | |
352 | } | |
6edbc6e8 RK |
353 | |
354 | /** | |
c1080df6 | 355 | * Dialog |
6edbc6e8 RK |
356 | */ |
357 | ||
358 | #dialogOverlay { | |
359 | background-color: rgba(0,0,0,0.75); | |
360 | visibility: hidden; | |
361 | } | |
362 | ||
363 | #dialogBox { | |
c1080df6 | 364 | background-color: #000000; |
20752032 | 365 | background-clip: content-box; |
c1080df6 RK |
366 | color: #FF9F00; |
367 | /* font-size: 14px; */ | |
6edbc6e8 | 368 | border: 1px solid #9C9CFF; |
c1080df6 | 369 | border-radius: 10px; |
6edbc6e8 RK |
370 | display: -moz-box; |
371 | margin: 0; | |
372 | padding-right: 6px; | |
373 | padding-left: 6px; | |
374 | } | |
375 | ||
376 | #dialogBox[resizable="true"] { | |
377 | resize: both; | |
378 | overflow: hidden; | |
c1080df6 | 379 | min-height: 20em; |
6edbc6e8 RK |
380 | min-width: 66ch; |
381 | } | |
382 | ||
de5e780d | 383 | #dialogBox > .groupbox-title { |
c1080df6 RK |
384 | -moz-margin-start: 0; |
385 | -moz-margin-end: 0; | |
de5e780d RK |
386 | /* padding: 3.5px 0; |
387 | background-color: #F1F1F1; */ | |
388 | } | |
389 | ||
390 | #dialogTitle { | |
391 | text-align: center; | |
c1080df6 RK |
392 | } |
393 | ||
6edbc6e8 RK |
394 | .close-icon { |
395 | background-color: transparent !important; | |
396 | border: none; | |
397 | box-shadow: none; | |
398 | height: 18px; | |
399 | padding: 0; | |
400 | min-width: 18px; | |
401 | } | |
402 | ||
d4d77dc0 RK |
403 | #dialogBox > .groupbox-title > caption { |
404 | margin: 0; | |
405 | border-radius: 1000px; | |
406 | background-color: #A09090; | |
407 | } | |
408 | ||
6edbc6e8 RK |
409 | #dialogBox > .groupbox-body { |
410 | -moz-appearance: none; | |
411 | padding: 0; | |
412 | } | |
413 | ||
414 | #dialogFrame { | |
415 | -moz-box-flex: 1; | |
416 | /* Default dialog dimensions */ | |
c1080df6 | 417 | height: 20em; |
6edbc6e8 RK |
418 | width: 66ch; |
419 | } | |
420 | ||
6edbc6e8 | 421 | /** |
c1080df6 | 422 | * End Dialog |
6edbc6e8 RK |
423 | */ |
424 | ||
20752032 RK |
425 | /** |
426 | * Sync migration | |
427 | */ | |
428 | #sync-migrate-upgrade-description { | |
429 | /* description elts need a min-width to wrap correctly - bug 630864? */ | |
430 | min-width: 100px | |
431 | } | |
432 | ||
433 | #sync-migration { | |
434 | border: 1px solid #9C9CFF; | |
435 | background-color: #000000; | |
436 | color: #A09090; | |
437 | text-shadow: none; | |
438 | margin: 5px 0 0 0; | |
439 | animation: fadein 3000ms; | |
440 | } | |
441 | ||
442 | @keyframes fadein { | |
443 | from { opacity: 0; } | |
444 | to { opacity: 1; } | |
445 | } | |
446 | ||
bb9362a9 RK |
447 | /* === END shared/in-content/preferences.css === */ |
448 | ||
0bcd5587 RK |
449 | caption { |
450 | } | |
451 | ||
bb9362a9 RK |
452 | .indent-small { |
453 | -moz-margin-start: 10px; | |
454 | } | |
455 | ||
456 | @media (min-resolution: 2dppx) { | |
457 | checkbox:hover::before, | |
458 | checkbox[checked]::before { | |
459 | } | |
460 | ||
461 | checkbox[checked]::before { | |
462 | } | |
463 | ||
464 | .category-icon { | |
465 | list-style-image: url("chrome://browser/skin/preferences/in-content/icons@2x.png"); | |
466 | } | |
467 | ||
468 | #category-general > .category-icon { | |
469 | -moz-image-region: rect(0, 48px, 48px, 0); | |
470 | } | |
471 | ||
58036cb8 | 472 | #category-general:hover > .category-icon, |
bb9362a9 RK |
473 | #category-general[selected] > .category-icon { |
474 | -moz-image-region: rect(48px, 48px, 96px, 0); | |
475 | } | |
476 | ||
58036cb8 RK |
477 | #category-search > .category-icon { |
478 | -moz-image-region: rect(0, 384px, 48px, 336px); | |
479 | } | |
480 | ||
481 | #category-search:hover > .category-icon, | |
482 | #category-search[selected] > .category-icon { | |
483 | -moz-image-region: rect(48, 384px, 96px, 336px); | |
484 | } | |
485 | ||
bb9362a9 RK |
486 | #category-content > .category-icon { |
487 | -moz-image-region: rect(0, 96px, 48px, 48px); | |
488 | } | |
489 | ||
58036cb8 | 490 | #category-content:hover > .category-icon, |
bb9362a9 RK |
491 | #category-content[selected] > .category-icon { |
492 | -moz-image-region: rect(48px, 96px, 96px, 48px); | |
493 | } | |
494 | ||
495 | #category-application > .category-icon { | |
496 | -moz-image-region: rect(0, 144px, 48px, 96px); | |
497 | } | |
498 | ||
58036cb8 | 499 | #category-application:hover > .category-icon, |
bb9362a9 RK |
500 | #category-application[selected] > .category-icon { |
501 | -moz-image-region: rect(48px, 144px, 96px, 96px); | |
502 | } | |
503 | ||
504 | #category-privacy > .category-icon { | |
505 | -moz-image-region: rect(0, 192px, 48px, 144px); | |
506 | } | |
507 | ||
58036cb8 | 508 | #category-privacy:hover > .category-icon, |
bb9362a9 RK |
509 | #category-privacy[selected] > .category-icon { |
510 | -moz-image-region: rect(48px, 192px, 96px, 144px); | |
511 | } | |
512 | ||
513 | #category-security > .category-icon { | |
514 | -moz-image-region: rect(0, 240px, 48px, 192px); | |
515 | } | |
516 | ||
58036cb8 | 517 | #category-security:hover > .category-icon, |
bb9362a9 RK |
518 | #category-security[selected] > .category-icon { |
519 | -moz-image-region: rect(48px, 240px, 96px, 192px); | |
520 | } | |
521 | ||
522 | #category-sync > .category-icon { | |
523 | -moz-image-region: rect(0, 288px, 48px, 240px); | |
524 | } | |
525 | ||
58036cb8 | 526 | #category-sync:hover > .category-icon, |
bb9362a9 RK |
527 | #category-sync[selected] > .category-icon { |
528 | -moz-image-region: rect(48px, 288px, 96px, 240px); | |
529 | } | |
530 | ||
531 | #category-advanced > .category-icon { | |
532 | -moz-image-region: rect(0, 336px, 48px, 288px); | |
533 | } | |
534 | ||
58036cb8 | 535 | #category-advanced:hover > .category-icon, |
bb9362a9 RK |
536 | #category-advanced[selected] > .category-icon { |
537 | -moz-image-region: rect(48px, 336px, 96px, 288px); | |
538 | } | |
539 | } |