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