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