some corrections and finishing touches to that LCARStrek works well for Firefox 55...
[themes.git] / LCARStrek / browser / preferences / in-content / preferences.css
CommitLineData
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
13875a54 5/* === BEGIN shared/incontentprefs/preferences.inc.css === */
bb9362a9
RK
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 30 font-size: 1.25rem;
6edbc6e8 31 color: #FF9F00;
bb9362a9
RK
32}
33
8922acc9
RK
34* {
35 -moz-user-select: text;
36}
37
38button,
39treecol {
40 /* override the * rule */
41 -moz-user-select: none;
42}
d7b7f7e1
RK
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}
8922acc9 64
b9060895 65.learnMore {
d0f28e61 66 margin-inline-start: 10px;
b9060895
RK
67 font-weight: normal;
68 white-space: nowrap;
69}
70
bb9362a9
RK
71/* Category List */
72
73#categories {
d533ec21 74 max-height: 100vh;
bb9362a9
RK
75}
76
d533ec21
RK
77#categories > scrollbox {
78 overflow-x: hidden !important;
79}
80
d533ec21
RK
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
bb9362a9 91#category-general > .category-icon {
e184b661 92 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general");
bb9362a9
RK
93}
94
95#category-general:hover > .category-icon,
96#category-general[selected] > .category-icon {
e184b661 97 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general-active");
bb9362a9
RK
98}
99
9a225e4b
RK
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 {
66b04a00 110 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content");
bb9362a9
RK
111}
112
9a225e4b
RK
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
bb9362a9
RK
122#category-application:hover > .category-icon,
123#category-application[selected] > .category-icon {
9a225e4b 124 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications-active");
bb9362a9
RK
125}
126
127#category-privacy > .category-icon {
9a225e4b 128 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy");
bb9362a9
RK
129}
130
131#category-privacy:hover > .category-icon,
132#category-privacy[selected] > .category-icon {
9a225e4b
RK
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 {
e184b661 142 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security-active");
bb9362a9
RK
143}
144
145#category-sync > .category-icon {
e184b661 146 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync");
bb9362a9
RK
147}
148
149#category-sync:hover > .category-icon,
150#category-sync[selected] > .category-icon {
e184b661 151 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync-active");
bb9362a9
RK
152}
153
154#category-advanced > .category-icon {
e184b661 155 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced");
bb9362a9
RK
156}
157
158#category-advanced:hover > .category-icon,
159#category-advanced[selected] > .category-icon {
e184b661 160 list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced-active");
bb9362a9
RK
161}
162
b3bf08b1
RK
163@media (max-width: 800px) {
164 .category-name {
165 display: none;
166 }
3d739599
RK
167 .help-button {
168 font-size: 0 !important;
169 }
b3bf08b1
RK
170}
171
3d739599 172
bb9362a9
RK
173/* header */
174
d23bf94a
RK
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
9a225e4b
RK
185#header-advanced {
186 border-bottom: none;
187 padding-bottom: 0;
188}
189
bb9362a9
RK
190.indent {
191 margin-top: 7px;
192 margin-bottom: 7px;
193}
194
195/* General Pane */
bb9362a9 196
d533ec21
RK
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
e548e22e
RK
234#useFirefoxSync {
235 font-size: 90%;
dae45075 236 margin-inline-end: 8px !important;
e548e22e
RK
237}
238
239#getStarted {
240 font-size: 90%;
241}
242
a21f2959
RK
243#isNotDefaultLabel {
244 font-weight: bold;
bb9362a9
RK
245}
246
d0f28e61
RK
247#browserHomePage:-moz-locale-dir(rtl) input {
248 unicode-bidi: plaintext;
249 direction: rtl;
250}
251
9a225e4b 252/* Content pane */
05148fed
RK
253#defaultFontSizeLabel {
254 /* !important needed to override common !important rule */
dae45075 255 margin-inline-start: 4px !important;
05148fed
RK
256}
257
bb9362a9
RK
258/* Applications Pane Styles */
259
9a225e4b
RK
260#applicationsContent {
261 padding: 15px 0;
262}
263
3d64e0ce 264#filter {
dae45075 265 margin-inline-start: 0;
bb9362a9
RK
266}
267
368d0b7f
RK
268#handlersView {
269 height: 25em;
270}
271
bb9362a9 272#handlersView > richlistitem {
b3bf08b1 273 min-height: 36px !important;
bb9362a9
RK
274}
275
276.typeIcon {
dae45075
RK
277 margin-inline-start: 10px !important;
278 margin-inline-end: 9px !important;
bb9362a9
RK
279}
280
281.actionIcon {
dae45075
RK
282 margin-inline-start: 11px !important;
283 margin-inline-end: 8px !important;
bb9362a9
RK
284}
285
286.actionsMenu {
b3bf08b1 287 min-height: 36px;
bb9362a9
RK
288}
289
290.actionsMenu > menupopup > menuitem {
dae45075 291 padding-inline-start: 10px !important;
bb9362a9
RK
292}
293
294.actionsMenu > menupopup > menuitem > .menu-iconic-left {
dae45075 295 margin-inline-end: 8px !important;
bb9362a9
RK
296}
297
b1dfcf32
RK
298/* Privacy pane */
299
db1c5db1
RK
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
e184b661
RK
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,
d0f28e61 315#weavePrefsDeck:not([selectedIndex="1"]) > #hasFxaAccount,
e184b661
RK
316#fxaLoginStatus:not([selectedIndex="1"]) > #fxaLoginUnverified,
317#fxaLoginStatus:not([selectedIndex="2"]) > #fxaLoginRejected {
318 visibility: collapse;
319}
320
bb9362a9
RK
321/* XXX This style is for bug 740213 and should be removed once that
322 bug has a solution. */
323description > html|a {
324 cursor: pointer;
325}
326
9168a62c 327#noFxaAccount {
b9060895 328 padding-top: 15px;
9168a62c
RK
329}
330
331#weavePrefsDeck > vbox > label,
332#weavePrefsDeck > vbox > groupbox,
333#weavePrefsDeck > vbox > description,
334#weavePrefsDeck > vbox > #pairDevice > label,
335#weavePrefsDeck > #needsUpdate > hbox > #loginError,
d74db938
RK
336#weavePrefsDeck > #hasFxaAccount > vbox > label,
337#weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-normal) > label {
9ff3770c 338 /* no margin-inline-start for elements at the begin of a line */
dae45075 339 margin-inline-start: 0;
9168a62c
RK
340}
341
bb9362a9
RK
342#advancedPrefs {
343 padding-bottom: 0; /* no padding needed in inContent prefs */
344}
345
20752032 346#tabsElement {
dae45075 347/* margin-inline-end: 4px; / add the 4px end-margin of other elements */
20752032
RK
348}
349
fa703ff4 350.indent {
dae45075 351 /* !important needed to override margin-inline-start:0 !important; rule
fa703ff4 352 define in common.css for labels - but not in LCARStrek*/
dae45075 353 margin-inline-start: 33px /*!important*/;
fa703ff4
RK
354}
355
1437a48c
RK
356.text-link {
357 margin-bottom: 0;
8c5bee4f 358}
6edbc6e8 359
e184b661 360#showUpdateHistory {
dae45075 361 margin-inline-start: 0;
e184b661
RK
362}
363
7327c957
RK
364#fxaProfileImage {
365 -moz-user-focus: normal;
366}
367
6edbc6e8 368/**
c1080df6 369 * Dialog
6edbc6e8
RK
370 */
371
9a225e4b 372.dialogOverlay {
6edbc6e8
RK
373 visibility: hidden;
374}
375
9a225e4b
RK
376.dialogOverlay[topmost="true"] {
377 background-color: rgba(0,0,0,0.75);
378}
379
380.dialogBox {
c1080df6 381 background-color: #000000;
20752032 382 background-clip: content-box;
c1080df6
RK
383 color: #FF9F00;
384 /* font-size: 14px; */
6edbc6e8 385 border: 1px solid #9C9CFF;
c1080df6 386 border-radius: 10px;
6edbc6e8
RK
387 display: -moz-box;
388 margin: 0;
389 padding-right: 6px;
390 padding-left: 6px;
391}
392
9a225e4b 393.dialogBox[resizable="true"] {
6edbc6e8
RK
394 resize: both;
395 overflow: hidden;
c1080df6 396 min-height: 20em;
6edbc6e8
RK
397 min-width: 66ch;
398}
399
9a225e4b 400.dialogBox > .groupbox-title {
dae45075
RK
401 margin-inline-start: 0;
402 margin-inline-end: 0;
de5e780d
RK
403/* padding: 3.5px 0;
404 background-color: #F1F1F1; */
405}
406
9a225e4b 407.dialogTitle {
de5e780d 408 text-align: center;
b336389b 409 -moz-user-select: none;
c1080df6
RK
410}
411
6edbc6e8
RK
412.close-icon {
413 background-color: transparent !important;
414 border: none;
415 box-shadow: none;
6edbc6e8 416 padding: 0;
c9b0a396
RK
417 height: auto;
418 min-height: 16px;
419 min-width: 0;
6edbc6e8
RK
420}
421
9a225e4b 422.dialogBox > .groupbox-title > caption {
d4d77dc0
RK
423 margin: 0;
424 border-radius: 1000px;
425 background-color: #A09090;
426}
427
9a225e4b 428.dialogBox > .groupbox-body {
6edbc6e8
RK
429 -moz-appearance: none;
430 padding: 0;
431}
432
9a225e4b 433.dialogFrame {
6edbc6e8
RK
434 -moz-box-flex: 1;
435 /* Default dialog dimensions */
6edbc6e8
RK
436 width: 66ch;
437}
438
e184b661
RK
439.largeDialogContainer.doScroll {
440 overflow-y: auto;
441 -moz-box-flex: 1;
442}
443
6edbc6e8 444/**
c1080df6 445 * End Dialog
6edbc6e8
RK
446 */
447
31bc2dc1
RK
448/**
449 * Font dialog menulist fixes
450 */
451
452#defaultFontType,
453#serif,
454#sans-serif,
455#monospace {
456 min-width: 30ch;
457}
458
b336389b
RK
459/**
460 * Sync
461 */
462
13875a54
RK
463#fxaProfileImage {
464 max-width: 60px;
465 border-radius: 50%;
7c1e433b 466 list-style-image: url(chrome://browser/skin/fxa/default-avatar.svg);
13875a54 467 margin-inline-end: 15px;
7c1e433b
RK
468 image-rendering: -moz-crisp-edges;
469}
470
471#fxaLoginStatus[hasName] #fxaProfileImage {
472 max-width: 80px;
13875a54
RK
473}
474
475#fxaProfileImage.actionable {
476 cursor: pointer;
477}
478
479#fxaProfileImage.actionable:hover {
1437a48c 480 box-shadow: 0px 0px 0px 1px #FFCF00;
13875a54
RK
481}
482
483#fxaProfileImage.actionable:hover:active {
1437a48c 484 box-shadow: 0px 0px 0px 1px #FF9F00;
13875a54
RK
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
13875a54
RK
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 {
19988d2d
RK
522 margin-bottom: 1em;
523}
524
525#fxaLoginRejectedWarning {
526 list-style-image: url("chrome://browser/skin/warning.svg");
527 margin: 4px 8px 0px 0px;
13875a54
RK
528}
529
530#noFxaCaption {
531 font-weight: bold;
532 margin-bottom: 11px;
533}
534
38bd4bf1
RK
535#verifiedManage:visited {
536 color: var(--in-content-link-color);
537}
538
13875a54
RK
539.fxaSyncIllustration {
540 margin-top: 35px;
1b1f3d09
RK
541 width: 231px;
542 -moz-context-properties: fill;
543 fill: #9C9CFF;
13875a54
RK
544}
545
546#syncOptions caption {
547 margin-bottom: 11px;
548}
549
19988d2d
RK
550#fxaSyncComputerName {
551 margin-left: 0px;
13875a54
RK
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;
39819724
RK
575 display: flex;
576 align-items: center;
13875a54
RK
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 {
b9060895 592 margin-inline-end: 14px !important;
13875a54
RK
593}
594
7c1e433b
RK
595#fxaLoginStatus[hasName] #fxaEmailAddress1 {
596 font-size: 1.1rem;
597}
598
13875a54
RK
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 {
7327c957
RK
612 margin-bottom: 20px;
613 margin-top: 25px;
13875a54
RK
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
7327c957
RK
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
13875a54
RK
634.androidLink,
635.iOSLink {
7327c957
RK
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;
13875a54
RK
642}
643
644#tosPP-small {
645 margin-top: 20px;
646 margin-bottom: 20px;
647}
648
649@media (min-resolution: 1.1dppx) {
7327c957
RK
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 }
13875a54
RK
656 .fxaFirefoxLogo {
657 list-style-image: url(chrome://browser/skin/fxa/logo@2x.png);
658 }
13875a54
RK
659}
660
3d739599
RK
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
13875a54 716/* === END shared/incontentprefs/preferences.inc.css === */
bb9362a9 717
0bcd5587
RK
718caption {
719}
720
bb9362a9 721.indent-small {
dae45075 722 margin-inline-start: 10px;
bb9362a9
RK
723}
724
725@media (min-resolution: 2dppx) {
726 checkbox:hover::before,
727 checkbox[checked]::before {
728 }
729
730 checkbox[checked]::before {
731 }
bb9362a9 732}