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