some corrections and finishing touches to that LCARStrek works well for Firefox 55...
[themes.git] / LCARStrek / global / in-content / common.css
CommitLineData
9168a62c
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
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5/* === BEGIN common.inc.css === */
6
7@namespace html "http://www.w3.org/1999/xhtml";
8@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
1988bb88 9
ed351b91
RK
10*|*:root {
11 --in-content-page-color: #FF9F00;
12 --in-content-page-background: #000000;
13 --in-content-text-color: #FF9F00;
14 --in-content-selected-text: #000000;
1cf9b082 15 --in-content-header-border-color: #A09090;
ed351b91
RK
16 --in-content-button-background: #C09070;
17 --in-content-box-background: #000000;
18 ---in-content-box-background-odd: #f3f6fa;
19 --in-content-box-background-hover: #FFCF00;
20 --in-content-box-background-active: #FF9F00;
21 --in-content-box-background-disabled: #402858;
22 --in-content-box-border-color: #FF9F00;
23 ---in-content-item-hover: rgba(0,149,221,0.25);
24 ---in-content-item-selected: #0095dd;
25 ---in-content-border-highlight: #33FF33;
26 --in-content-border-focus: #FFCF00;
27 --in-content-border-color: #9C9CFF;
28 --in-content-border-disabled: #8050B0;
29 --in-content-category-text: #FFCF00;
30 --in-content-category-border-focus: 1px dotted #000000;
31 --in-content-category-text-selected: #000000;
32 --in-content-categorylist-background: #A09090;
33 --in-content-category-background: #000000;
34 --in-content-category-background-hover: #FFCF00;
35 --in-content-category-background-active: #008484;
36 ---in-content-tab-color: #424f5a;
37 --in-content-link-color: #3333FF;
38 --in-content-link-color-hover: #FFCF00;
39 --in-content-link-color-active: #FF9F00;
40 --in-content-link-color-visited: #6000CF;
41 --in-content-primary-button-background: #A06060;
42 --in-content-primary-button-background-hover: #FFCF00;
43 --in-content-primary-button-background-active: #FF9F00;
44 --in-content-table-border-dark-color: #9C9CFF;
45 --in-content-table-header-background: #A09090;
ed351b91
RK
46 --in-content-disabled-text: #8050B0;
47}
b1dfcf32
RK
48
49@-moz-document url("about:privatebrowsing") {
50 #bar {
51 background-color: #6000CF !important;
52 color: #FFCF00 !important;
53 }
54
55 #tpEnabled {
56 background-color: #008484 !important;
57 color: #000000 !important;
58 }
59
60 #tpDisabled {
61 background-color: #FF0000 !important;
62 color: #000000 !important;
63 }
64
65 #trackingProtectionSection {
66 border-color: #A09090 !important;
67 }
68}
69
d471380e 70html|html,
e6947267
RK
71xul|page,
72xul|window {
1988bb88 73 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
9168a62c 74 -moz-appearance: none;
ed351b91
RK
75 background-color: var(--in-content-page-background);
76 color: var(--in-content-page-color);
9168a62c
RK
77}
78
79html|body {
80 font-size: 15px;
81 font-weight: normal;
82 margin: 0;
83}
84
85html|h1 {
86 font-size: 2.5em;
87 font-weight: lighter;
88 line-height: 1.2;
ed351b91 89 color: var(--in-content-text-color);
9168a62c
RK
90 margin: 0;
91 margin-bottom: .5em;
92}
93
e6947267
RK
94html|hr {
95 border-style: solid none none none;
ed351b91 96 border-color: var(--in-content-border-color);
e6947267
RK
97}
98
9168a62c 99xul|caption {
9168a62c
RK
100}
101
987dae1b
RK
102html|h2,
103xul|caption > xul|checkbox,
104xul|caption > xul|label {
105}
106
e6947267 107xul|caption > xul|checkbox,
9168a62c 108xul|caption > xul|label {
1988bb88
RK
109 margin-top: 0;
110 margin-bottom: 0;
9168a62c
RK
111}
112
113*|*.main-content {
21c0144b 114 padding-top: 40px;
dae45075 115 padding-inline-end: 48px; /* orig is 44px to compensate the 4px margin of child elements */
21c0144b 116 padding-bottom: 48px;
dae45075 117 padding-inline-start: 48px;
9168a62c
RK
118 overflow: auto;
119}
120
121xul|prefpane > xul|*.content-box {
122 overflow: visible;
123}
1988bb88 124
9168a62c
RK
125/* groupboxes */
126/*
127xul|groupbox {
128 -moz-appearance: none;
129 border: none;
e6947267 130 margin: 15px 0 0;
dae45075
RK
131 padding-inline-start: 0;
132 padding-inline-end: 0;
9168a62c
RK
133 font-size: 1.25rem;
134}
135
a9f6369d 136xul|groupbox xul|label:not(.menu-accel):not(.menu-text):not(.indent):not(.learnMore),
5d891ecf 137xul|groupbox xul|description {
9168a62c 138 / !important needed to override toolkit !important rule /
dae45075
RK
139 margin-inline-start: 0 !important;
140 margin-inline-end: 0 !important;
9168a62c
RK
141}
142*/
143/* tabpanels and tabs */
144/*
145xul|tabpanels {
146 -moz-appearance: none;
147 font-size: 1.25rem;
148 line-height: 22px;
149 border: none;
150 padding: 0;
151 background-color: transparent;
441d0294 152 color: inherit;
9168a62c
RK
153}
154
155xul|tabs {
156 margin-bottom: 15px;
ed351b91
RK
157 border-top: 1px solid var(--in-content-box-border-color);
158 border-bottom: 1px solid var(--in-content-box-border-color);
159 background-color: var(--in-content-page-background);
9168a62c
RK
160}
161
162xul|*.tabs-left,
163xul|*.tabs-right {
164 border-bottom: none;
165}
166
167xul|tab {
168 -moz-appearance: none;
169 margin-top: 0;
441d0294 170 padding: 4px 20px;
9168a62c 171 min-height: 44px;
ed351b91
RK
172 color: var(--in-content-tab-color);
173 background-color: var(--in-content-page-background);
9168a62c 174 border-width: 0;
d471380e
RK
175 / !important overrides tabbox.css RTL and visuallyselected rules /
176 border-radius: 0 !important;
9168a62c
RK
177 transition: background-color 50ms ease 0s;
178}
179
180xul|tab:hover {
ed351b91 181 background-color: var(--in-content-box-background-hover);
9168a62c
RK
182}
183
ed351b91
RK
184xul|tab[selected] {
185 background-color: var(--in-content-box-background-hover);
441d0294 186 padding-bottom: 0; / compensate the 4px border /
ed351b91 187 border-bottom: 4px solid var(--in-content-border-highlight);
9168a62c
RK
188}
189
190xul|*.tab-text {
191 font-size: 1.3rem;
192 line-height: 22px;
193}
194*/
195/* html buttons */
1988bb88 196
9168a62c 197html|button {
1988bb88
RK
198 border-radius: 300px;
199 border: none;
ed351b91
RK
200 background-color: var(--in-content-button-background);
201 color: var(--in-content-selected-text);
9e756f9d 202 /* override forms.css */
9168a62c
RK
203 font: inherit;
204}
1988bb88 205
9168a62c
RK
206/* xul buttons and menulists */
207/*
208*|button,
dae45075 209html|select,
9168a62c
RK
210xul|colorpicker[type="button"],
211xul|menulist {
212 -moz-appearance: none;
d471380e 213 min-height: 30px;
ed351b91
RK
214 color: var(--in-content-text-color);
215 border: 1px solid var(--in-content-box-border-color);
9168a62c
RK
216 -moz-border-top-colors: none !important;
217 -moz-border-right-colors: none !important;
218 -moz-border-bottom-colors: none !important;
219 -moz-border-left-colors: none !important;
220 border-radius: 2px;
ed351b91 221 background-color: var(--in-content-page-background);
9168a62c 222}
1988bb88 223*/
dbad77ea
RK
224html|select:not([size]):not([multiple]) {
225 background-image: url("chrome://global/skin/arrow/arrow-down.gif");
226 background-position: right 3px center;
227 background-repeat: no-repeat;
228 background-size: auto 18px;
229 font-size: inherit;
230 padding-inline-start: 5px;
231 padding-inline-end: 24px;
232 text-overflow: ellipsis;
233}
234
9168a62c 235html|button:enabled:hover,
dbad77ea 236html|select:not([size]):not([multiple]):enabled:hover,
9168a62c
RK
237xul|button:not([disabled="true"]):hover,
238xul|colorpicker[type="button"]:not([disabled="true"]):hover,
239xul|menulist:not([disabled="true"]):hover {
ed351b91
RK
240 background-color: var(--in-content-box-background-hover);
241 color: var(--in-content-selected-text);
9168a62c
RK
242}
243
244html|button:enabled:hover:active,
dbad77ea 245html|select:not([size]):not([multiple]):enabled:hover:active,
9168a62c
RK
246xul|button:not([disabled="true"]):hover:active,
247xul|colorpicker[type="button"]:not([disabled="true"]):hover:active,
248xul|menulist[open="true"]:not([disabled="true"]) {
ed351b91
RK
249 background-color: var(--in-content-box-background-active);
250 color: var(--in-content-selected-text);
9168a62c
RK
251}
252
253html|button:disabled,
dae45075 254html|select:disabled,
9168a62c
RK
255xul|button[disabled="true"],
256xul|colorpicker[type="button"][disabled="true"],
257xul|menulist[disabled="true"] {
ed351b91
RK
258 background-color: var(--in-content-box-background-disabled);
259 color: var(--in-content-selected-text);
9168a62c 260}
21c0144b
RK
261
262*|button.primary {
ed351b91 263 background-color: var(--in-content-primary-button-background);
21c0144b
RK
264}
265
266html|button.primary:enabled:hover,
267xul|button.primary:not([disabled="true"]):hover {
ed351b91 268 background-color: var(--in-content-primary-button-background-hover);
21c0144b
RK
269}
270
271html|button.primary:enabled:hover:active,
272xul|button.primary:not([disabled="true"]):hover:active {
ed351b91 273 background-color: var(--in-content-primary-button-background-active);
21c0144b 274}
1988bb88 275/*
9168a62c
RK
276xul|colorpicker[type="button"] {
277 padding: 6px;
278 width: 50px;
279}
280
281xul|button > xul|*.button-box,
282xul|menulist > xul|*.menulist-label-box {
283 padding-right: 10px !important;
284 padding-left: 10px !important;
285}
286
e6947267 287xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] {
dae45075 288 margin-inline-end: 5px;
58036cb8
RK
289}
290
9168a62c
RK
291xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
292 -moz-appearance: none;
293 margin: 1px 0;
dae45075 294 margin-inline-start: 10px;
9168a62c
RK
295 padding: 0;
296 width: 10px;
297 height: 16px;
298 border: none;
299 background-color: transparent;
dbad77ea 300 list-style-image: url("chrome://global/skin/in-content/dropdown.svg");
9168a62c
RK
301}
302
441d0294 303*/
9168a62c 304xul|*.help-button {
441d0294 305/*
7729765c
RK
306 min-width: 16px;
307 margin-inline-end: 0;
21c0144b 308 border-width: 0;
9168a62c
RK
309 background-image: none;
310 box-shadow: none;
441d0294
RK
311*/
312 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg");
9168a62c 313}
441d0294 314/*
9168a62c 315xul|*.help-button:not([disabled="true"]):hover {
9168a62c 316 background-image: none;
7729765c
RK
317 / Override default button background /
318 background-color: transparent;
319 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#help-hover");
9168a62c 320}
9168a62c 321xul|*.help-button:not([disabled="true"]):hover:active {
9168a62c 322 background-image: none;
7729765c
RK
323 / Override default button background /
324 background-color: transparent;
325 list-style-image: url("chrome://global/skin/in-content/help-glyph.svg#help-pressed");
9168a62c
RK
326}
327
328xul|*.close-icon > xul|*.button-box,
329xul|*.help-button > xul|*.button-box {
330 padding-top: 0;
331 padding-bottom: 0;
332 padding-right: 0 !important;
333 padding-left: 0 !important;
334}
a21f2959 335*/
9168a62c 336xul|*.help-button > xul|*.button-box > xul|*.button-icon {
7729765c
RK
337 width: 16px;
338 height: 16px;
9168a62c
RK
339}
340
341xul|*.help-button > xul|*.button-box > xul|*.button-text {
342 display: none;
343}
689d5552
RK
344
345html|*.help-button {
346 width: 16px;
347 height: 16px;
348 border: 0;
349 padding: 0;
350 display: inline-block;
351 background-image: url("chrome://global/skin/in-content/help-glyph.svg#help");
352 background-repeat: no-repeat;
353 background-position: center center;
354 background-size: contain;
355}
356
357html|*.help-button:hover {
358 background-image: url("chrome://global/skin/in-content/help-glyph.svg#help-hover");
359}
360
361html|*.help-button:hover:active {
362 background-image: url("chrome://global/skin/in-content/help-glyph.svg#help-pressed");
363}
a21f2959 364/*
9168a62c 365xul|*.spinbuttons-button {
d471380e 366 min-height: initial;
dae45075
RK
367 margin-inline-start: 10px !important;
368 margin-inline-end: 2px !important;
9168a62c
RK
369}
370
371xul|*.spinbuttons-up {
372 margin-top: 2px !important;
373 border-radius: 1px 1px 0 0;
374}
375
376xul|*.spinbuttons-down {
377 margin-bottom: 2px !important;
378 border-radius: 0 0 1px 1px;
379}
380
381xul|*.spinbuttons-button > xul|*.button-box {
382 padding: 1px 5px 2px !important;
383}
384
385xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon {
386 list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
387}
388
389xul|*.spinbuttons-up[disabled="true"] > xul|*.button-box > xul|*.button-icon {
dbad77ea 390 list-style-image: url("chrome://global/skin/arrow/arrow-up-disabled.gif");
9168a62c
RK
391}
392
393xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon {
dbad77ea 394 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
9168a62c
RK
395}
396
397xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon {
dbad77ea 398 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
9168a62c
RK
399}
400
401xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
402 -moz-appearance: none;
dae45075 403 margin-inline-end: 4px;
9168a62c
RK
404 padding: 0;
405 border: none;
406 background-color: transparent;
441d0294 407 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
9168a62c
RK
408}
409
441d0294
RK
410xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon {
411 width: 18px;
412 height: 18px;
9168a62c
RK
413}
414
441d0294
RK
415xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker {
416 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown-disabled")
9168a62c
RK
417}
418
419xul|menulist > xul|menupopup,
420xul|button[type="menu"] > xul|menupopup {
421 -moz-appearance: none;
ed351b91 422 border: 1px solid var(--in-content-box-border-color);
9168a62c 423 border-radius: 2px;
ed351b91 424 background-color: var(--in-content-box-background);
9168a62c
RK
425}
426
427xul|menulist > xul|menupopup xul|menu,
428xul|menulist > xul|menupopup xul|menuitem,
429xul|button[type="menu"] > xul|menupopup xul|menu,
430xul|button[type="menu"] > xul|menupopup xul|menuitem {
431 -moz-appearance: none;
441d0294 432 font-size: 1rem;
ed351b91 433 color: var(--in-content-text-color);
441d0294
RK
434 padding-top: 0.2em;
435 padding-bottom: 0.2em;
dae45075
RK
436 padding-inline-start: 10px;
437 padding-inline-end: 30px;
9168a62c
RK
438}
439
5d891ecf
RK
440xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"],
441xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"],
442xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"],
443xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"] {
ed351b91
RK
444 color: var(--in-content-text-color);
445 background-color: var(--in-content-item-hover);
9168a62c
RK
446}
447
5d891ecf
RK
448xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"],
449xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"],
450xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"],
451xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"] {
ed351b91
RK
452 color: var(--in-content-selected-text);
453 background-color: var(--in-content-item-selected);
5d891ecf
RK
454}
455
456xul|menulist > xul|menupopup > xul|menu[disabled="true"],
457xul|menulist > xul|menupopup > xul|menuitem[disabled="true"],
458xul|button[type="menu"] > xul|menupopup > xul|menu[disabled="true"],
459xul|button[type="menu"] > xul|menupopup > xul|menuitem[disabled="true"] {
460 color: #999;
461 / override the [_moz-menuactive="true"] background color from
462 global/menu.css /
463 background-color: transparent;
9168a62c
RK
464}
465
466xul|menulist > xul|menupopup xul|menuseparator,
467xul|button[type="menu"] > xul|menupopup xul|menuseparator {
468 -moz-appearance: none;
21c0144b 469 margin: 0;
9168a62c 470 padding: 0;
ed351b91 471 border-top: 1px solid var(--in-content-box-border-color);
9168a62c
RK
472 border-bottom: none;
473}
474*/
475/* textboxes */
476/*
dbad77ea
RK
477html|input[type="email"],
478html|input[type="tel"],
d471380e
RK
479html|input[type="text"],
480html|textarea,
481xul|textbox {
9168a62c 482 -moz-appearance: none;
ed351b91 483 color: var(--in-content-text-color);
ed351b91 484 border: 1px solid var(--in-content-box-border-color);
9168a62c
RK
485 -moz-border-top-colors: none !important;
486 -moz-border-right-colors: none !important;
487 -moz-border-bottom-colors: none !important;
488 -moz-border-left-colors: none !important;
489 border-radius: 2px;
ed351b91 490 background-color: var(--in-content-box-background);
9168a62c
RK
491}
492
d471380e
RK
493xul|textbox {
494 min-height: 30px;
495 padding-right: 10px;
496 padding-left: 10px;
497}
498
dae45075
RK
499/ Create a separate rule to unset these styles on .tree-input instead of
500 using :not(.tree-input) so the selector specifity doesn't change. /
501xul|textbox.tree-input {
502 min-height: unset;
503 padding-right: unset;
504 padding-left: unset;
505}
506
dbad77ea
RK
507xul|textbox[type="search"] > .textbox-input-box {
508 background: url(chrome://global/skin/icons/search-textbox.svg) no-repeat center left;
509 padding-inline-start: 16px;
510}
511
512xul|textbox[type="search"] > .textbox-input-box:-moz-locale-dir(rtl) {
513 background-position-x: right;
514}
515
516xul|textbox[type="search"] > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
517 visibility: hidden;
518}
519
520html|input[type="email"],
521html|input[type="tel"],
d471380e
RK
522html|input[type="text"],
523html|textarea {
524 font-family: inherit;
525 font-size: inherit;
526 padding: 5px 10px;
527}
528
dbad77ea
RK
529html|input[type="email"]:focus,
530html|input[type="tel"]:focus,
d471380e
RK
531html|input[type="text"]:focus,
532html|textarea:focus,
9168a62c 533xul|textbox[focused] {
ed351b91 534 border-color: var(--in-content-border-focus);
9168a62c
RK
535}
536
dbad77ea
RK
537html|input[type="email"]:disabled,
538html|input[type="tel"]:disabled,
d471380e
RK
539html|input[type="text"]:disabled,
540html|textarea:disabled,
9168a62c
RK
541xul|textbox[disabled="true"] {
542 opacity: 0.5;
543}
544*/
545/* Links */
cac2a998 546
9168a62c 547html|a,
dae45075 548.text-link {
ed351b91 549 color: var(--in-content-link-color);
9168a62c
RK
550 text-decoration: none;
551}
552
553html|a:hover,
dae45075 554.text-link:hover {
ed351b91 555 color: var(--in-content-link-color-hover);
cac2a998 556 text-decoration: underline;
9168a62c
RK
557}
558
ed351b91
RK
559html|a:visited {
560 color: var(--in-content-link-color-visited);
561}
562
9168a62c 563html|a:hover:active,
dae45075 564.text-link:hover:active {
ed351b91 565 color: var(--in-content-link-color-active);
cac2a998 566 text-decoration: underline;
9168a62c 567}
cac2a998 568
9168a62c 569/* Checkboxes and radio buttons */
e0a15019 570/* Hide the actual checkbox */
e6947267 571html|input[type="checkbox"] {
7729765c
RK
572 opacity: 0;
573 width: 0;
574 pointer-events: none;
e6947267
RK
575 position: absolute;
576}
577
e0a15019 578/* Create a box to style as the checkbox */
1e9e1791 579html|input[type="checkbox"] + html|label::before {
e6947267
RK
580 display: inline-block;
581 content: "";
582 vertical-align: middle;
583}
584
585html|input[type="checkbox"] + html|label {
586 line-height: 0px;
587}
e0a15019 588/*
9168a62c 589xul|checkbox {
dae45075 590 margin-inline-start: 0;
dbad77ea 591 -moz-appearance: none;
9168a62c 592}
e0a15019
RK
593*/
594/* xul|*.checkbox-check, */
1e9e1791 595html|input[type="checkbox"] + html|label::before {
9168a62c
RK
596 -moz-appearance: none;
597 width: 23px;
598 height: 23px;
e0a15019 599 border-radius: 0;
ed351b91 600 border: 1px solid var(--in-content-box-border-color);
dae45075 601 margin-inline-end: 10px;
ed351b91 602 background-color: var(--in-content-box-background);
9168a62c
RK
603 background-position: center center;
604 background-repeat: no-repeat;
9168a62c
RK
605}
606
e0a15019 607/* xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check, */
1e9e1791 608html|input[type="checkbox"]:not(:disabled) + html|label:hover::before {
ed351b91 609 border-color: var(--in-content-border-focus);
9168a62c 610}
e0a15019 611html|input[type="checkbox"]:not(:disabled) + html|label:hover {
ed351b91 612 color: var(--in-content-link-color-hover);
e0a15019
RK
613}
614/*
9168a62c
RK
615xul|*.checkbox-check[checked] {
616 background-image: url("chrome://global/skin/in-content/check.png"),
dbad77ea 617 linear-gradient(#fff, rgba(255,255,255,0.8));
9168a62c 618}
e0a15019 619*/
1e9e1791 620html|input[type="checkbox"]:checked + html|label::before {
e0a15019 621 background-image: url("chrome://global/skin/in-content/check.svg#check");
e6947267
RK
622}
623
e0a15019 624/*xul|checkbox[checked][disabled="true"] > xul|*.checkbox-check,*/
1e9e1791 625html|input[type="checkbox"]:checked:disabled + html|label::before {
e0a15019
RK
626 background-image: url("chrome://global/skin/in-content/check.svg#check-disabled");
627}
1e9e1791 628html|input[type="checkbox"]:checked:not(:disabled) + html|label:hover::before {
e0a15019
RK
629 background-image: url("chrome://global/skin/in-content/check.svg#check-hover");
630}
1e9e1791 631html|input[type="checkbox"]:disabled + html|label::before {
ed351b91 632 border-color: var(--in-content-border-disabled);
e0a15019 633}
e6947267 634html|input[type="checkbox"]:disabled + html|label {
ed351b91 635 color: var(--in-content-disabled-text);
9168a62c 636}
e0a15019 637/*
9168a62c 638xul|*.checkbox-label-box {
dae45075
RK
639 margin-inline-start: -1px; / * negative margin for the transparent border * /
640 padding-inline-start: 0;
9168a62c
RK
641}
642
58036cb8
RK
643xul|richlistitem > xul|*.checkbox-check {
644 margin: 3px 6px;
645}
987dae1b
RK
646*/
647html|*.toggle-container-with-text {
648 display: flex;
649 align-items: center;
650}
651/*
da3c2755 652xul|radio {
dae45075 653 margin-inline-start: 0;
dbad77ea 654 -moz-appearance: none;
da3c2755
RK
655}
656
9168a62c
RK
657xul|*.radio-check {
658 -moz-appearance: none;
659 width: 23px;
660 height: 23px;
ed351b91 661 border: 1px solid var(--in-content-box-border-color);
9168a62c 662 border-radius: 50%;
dae45075 663 margin-inline-end: 10px;
9168a62c
RK
664 background-color: #f1f1f1;
665 background-image: linear-gradient(#fff, rgba(255,255,255,0.80));
666 box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
667}
668
669xul|radio:not([disabled="true"]):hover > xul|*.radio-check {
ed351b91 670 border-color: var(--in-content-border-focus);
9168a62c
RK
671}
672
673xul|*.radio-check[selected] {
21c0144b 674 list-style-image: url("chrome://global/skin/in-content/radio.svg#radio");
9168a62c
RK
675}
676
677xul|radio[disabled="true"] > xul|*.radio-check {
678 opacity: 0.5;
679}
680
681xul|*.radio-label-box {
dae45075
RK
682 margin-inline-start: -1px; / * negative margin for the transparent border * /
683 margin-inline-end: 10px;
684 padding-inline-start: 0;
9168a62c
RK
685}
686*/
687/* Category List */
5d891ecf 688
d471380e 689*|*#categories {
ed351b91 690 background-color: var(--in-content-categorylist-background);
5d891ecf 691 padding-top: 4em;
9168a62c 692 margin: 0;
5d891ecf
RK
693 border-radius: 1em 0 0 0;
694 border: none;
9168a62c
RK
695}
696
d471380e 697*|*.category {
ed351b91
RK
698 background-color: var(--in-content-category-background);
699 color: var(--in-content-category-text);
dae45075
RK
700 border-inline-end-width: 0;
701 padding-inline-start: 15px;
702 padding-inline-end: 21px;
9168a62c
RK
703 min-height: 40px;
704 transition: background-color 150ms;
705}
706
d471380e 707*|*.category:hover {
ed351b91
RK
708 background-color: var(--in-content-category-background-hover);
709 color: var(--in-content-category-text-selected);
9168a62c
RK
710}
711
7729765c
RK
712*|*.category[selected],
713*|*.category.selected {
ed351b91
RK
714 background-color: var(--in-content-category-background-active);
715 color: var(--in-content-category-text-selected);
9168a62c
RK
716}
717
d471380e 718*|*#categories[keyboard-navigation="true"]:-moz-focusring > xul|*.category[current] {
ed351b91
RK
719 border-top: var(--in-content-category-border-focus);
720 border-bottom: var(--in-content-category-border-focus);
9168a62c 721}
5d891ecf 722
9168a62c
RK
723*|*.category-name {
724 line-height: 22px;
725 font-size: 1.25rem;
726 padding-bottom: 2px;
dae45075 727 padding-inline-start: 9px;
9168a62c 728 margin: 0;
e6947267 729 -moz-user-select: none;
9168a62c 730}
5d891ecf 731
9168a62c
RK
732*|*.category-icon {
733 width: 24px;
734 height: 24px;
735}
5d891ecf 736
9168a62c 737/* header */
a21f2959 738
9168a62c 739*|*.header {
dae45075 740/* margin-inline-end: 4px; / add the 4px end-margin of other elements /
ed351b91 741 border-bottom: 1px solid var(--in-content-header-border-color);
9168a62c 742 margin-bottom: 15px;
a21f2959 743 padding-bottom: 15px; */
7729765c 744 -moz-box-align: baseline;
9168a62c
RK
745}
746
747*|*.header-name {
748 font-size: 2.5rem;
749 font-weight: normal;
750 line-height: 40px;
751 margin: 0;
e6947267 752 -moz-user-select: none;
9168a62c 753}
a21f2959 754
9168a62c
RK
755/* File fields */
756/*
757xul|filefield {
758 -moz-appearance: none;
759 background-color: transparent;
760 border: none;
761 padding: 0;
762}
763
764xul|*.fileFieldContentBox {
765 background-color: transparent;
766}
767
768xul|*.fileFieldIcon {
dae45075
RK
769 margin-inline-start: 10px;
770 margin-inline-end: 0;
9168a62c
RK
771}
772
773xul|*.fileFieldLabel {
dae45075
RK
774 margin-inline-start: -26px;
775 padding-inline-start: 36px;
9168a62c
RK
776}
777
778xul|textbox:-moz-locale-dir(rtl),
779xul|*.fileFieldLabel:-moz-locale-dir(rtl),
780xul|textbox + xul|button:-moz-locale-dir(ltr),
781xul|filefield + xul|button:-moz-locale-dir(ltr) {
782 border-top-left-radius: 0;
783 border-bottom-left-radius: 0;
784}
785
786xul|textbox:-moz-locale-dir(ltr),
787xul|*.fileFieldLabel:-moz-locale-dir(ltr),
788xul|textbox + xul|button:-moz-locale-dir(rtl),
789xul|filefield + xul|button:-moz-locale-dir(rtl) {
790 border-top-right-radius: 0;
791 border-bottom-right-radius: 0;
792}
793
794xul|textbox + xul|button,
795xul|filefield + xul|button {
dae45075 796 border-inline-start: none;
9168a62c
RK
797}
798*/
21c0144b
RK
799/* List boxes */
800/*
dbad77ea 801html|select[size][multiple],
21c0144b
RK
802xul|richlistbox,
803xul|listbox {
804 -moz-appearance: none;
dae45075 805 margin-inline-start: 0;
ed351b91
RK
806 background-color: var(--in-content-box-background);
807 border: 1px solid var(--in-content-box-border-color);
808 color: var(--in-content-text-color);
21c0144b
RK
809}
810
dbad77ea 811html|select[size][multiple] > html|option,
21c0144b
RK
812xul|treechildren::-moz-tree-row,
813xul|listbox xul|listitem {
814 padding: 0.3em;
815 margin: 0;
816 border: none;
817 border-radius: 0;
818 background-image: none;
819}
820
dbad77ea 821html|select[size][multiple] > html|option:hover,
21c0144b
RK
822xul|treechildren::-moz-tree-row(hover),
823xul|listbox xul|listitem:hover {
ed351b91 824 background-color: var(--in-content-item-hover);
21c0144b
RK
825}
826
827xul|treechildren::-moz-tree-row(selected),
828xul|listbox xul|listitem[selected="true"] {
ed351b91
RK
829 background-color: var(--in-content-item-selected);
830 color: var(--in-content-selected-text);
21c0144b
RK
831}
832
833/ This is the only way to increase the height of a tree row unfortunately /
834xul|treechildren::-moz-tree-row {
835 min-height: 2em;
836}
837
838/ Color needs to be set on tree cell in order to be applied /
839xul|treechildren::-moz-tree-cell-text {
840 color: #333;
841}
842
843xul|treechildren::-moz-tree-cell-text(selected) {
844 color: #fff;
845}
846*/
847/* Trees */
848/*
849xul|tree {
850 -moz-appearance: none;
851 font-size: 1em;
ed351b91
RK
852 border: 1px solid var(--in-content-box-border-color);
853 background-color: var(--in-content-box-background);
cb8b9460 854 margin: 0;
21c0144b
RK
855}
856
e6947267
RK
857xul|tree:-moz-focusring,
858xul|richlistbox:-moz-focusring {
ed351b91 859 border: 1px dotted var(--in-content-border-focus);
e6947267
RK
860}
861
21c0144b
RK
862xul|listheader,
863xul|treecols {
864 -moz-appearance: none;
865 border: none;
ed351b91 866 border-bottom: 1px solid var(--in-content-border-color);
21c0144b 867 padding: 0;
7729765c
RK
868}
869
870.autocomplete-tree > xul|treecols {
871 border-bottom: none !important;
21c0144b
RK
872}
873
874xul|treecol:not([hideheader="true"]),
875xul|treecolpicker {
876 -moz-appearance: none;
877 border: none;
ed351b91 878 background-color: var(--in-content-box-background-hover);
21c0144b
RK
879 color: #808080;
880 padding: 5px 10px;
881}
882
e6947267 883xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover,
21c0144b 884xul|treecolpicker:hover {
ed351b91
RK
885 background-color: var(--in-content-box-background-active);
886 color: var(--in-content-text-color);
21c0144b
RK
887}
888
889xul|treecol:not([hideheader="true"]):not(:first-child),
890xul|treecolpicker {
dae45075
RK
891 border-inline-start-width: 1px;
892 border-inline-start-style: solid;
21c0144b
RK
893 border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1;
894}
895
896xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
e6947267
RK
897 list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
898 width: 18px;
899 height: 18px;
21c0144b
RK
900}
901
e6947267 902xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] {
21c0144b
RK
903 transform: scaleY(-1);
904}
ed351b91
RK
905
906/ This is the only way to increase the height of a tree row unfortunately /
907xul|treechildren::-moz-tree-row {
908 min-height: 2em;
909}
910
911/ Color needs to be set on tree cell in order to be applied /
912xul|treechildren::-moz-tree-cell-text {
913 color: var(--in-content-text-color);
914}
915
916xul|treechildren::-moz-tree-cell-text(selected) {
917 color: var(--in-content-selected-text);
918}
21c0144b 919*/
9168a62c
RK
920/* === END common.inc.css === */
921/*
922xul|caption {
923 background-color: transparent;
924}
925
926xul|button,
e6947267 927html|button,
9168a62c
RK
928xul|colorpicker[type="button"],
929xul|menulist {
930 margin: 2px 4px;
931}
932
933xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
934 margin-top: 1px;
935 margin-bottom: 1px;
936}
937
938xul|checkbox {
dae45075 939 padding-inline-start: 0;
9168a62c
RK
940}
941
942xul|radio {
943 -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
dae45075 944 padding-inline-start: 0;
9168a62c
RK
945}
946
947xul|*.radio-icon,
948xul|*.checkbox-icon {
dae45075 949 margin-inline-end: 0;
9168a62c 950}
cac2a998 951*/
dae45075 952.text-link:-moz-focusring {
1eb9479d
RK
953 /* Don't specify the outline-color, we should always use initial value. */
954 outline: 1px dotted;
9168a62c 955}