make themes work for newest nightlies
[themes.git] / LCARStrek / browser / downloads / downloads.css
CommitLineData
64897c3a
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
7327c957
RK
5/* === BEGIN downloads.inc.css === */
6
64897c3a
RK
7/*** Panel and outer controls ***/
8
64897c3a 9#downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
db1c5db1
RK
10 overflow: hidden;
11 display: block;
12}
13
14#downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent,
15#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack > .panel-subviews {
64897c3a
RK
16 padding: 0;
17}
18
19#downloadsListBox {
64897c3a 20 background-color: transparent;
1cf9b082 21 padding: 0;
64897c3a 22 color: inherit;
d23bf94a
RK
23 margin: 0;
24 border: none;
64897c3a
RK
25}
26
db1c5db1 27#emptyDownloads {
d23bf94a
RK
28 padding: 16px 25px;
29 margin: 0;
db1c5db1
RK
30 /* The panel can be wider than this description after the blocked subview is
31 shown, so center the text. */
32 text-align: center;
990cba4b
RK
33}
34
db1c5db1 35.downloadsPanelFooter {
d23bf94a
RK
36/* background-color: var(--arrowpanel-dimmed);
37 border-top: 1px solid var(--panel-separator-color);*/
589b5528
RK
38}
39
1cf9b082
RK
40.downloadsPanelFooter toolbarseparator,
41richlistitem[type="download"] > toolbarseparator {
db1c5db1
RK
42 margin: 0;
43 border: 0;
44 min-width: 0;
d23bf94a
RK
45/* border-left: 1px solid var(--panel-separator-color);
46 -moz-appearance: none;*/
db1c5db1
RK
47}
48
49.downloadsPanelFooterButton {
50 margin: 0;
51 padding: 0;
d23bf94a 52 min-width: 0;
db1c5db1 53/* min-height: 40px;*/
d23bf94a 54 border: none;
db1c5db1
RK
55}
56
57.downloadsPanelFooterButton:hover {
58}
59
d23bf94a
RK
60.downloadsPanelFooterButton:hover:active,
61.downloadsPanelFooterButton[open="true"] {
db1c5db1
RK
62}
63
64.downloadsPanelFooterButton[default] {
65}
66
67.downloadsPanelFooterButton[default]:hover {
68}
69
70.downloadsPanelFooterButton[default]:hover:active {
589b5528
RK
71}
72
d23bf94a
RK
73.downloadsPanelFooterButton > .button-box {
74 padding: 0;
75 margin: 0;
76 border: none;
77}
78
79#downloadsHistory {
80 padding-inline-start: 10px;
81 padding-inline-end: 10px;
82}
83
84#downloadsPanel[hasdownloads] #downloadsFooterButtons:not(.downloadsHideDropmarker) > #downloadsHistory {
85 padding-inline-start: 68px;
86}
87
88toolbarseparator.downloadsDropmarkerSplitter {
89 margin: 7px 0;
90}
91
1cf9b082
RK
92richlistitem[type="download"] > toolbarseparator {
93 margin: 10px 0;
94}
95
96richlistitem[type="download"]:hover > toolbarseparator,
d23bf94a
RK
97#downloadsFooter:hover toolbarseparator.downloadsDropmarkerSplitter,
98#downloadsFooter[showingdropdown] toolbarseparator {
99 margin: 0;
100}
101
102.downloadsDropmarker {
103 padding: 0 21px;
104}
105
106.downloadsDropmarker > .button-box > hbox {
107 display: none;
108}
109
110.downloadsDropmarker > .button-box > .button-menu-dropmarker {
111 display: -moz-box;
112 padding: 0;
113 margin: 0;
114}
115
116.downloadsDropmarker > .button-box > .button-menu-dropmarker > .dropmarker-icon {
117 width: 16px;
118 height: 16px;
119/* list-style-image: url("chrome://browser/skin/downloads/menubutton-dropmarker.svg");
120 filter: url("chrome://browser/skin/filters.svg#fill");
121 fill: currentColor;*/
122}
123
124/* Override default icon size which is too small for this dropdown */
125.downloadsDropmarker > .button-box > .button-menu-dropmarker {
126 width: 16px;
127 height: 16px;
128}
129
7327c957 130#downloadsSummary {
db1c5db1 131 padding: 0 12px;
64897c3a 132 cursor: pointer;
7327c957 133 -moz-user-focus: normal;
64897c3a
RK
134}
135
7327c957 136#downloadsSummary > .downloadTypeIcon {
d23bf94a 137 list-style-image: url("chrome://browser/skin/downloads/download-summary.svg");
64897c3a
RK
138}
139
7327c957
RK
140#downloadsSummaryDescription {
141 color: #3333FF;
649b5d38
RK
142}
143
7327c957 144/*** List items and similar elements in the summary ***/
64897c3a 145
990cba4b 146#downloadsSummary,
64897c3a 147richlistitem[type="download"] {
7327c957 148 height: var(--downloads-item-height);
dae45075 149 padding-inline-end: 0;
990cba4b
RK
150 color: inherit;
151}
152
990cba4b 153richlistitem[type="download"] {
64897c3a 154 margin: 0;
1cf9b082 155 border-bottom: 1px solid var(--panel-separator-color);
64897c3a 156 background: transparent;
1cf9b082 157 padding: 0;
64897c3a
RK
158}
159
1cf9b082
RK
160richlistitem[type="download"]:last-child {
161 border-bottom: none;
162}
163
164richlistitem[type="download"] > .downloadMainArea {
165 padding: 8px;
64897c3a
RK
166}
167
64897c3a 168.downloadTypeIcon {
db1c5db1
RK
169 margin-top: 8px;
170 margin-inline-end: 12px;
171 margin-bottom: 8px;
172 margin-inline-start: 0;
a6757852 173 width: 32px;
db1c5db1
RK
174 height: 32px;
175}
176
177.downloadBlockedBadge {
178 margin: 0 4px;
179 background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat;
180}
181
182downloadBlockedBadge:-moz-locale-dir(rtl) {
183 background-position-x: left;
64897c3a
RK
184}
185
db1c5db1
RK
186richlistitem[type="download"][verdict="PotentiallyUnwanted"] .downloadBlockedBadge {
187 background-image: url("chrome://browser/skin/warning.svg");
188}
189
190richlistitem[type="download"][verdict="Uncommon"] .downloadBlockedBadge {
191 background-image: url("chrome://browser/skin/info.svg");
64897c3a
RK
192}
193
5968ec68
RK
194/* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
195 a vbox with class .downloadContainer. We set the font-size of the entire
7327c957 196 container to --downloads-item-font-size-factor because:
5968ec68
RK
197
198 1) This is the size that we want .downloadDetails to be
199 2) The container's width is set by localizers by &downloadDetails.width;,
200 which is a ch unit. Since this is the value that should control the
201 panel width, we apply it to the outer container to constrain
202 .downloadTarget and .downloadProgress.
203
204 Finally, since we want .downloadTarget's font-size to be at 100% of the
205 font-size of .downloadContainer's parent, we use calc to go from the
206 smaller font-size back to the original font-size.
207 */
208#downloadsSummaryDetails,
209.downloadContainer {
7327c957 210 font-size: calc(100% * var(--downloads-item-font-size-factor));
5968ec68
RK
211}
212
213#downloadsSummaryDescription,
64897c3a 214.downloadTarget {
7327c957 215 margin-bottom: var(--downloads-item-target-margin-bottom);
64897c3a
RK
216 cursor: inherit;
217}
218
5968ec68 219.downloadTarget {
7327c957 220 font-size: calc(100% / var(--downloads-item-font-size-factor));
5968ec68
RK
221}
222
223#downloadsSummaryDetails,
64897c3a 224.downloadDetails {
7327c957
RK
225 margin-top: var(--downloads-item-details-margin-top);
226 opacity: var(--downloads-item-details-opacity);
64897c3a
RK
227 cursor: inherit;
228}
229
1cf9b082
RK
230richlistitem[type="download"][verdict] > toolbarseparator {
231 visibility: hidden;
232}
233
64897c3a 234.downloadButton {
1cf9b082
RK
235 min-width: 58px;
236 margin: 0;
5968ec68 237/* border: none; */
64897c3a 238 background: transparent;
1cf9b082
RK
239 padding: 8px;
240 color: #A09090;
64897c3a
RK
241}
242
1cf9b082
RK
243.downloadButton > .button-box > .button-icon {
244 width: 16px;
245 height: 16px;
246 margin: 1px;
247 filter: url("chrome://browser/skin/filters.svg#fill");
248 fill: currentColor;
249}
250
251.downloadButton > .button-box > .button-text {
252 margin: 0 !important;
64897c3a
RK
253 padding: 0;
254}
255
1cf9b082
RK
256richlistitem[type="download"][state="1"][exists]:hover > .downloadMainArea,
257richlistitem[type="download"]:not([verdict]):hover > .downloadButtonArea {
258 background-color: var(--arrowpanel-dimmed);
259}
260
261richlistitem[type="download"][state="1"][exists] .downloadMainArea:hover,
262richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover,
263richlistitem[type="download"][verdict]:hover {
264 background-color: var(--arrowpanel-dimmed-further);
265}
266
267richlistitem[type="download"][state="1"][exists] > .downloadMainArea:hover:active,
268richlistitem[type="download"]:not([verdict]) > .downloadButtonArea:hover:active,
269richlistitem[type="download"][verdict]:hover:active {
270 background-color: var(--arrowpanel-dimmed-even-further);
271}
272
273richlistitem[type="download"][showingsubview] {
274 background-color: #794900;
275 color: #FFCF00;
276 transition: background-color var(--panelui-subview-transition-duration),
277 color var(--panelui-subview-transition-duration);
278}
279
280richlistitem[type="download"][verdict="Malware"]:hover,
281richlistitem[type="download"][verdict="Malware"]:hover:active,
282richlistitem[type="download"][verdict="Malware"][showingsubview] {
283 background-color: #FF0000;
284 color: #000000;
285}
286
287richlistitem[type="download"][verdict="Malware"]:hover > .downloadButtonArea > .downloadButton {
288 color: inherit;
289}
290
291/*** Button icons ***/
292
293.downloadIconCancel > .button-box > .button-icon {
294 list-style-image: url("chrome://browser/skin/panel-icons.svg#cancel");
295}
296
297.downloadIconShow > .button-box > .button-icon {
298 list-style-image: url("chrome://browser/skin/panel-icons.svg#folder");
299}
300
301.downloadIconRetry > .button-box > .button-icon {
302 list-style-image: url("chrome://browser/skin/panel-icons.svg#retry");
303}
304
305.downloadShowBlockedInfo > .button-box > .button-icon {
306 list-style-image: url("chrome://browser/skin/panel-icons.svg#arrow-right");
307}
308
309.downloadShowBlockedInfo > .button-box > .button-icon:-moz-locale-dir(rtl) {
310 list-style-image: url("chrome://browser/skin/panel-icons.svg#arrow-left");
311}
312
db1c5db1
RK
313/*** Blocked subview ***/
314
315#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype=main] > .panel-subviews {
316 /* When the main view is showing, the shadow on the left edge of the subview is
317 barely visible on the right edge of the main view, so set it to none. */
318 box-shadow: none;
319}
320
321/* When the subview is showing, turn the download button into an arrow pointing
322 back to the main view. */
323#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton {
1cf9b082
RK
324 color: #FFCF00;
325}
326
327#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton > .button-box > .button-icon {
328 list-style-image: url("chrome://browser/skin/panel-icons.svg#arrow-left");
db1c5db1
RK
329}
330
1cf9b082
RK
331#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton > .button-box > .button-icon:-moz-locale-dir(rtl) {
332 list-style-image: url("chrome://browser/skin/panel-icons.svg#arrow-right");
db1c5db1
RK
333}
334
335#downloadsPanel-blockedSubview {
336 background-image: url("chrome://browser/skin/warning.svg");
337 background-size: 32px 32px;
338 background-position: 16px 16px;
339 background-repeat: no-repeat;
340}
341
342#downloadsPanel-blockedSubview:-moz-locale-dir(rtl) {
343 background-position: calc(100% - 16px) 16px;
344}
345
346#downloadsPanel-blockedSubview[verdict=Malware] {
347 background-image: url("chrome://browser/skin/downloads/download-blocked.svg");
348}
349
350#downloadsPanel-blockedSubview-title {
351 margin-top: 16px;
352 margin-bottom: 16px;
353 font-size: calc(100% / var(--downloads-item-font-size-factor));
354}
355
356#downloadsPanel-blockedSubview-details1,
357#downloadsPanel-blockedSubview-details2 {
358 font-size: calc(100% * var(--downloads-item-font-size-factor));
359 margin-bottom: 16px;
360 opacity: var(--downloads-item-details-opacity);
361}
362
363#downloadsPanel-blockedSubview-title,
364#downloadsPanel-blockedSubview-details1,
365#downloadsPanel-blockedSubview-details2 {
366 -moz-margin-start: 64px;
367 -moz-margin-end: 16px;
368}
7327c957
RK
369
370/* === END downloads.inc.css === */
371
372/*** Panel and outer controls ***/
373
db1c5db1 374#downloadsSummary {
7327c957
RK
375}
376
db1c5db1 377#downloadsSummary:hover {
7327c957
RK
378}
379
db1c5db1 380#downloadsSummary:hover:active {
7327c957
RK
381}
382
383#downloadsPanel[keyfocus] #downloadsSummary:focus,
db1c5db1 384#downloadsPanel[keyfocus] .downloadsPanelFooterButton:focus {
7327c957
RK
385 outline: 1px #008484 dotted;
386 outline-offset: -1px;
387}
388
389#downloadsPanel[keyfocus] #downloadsSummary:focus {
390 outline-offset: -5px;
391}
392
db1c5db1
RK
393richlistitem[type="download"][showingsubview] {
394 background-color: Highlight;
395 color: HighlightText;
396 transition: background-color var(--panelui-subview-transition-duration),
397 color var(--panelui-subview-transition-duration);
398}
399
400#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists][verdict="Malware"]:hover,
401#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists][verdict="Malware"]:hover:active,
402richlistitem[type="download"][showingsubview][verdict="Malware"] {
403 background-color: hsl(4, 82%, 47%);
404 color: white;
405}
406
407
7327c957
RK
408/*** List items and similar elements in the summary ***/
409
410:root {
411 --downloads-item-height: 7em;
7327c957
RK
412 --downloads-item-font-size-factor: 0.9;
413 --downloads-item-target-margin-bottom: 6px;
414 --downloads-item-details-margin-top: 0;
415 --downloads-item-details-opacity: 0.6;
416}
417
418.downloadButton > .button-box {
419 border: 1px solid transparent;
420}
421
5968ec68
RK
422#downloadsPanel[keyfocus] .downloadButton:focus > .button-box {
423 border: 1px dotted #008484;
424}
425
7c1e433b
RK
426richlistitem[type="download"][verdict="PotentiallyUnwanted"] .blockedIcon {
427 list-style-image: url("chrome://global/skin/icons/warning.svg");
428}
429
430richlistitem[type="download"][verdict="Uncommon"] .blockedIcon {
431 list-style-image: url("chrome://global/skin/icons/information-32.png");
432}
433
1cf9b082
RK
434@media (-moz-windows-default-theme) {
435 richlistitem[type="download"][verdict="Malware"] {
436 color: #FF0000;
437 }
438}
439
64897c3a
RK
440/*** Highlighted list items ***/
441
7327c957
RK
442#downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
443 outline: 1px #008484 dotted;
444 outline-offset: -1px;
445 /*-moz-outline-radius: 3px;*/
446}