second part of syncing LCARStrek with Firefox 45-48 windows theme changes
[themes.git] / LCARStrek / browser / preferences / in-content / preferences.css
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/incontentprefs/preferences.inc.css === */
6
7 @namespace html "http://www.w3.org/1999/xhtml";
8
9 .main-content {
10   padding: 1.5em 0 0; /* That padding needs to match the upper stripe. */
11   overflow: auto;
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;
21 }
22
23 #mainPrefPane {
24   padding: 10px 20px 0px;
25   border-radius: 1em 0 0 0;
26   background-color: #000000;
27
28   max-width: 800px;
29   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
30   font-size: 1.25rem;
31   color: #FF9F00;
32 }
33
34 * {
35   -moz-user-select: text;
36 }
37
38 button,
39 treecol {
40   /* override the * rule */
41   -moz-user-select: none;
42 }
43 /*
44 #engineList treechildren::-moz-tree-image(engineShown, checked),
45 #blocklistsTree treechildren::-moz-tree-image(selectionCol, checked) {
46   list-style-image: url("chrome://global/skin/in-content/check.svg#check");
47   width: 21px;
48   height: 21px;
49 }
50
51 #engineList treechildren::-moz-tree-image(engineShown, checked, selected),
52 #blocklistsTree treechildren::-moz-tree-image(selectionCol, checked, selected) {
53   list-style-image: url("chrome://global/skin/in-content/check.svg#check-inverted");
54 }
55
56 #engineList treechildren::-moz-tree-row,
57 #blocklistsTree treechildren::-moz-tree-row {
58   min-height: 36px;
59 }
60 */
61 #selectionCol {
62   min-width: 26px;
63 }
64
65 /* Category List */
66
67 #categories {
68   max-height: 100vh;
69 }
70
71 #categories > scrollbox {
72   overflow-x: hidden !important;
73 }
74
75 /**
76  * We want the last category to always have non-0 getBoundingClientRect().bottom
77  * so we can use the value to figure out the max-height of the list in
78  * preferences.js, so use collapse instead of display: none; if it's hidden
79  */
80 #categories > .category[hidden="true"] {
81   display: -moz-box;
82   visibility: collapse;
83 }
84
85 #category-general > .category-icon {
86   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general");
87 }
88
89 #category-general:hover > .category-icon,
90 #category-general[selected] > .category-icon {
91   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general-active");
92 }
93
94 #category-search > .category-icon {
95   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search");
96 }
97
98 #category-search:hover > .category-icon,
99 #category-search[selected] > .category-icon {
100   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search-active");
101 }
102
103 #category-content > .category-icon {
104   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content");
105 }
106
107 #category-content:hover > .category-icon,
108 #category-content[selected] > .category-icon {
109   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content-active");
110 }
111
112 #category-application > .category-icon {
113   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications");
114 }
115
116 #category-application:hover > .category-icon,
117 #category-application[selected] > .category-icon {
118   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications-active");
119 }
120
121 #category-privacy > .category-icon {
122   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy");
123 }
124
125 #category-privacy:hover > .category-icon,
126 #category-privacy[selected] > .category-icon {
127   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy-active");
128 }
129
130 #category-security > .category-icon {
131   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security");
132 }
133
134 #category-security:hover > .category-icon,
135 #category-security[selected] > .category-icon {
136   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security-active");
137 }
138
139 #category-sync > .category-icon {
140   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync");
141 }
142
143 #category-sync:hover > .category-icon,
144 #category-sync[selected] > .category-icon {
145   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync-active");
146 }
147
148 #category-advanced > .category-icon {
149   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced");
150 }
151
152 #category-advanced:hover > .category-icon,
153 #category-advanced[selected] > .category-icon {
154   list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced-active");
155 }
156
157 @media (max-width: 800px) {
158   .category-name {
159     display: none;
160   }
161 }
162
163 /* header */
164
165 #header-advanced {
166   border-bottom: none;
167   padding-bottom: 0;
168 }
169
170 .indent {
171   margin-top: 7px;
172   margin-bottom: 7px;
173 }
174
175 /* General Pane */
176
177 #startupTable {
178   border-collapse: collapse;
179 }
180
181 #startupTable > tr > td {
182   padding: 0; /* remove the padding from html.css */
183 }
184
185 #startupTable > tr:not(:first-child) > td {
186   padding-top: 0.5em; /* add a spacing between the rows */
187 }
188
189 #startupTable > tr > .label-cell {
190   text-align: end;
191   width: 0; /* make the column as small as possible */
192 }
193
194 #startupTable > tr > .label-cell > label {
195   white-space: nowrap;
196 }
197
198 #startupTable > tr > .content-cell > menulist,
199 #startupTable > tr > .content-cell > textbox {
200   width: calc(100% - 8px);
201   margin-left: 4px;
202   margin-right: 4px;
203 }
204
205 #startupTable > tr > .homepage-buttons {
206   display: flex;
207   flex-wrap: wrap;
208 }
209
210 #startupTable > tr > .homepage-buttons > .content-cell-item {
211   flex-grow: 1;
212 }
213
214 #useFirefoxSync  {
215   font-size: 90%;
216   -moz-margin-end: 8px !important;
217 }
218
219 #getStarted {
220   font-size: 90%;
221 }
222
223 #isNotDefaultLabel {
224   font-weight: bold;
225 }
226
227 /* Content pane */
228 #playDRMContentLink {
229   /* Line up with the buttons in the other grid bits: */
230   margin-left: 4px !important;
231   margin-right: 4px !important;
232 }
233
234 #notificationsPolicyLearnMore {
235   -moz-margin-start: 1.5em !important;
236 }
237
238 #defaultFontSizeLabel {
239   /* !important needed to override common !important rule */
240   -moz-margin-start: 4px !important;
241 }
242
243 /* Applications Pane Styles */
244
245 #applicationsContent {
246   padding: 15px 0;
247 }
248
249 #filter {
250   -moz-margin-start: 0;
251 }
252
253 #handlersView {
254   height: 25em;
255 }
256
257 #handlersView > richlistitem {
258   min-height: 36px !important;
259 }
260
261 .typeIcon {
262   -moz-margin-start: 10px !important;
263   -moz-margin-end: 9px !important;
264 }
265
266 .actionIcon {
267   -moz-margin-start: 11px !important;
268   -moz-margin-end: 8px !important;
269 }
270
271 .actionsMenu {
272   min-height: 36px;
273 }
274
275 .actionsMenu > menupopup > menuitem {
276   -moz-padding-start: 10px !important;
277 }
278
279 .actionsMenu > menupopup > menuitem > .menu-iconic-left {
280   -moz-margin-end: 8px !important;
281 }
282
283 /* Privacy pane */
284
285 #doNotTrackInfo,
286 #trackingProtectionPBMLearnMore,
287 #trackingProtectionLearnMore {
288   -moz-margin-start: 1.5em !important;
289   margin-top: 0;
290 }
291
292 /* Collapse the non-active vboxes in decks to use only the height the
293    active vbox needs */
294 #historyPane:not([selectedIndex="1"]) > #historyDontRememberPane,
295 #historyPane:not([selectedIndex="2"]) > #historyCustomPane,
296 #weavePrefsDeck:not([selectedIndex="1"]) > #hasAccount,
297 #weavePrefsDeck:not([selectedIndex="2"]) > #needsUpdate,
298 #weavePrefsDeck:not([selectedIndex="3"]) > #noFxaAccount,
299 #weavePrefsDeck:not([selectedIndex="4"]) > #hasFxaAccount,
300 #fxaLoginStatus:not([selectedIndex="1"]) > #fxaLoginUnverified,
301 #fxaLoginStatus:not([selectedIndex="2"]) > #fxaLoginRejected {
302   visibility: collapse;
303 }
304
305 /* XXX This style is for bug 740213 and should be removed once that
306    bug has a solution. */
307 description > html|a {
308   cursor: pointer;
309 }
310
311 #noFxaAccount {
312   /* Overriding the margins from the base preferences.css theme file.
313      These overrides can be simplified by fixing bug 1027174 */
314   margin: 0;
315 }
316
317 #weavePrefsDeck > vbox > label,
318 #weavePrefsDeck > vbox > groupbox,
319 #weavePrefsDeck > vbox > description,
320 #weavePrefsDeck > vbox > #pairDevice > label,
321 #weavePrefsDeck > #needsUpdate > hbox > #loginError,
322 #weavePrefsDeck > #hasFxaAccount > vbox > label,
323 #weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-normal) > label {
324   /* no margin-start for elements at the begin of a line */
325   -moz-margin-start: 0;
326 }
327
328 #advancedPrefs {
329   padding-bottom: 0; /* no padding needed in inContent prefs */
330 }
331
332 #tabsElement {
333 /*  -moz-margin-end: 4px; / add the 4px end-margin of other elements */
334 }
335
336 #telemetryLearnMore,
337 #FHRLearnMore,
338 #crashReporterLearnMore {
339   /* provide some margin between the links and the label text */
340   /* !important is needed to override the rules defined in common.css */
341   -moz-margin-start: 20px !important;
342   /* center the links */
343   margin-top: 8px;
344   margin-bottom: 8px;
345 }
346
347 .indent {
348   /* !important needed to override -moz-margin-start:0 !important; rule
349      define in common.css for labels - but not in LCARStrek*/
350   -moz-margin-start: 33px /*!important*/;
351 }
352  
353 .text-link {
354   margin-bottom: 0;
355 }
356
357 #showUpdateHistory {
358   -moz-margin-start: 0;
359 }
360
361 /**
362  * Dialog
363  */
364
365 #dialogOverlay {
366   background-color: rgba(0,0,0,0.75);
367   visibility: hidden;
368 }
369
370 #dialogBox {
371   background-color: #000000;
372   background-clip: content-box;
373   color: #FF9F00;
374   /* font-size: 14px; */
375   border: 1px solid #9C9CFF;
376   border-radius: 10px;
377   display: -moz-box;
378   margin: 0;
379   padding-right: 6px;
380   padding-left: 6px;
381 }
382
383 #dialogBox[resizable="true"] {
384   resize: both;
385   overflow: hidden;
386   min-height: 20em;
387   min-width: 66ch;
388 }
389
390 #dialogBox > .groupbox-title {
391   -moz-margin-start: 0;
392   -moz-margin-end: 0;
393 /*  padding: 3.5px 0;
394   background-color: #F1F1F1; */
395 }
396
397 #dialogTitle {
398   text-align: center;
399   -moz-user-select: none;
400 }
401
402 .close-icon {
403   background-color: transparent !important;
404   border: none;
405   box-shadow: none;
406   padding: 0;
407   height: auto;
408   min-height: 16px;
409   min-width: 0;
410 }
411
412 #dialogBox > .groupbox-title > caption {
413   margin: 0;
414   border-radius: 1000px;
415   background-color: #A09090;
416 }
417
418 #dialogBox > .groupbox-body {
419   -moz-appearance: none;
420   padding: 0;
421 }
422
423 #dialogFrame {
424   -moz-box-flex: 1;
425   /* Default dialog dimensions */
426   height: 20em;
427   width: 66ch;
428 }
429
430 .largeDialogContainer.doScroll {
431   overflow-y: auto;
432   -moz-box-flex: 1;
433 }
434
435 /**
436  * End Dialog
437  */
438
439 /**
440  * Font dialog menulist fixes
441  */
442
443 #defaultFontType,
444 #serif,
445 #sans-serif,
446 #monospace {
447   min-width: 30ch;
448 }
449
450 /**
451  * Sync
452  */
453
454 #fxaProfileImage {
455   max-width: 60px;
456   border-radius: 50%;
457   list-style-image: url(chrome://browser/skin/fxa/default-avatar.png);
458   margin-inline-end: 15px;
459 }
460
461 #fxaProfileImage.actionable {
462   cursor: pointer;
463 }
464
465 #fxaProfileImage.actionable:hover {
466   box-shadow: 0px 0px 0px 1px #FFCF00;
467 }
468
469 #fxaProfileImage.actionable:hover:active {
470   box-shadow: 0px 0px 0px 1px #FF9F00;
471 }
472
473 #noFxaAccount {
474   /* Overriding the margins from the base preferences.css theme file.
475      These overrides can be simplified by fixing bug 1027174 */
476   margin: 0;
477   padding-top: 15px;
478 }
479
480 #fxaContentWrapper {
481   -moz-box-flex: 1;
482 }
483
484 #noFxaGroup {
485   -moz-box-flex: 1;
486   margin: 0;
487 }
488
489 #fxaContentWrapper {
490   padding-right: 15px;
491 }
492
493 #noFxaGroup > vbox,
494 #fxaGroup {
495   -moz-box-align: start;
496 }
497
498 #syncStatusMessage {
499   visibility: collapse;
500   opacity: 0;
501   transition: opacity 1s linear;
502   padding: 14px 8px 14px 14px;
503   border-radius: 2px;
504 }
505
506 #syncStatusMessage[message-type] {
507   visibility: visible;
508   opacity: 1;
509 }
510
511 #syncStatusMessage[message-type="verify-success"] {
512   background-color: #008484;
513 }
514
515 #syncStatusMessage[message-type="verify-error"] {
516   background-color: #FF0000;
517 }
518
519 #syncStatusMessage[message-type="migration"] {
520   background-color: #FF9F00;
521 }
522
523 #syncStatusMessageWrapper {
524   -moz-box-flex: 1;
525   padding-right: 5px;
526 }
527
528 #syncStatusMessageTitle, #syncStatusMessageDescription {
529   color: #9C9CFF;
530 }
531
532 #syncStatusMessage[message-type="migration"] #syncStatusMessageTitle {
533   display: none;
534 }
535
536 #syncStatusMessageTitle {
537   font-weight: bold !important;
538   font-size: 16px;
539   line-height: 157%;
540   margin: 0 0 20px;
541 }
542
543 #syncStatusMessageDescription {
544   font-size: 14px;
545   line-height: 158%;
546   margin: 0 !important;
547 }
548
549 #syncStatusMessageClose {
550   margin: 0px;
551 }
552
553 #syncStatusMessage {
554   visibility: collapse;
555   opacity: 0;
556   transition: opacity 1s linear;
557   padding: 14px 8px 14px 14px;
558   border-radius: 2px;
559 }
560
561 #syncStatusMessage[message-type] {
562   visibility: visible;
563   opacity: 1;
564 }
565
566 #syncStatusMessage[message-type="verify-success"] {
567   background-color: #008484;
568 }
569
570 #syncStatusMessage[message-type="verify-error"] {
571   background-color: #FF0000;
572 }
573
574 #syncStatusMessage[message-type="migration"] {
575   background-color: #FFCF00;
576 }
577
578 #syncStatusMessageWrapper {
579   -moz-box-flex: 1;
580   padding-right: 5px;
581 }
582
583 #syncStatusMessageTitle, #syncStatusMessageDescription {
584   color: #A09090;
585 }
586
587 #syncStatusMessage[message-type="migration"] #syncStatusMessageTitle {
588   display: none;
589 }
590
591 #syncStatusMessageTitle {
592   font-weight: bold !important;
593   font-size: 16px;
594   line-height: 157%;
595   margin: 0 0 20px;
596 }
597
598 #syncStatusMessageDescription {
599   font-size: 14px;
600   line-height: 158%;
601   margin: 0 !important;
602 }
603
604 #syncStatusMessageClose {
605   margin: 0px;
606 }
607
608 #fxaSyncEngines > vbox:first-child {
609   margin-right: 80px;
610 }
611
612 #fxaSyncComputerName {
613   margin-inline-start: 0px;
614   -moz-box-flex: 1;
615 }
616
617 #tosPP-small-ToS {
618   margin-bottom: 1em;
619 }
620
621 #fxaLoginRejectedWarning {
622   list-style-image: url("chrome://browser/skin/warning.svg");
623   margin: 4px 8px 0px 0px;
624 }
625
626 #noFxaCaption {
627   font-weight: bold;
628   margin-bottom: 11px;
629 }
630
631 .fxaSyncIllustration {
632   margin-top: 35px;
633 }
634
635 #syncOptions caption {
636   margin-bottom: 11px;
637 }
638
639 #fxaSyncComputerName {
640   margin-left: 0px;
641 }
642
643 #noFxaDescription {
644   margin-bottom: 20px !important;
645 }
646
647 .separator {
648   border-bottom: 1px solid var(--in-content-header-border-color);
649 }
650
651 .fxaAccountBox {
652   border: 1px solid #A09090;
653   border-radius: 5px;
654   padding: 14px 20px 14px 14px;
655 }
656
657 #signedOutAccountBoxTitle {
658   font-weight: bold;
659 }
660
661 .fxaAccountBoxButtons {
662   margin-bottom: 0 !important;
663   margin-top: 11px;
664 }
665
666 .fxaAccountBoxButtons > * {
667   -moz-box-flex: 1;
668 }
669
670 .fxaAccountBoxButtons > button {
671   text-align: center;
672   padding-left: 11px;
673   padding-right: 11px;
674   margin: 0;
675   min-width: 0;
676 }
677
678 .fxaAccountBoxButtons > button:first-child {
679   margin-right: 14px !important;
680 }
681
682 .fxaSyncIllustration {
683   width: 231px;
684   list-style-image: url(chrome://browser/skin/fxa/sync-illustration.png)
685 }
686
687 #fxaEmailAddress1,
688 #fxaEmailAddress2,
689 #fxaEmailAddress3 {
690   word-break: break-all;
691 }
692
693 .fxaFirefoxLogo {
694   list-style-image: url(chrome://browser/skin/fxa/logo.png);
695   max-width: 64px;
696   margin-inline-end: 14px;
697 }
698
699 .fxaMobilePromo {
700   margin-bottom: 31px;
701 }
702
703 #fxaLoginRejectedWarning {
704   list-style-image: url(chrome://browser/skin/warning.svg);
705   filter: drop-shadow(0 1px 0 hsla(206, 50%, 10%, .15));
706   margin: 4px 8px 0px 0px;
707 }
708
709 #syncOptions {
710   margin-bottom: 27.5px;
711 }
712
713 .androidLink,
714 .iOSLink {
715   margin: 0;
716 }
717
718 #tosPP-small {
719   margin-top: 20px;
720   margin-bottom: 20px;
721 }
722
723 @media (min-resolution: 1.1dppx) {
724   .fxaSyncIllustration {
725     list-style-image: url(chrome://browser/skin/fxa/sync-illustration@2x.png)
726   }
727   .fxaFirefoxLogo {
728     list-style-image: url(chrome://browser/skin/fxa/logo@2x.png);
729   }
730   #fxaProfileImage {
731     list-style-image: url(chrome://browser/skin/fxa/default-avatar@2x.png);
732   }
733 }
734
735 /* === END shared/incontentprefs/preferences.inc.css === */
736
737 caption {
738 }
739
740 .indent-small {
741   -moz-margin-start: 10px;
742 }
743
744 @media (min-resolution: 2dppx) {
745   checkbox:hover::before,
746   checkbox[checked]::before {
747   }
748
749   checkbox[checked]::before {
750   }
751 }