make networking pane work nicely in current nightlies (not completely sure if we...
[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
RK
20 background-color: transparent;
21 padding: 4px;
22 color: inherit;
23}
24
db1c5db1
RK
25#emptyDownloads {
26 padding: 10px 20px;
27 /* The panel can be wider than this description after the blocked subview is
28 shown, so center the text. */
29 text-align: center;
990cba4b
RK
30}
31
db1c5db1
RK
32.downloadsPanelFooter {
33 background-color: #000000;
34 border-top: 1px solid #A09090;
589b5528
RK
35}
36
db1c5db1
RK
37.downloadsPanelFooter > toolbarseparator {
38 margin: 0;
39 border: 0;
40 min-width: 0;
41/* border-left: 1px solid hsla(210,4%,10%,.14);
42 -moz-appearance: none !important;*/
43}
44
45.downloadsPanelFooterButton {
46 margin: 0;
47 padding: 0;
48/* min-height: 40px;*/
49}
50
51.downloadsPanelFooterButton:hover {
52}
53
54.downloadsPanelFooterButton:hover:active {
55}
56
57.downloadsPanelFooterButton[default] {
58}
59
60.downloadsPanelFooterButton[default]:hover {
61}
62
63.downloadsPanelFooterButton[default]:hover:active {
589b5528
RK
64}
65
7327c957 66#downloadsSummary {
db1c5db1 67 padding: 0 12px;
64897c3a 68 cursor: pointer;
7327c957 69 -moz-user-focus: normal;
64897c3a
RK
70}
71
7327c957
RK
72#downloadsSummary > .downloadTypeIcon {
73 list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
64897c3a
RK
74}
75
7327c957
RK
76#downloadsSummaryDescription {
77 color: #3333FF;
649b5d38
RK
78}
79
7327c957 80/*** List items and similar elements in the summary ***/
64897c3a 81
990cba4b 82#downloadsSummary,
64897c3a 83richlistitem[type="download"] {
7327c957 84 height: var(--downloads-item-height);
dae45075 85 padding-inline-end: 0;
990cba4b
RK
86 color: inherit;
87}
88
990cba4b 89richlistitem[type="download"] {
64897c3a 90 margin: 0;
7327c957
RK
91 /*border-top: 1px solid var(--downloads-item-border-top-color);*/
92 border-bottom: 1px solid var(--downloads-item-border-bottom-color);
64897c3a 93 background: transparent;
fcfb76ce 94 padding: 8px;
64897c3a
RK
95}
96
97richlistitem[type="download"]:first-child {
98/* border-top: 1px solid transparent;*/
99}
100
64897c3a 101.downloadTypeIcon {
db1c5db1
RK
102 margin-top: 8px;
103 margin-inline-end: 12px;
104 margin-bottom: 8px;
105 margin-inline-start: 0;
a6757852 106 width: 32px;
db1c5db1
RK
107 height: 32px;
108}
109
110.downloadBlockedBadge {
111 margin: 0 4px;
112 background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat;
113}
114
115downloadBlockedBadge:-moz-locale-dir(rtl) {
116 background-position-x: left;
64897c3a
RK
117}
118
db1c5db1
RK
119richlistitem[type="download"][verdict="PotentiallyUnwanted"] .downloadBlockedBadge {
120 background-image: url("chrome://browser/skin/warning.svg");
121}
122
123richlistitem[type="download"][verdict="Uncommon"] .downloadBlockedBadge {
124 background-image: url("chrome://browser/skin/info.svg");
64897c3a
RK
125}
126
5968ec68
RK
127/* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
128 a vbox with class .downloadContainer. We set the font-size of the entire
7327c957 129 container to --downloads-item-font-size-factor because:
5968ec68
RK
130
131 1) This is the size that we want .downloadDetails to be
132 2) The container's width is set by localizers by &downloadDetails.width;,
133 which is a ch unit. Since this is the value that should control the
134 panel width, we apply it to the outer container to constrain
135 .downloadTarget and .downloadProgress.
136
137 Finally, since we want .downloadTarget's font-size to be at 100% of the
138 font-size of .downloadContainer's parent, we use calc to go from the
139 smaller font-size back to the original font-size.
140 */
141#downloadsSummaryDetails,
142.downloadContainer {
7327c957 143 font-size: calc(100% * var(--downloads-item-font-size-factor));
5968ec68
RK
144}
145
146#downloadsSummaryDescription,
64897c3a 147.downloadTarget {
7327c957 148 margin-bottom: var(--downloads-item-target-margin-bottom);
64897c3a
RK
149 cursor: inherit;
150}
151
5968ec68 152.downloadTarget {
7327c957 153 font-size: calc(100% / var(--downloads-item-font-size-factor));
5968ec68
RK
154}
155
156#downloadsSummaryDetails,
64897c3a 157.downloadDetails {
7327c957
RK
158 margin-top: var(--downloads-item-details-margin-top);
159 opacity: var(--downloads-item-details-opacity);
64897c3a
RK
160 cursor: inherit;
161}
162
163.downloadButton {
64897c3a
RK
164 min-width: 0;
165 min-height: 0;
5968ec68
RK
166 margin: 3px;
167/* border: none; */
64897c3a
RK
168 background: transparent;
169 padding: 5px;
170 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
171}
172
173.downloadButton > .button-box {
174 padding: 0;
175}
176
db1c5db1
RK
177/*** Blocked subview ***/
178
179#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype=main] > .panel-subviews {
180 /* When the main view is showing, the shadow on the left edge of the subview is
181 barely visible on the right edge of the main view, so set it to none. */
182 box-shadow: none;
183}
184
185/* When the subview is showing, turn the download button into an arrow pointing
186 back to the main view. */
187#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton {
188 list-style-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png");
189}
190
191#downloadsPanel-multiView > .panel-viewcontainer > .panel-viewstack[viewtype="subview"] .download-state[showingsubview] .downloadButton:-moz-locale-dir(rtl) {
192 list-style-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted-rtl.png");
193}
194
195#downloadsPanel-blockedSubview {
196 background-image: url("chrome://browser/skin/warning.svg");
197 background-size: 32px 32px;
198 background-position: 16px 16px;
199 background-repeat: no-repeat;
200}
201
202#downloadsPanel-blockedSubview:-moz-locale-dir(rtl) {
203 background-position: calc(100% - 16px) 16px;
204}
205
206#downloadsPanel-blockedSubview[verdict=Malware] {
207 background-image: url("chrome://browser/skin/downloads/download-blocked.svg");
208}
209
210#downloadsPanel-blockedSubview-title {
211 margin-top: 16px;
212 margin-bottom: 16px;
213 font-size: calc(100% / var(--downloads-item-font-size-factor));
214}
215
216#downloadsPanel-blockedSubview-details1,
217#downloadsPanel-blockedSubview-details2 {
218 font-size: calc(100% * var(--downloads-item-font-size-factor));
219 margin-bottom: 16px;
220 opacity: var(--downloads-item-details-opacity);
221}
222
223#downloadsPanel-blockedSubview-title,
224#downloadsPanel-blockedSubview-details1,
225#downloadsPanel-blockedSubview-details2 {
226 -moz-margin-start: 64px;
227 -moz-margin-end: 16px;
228}
7327c957
RK
229
230/* === END downloads.inc.css === */
231
232/*** Panel and outer controls ***/
233
db1c5db1 234#downloadsSummary {
7327c957
RK
235}
236
db1c5db1 237#downloadsSummary:hover {
7327c957
RK
238}
239
db1c5db1 240#downloadsSummary:hover:active {
7327c957
RK
241}
242
243#downloadsPanel[keyfocus] #downloadsSummary:focus,
db1c5db1 244#downloadsPanel[keyfocus] .downloadsPanelFooterButton:focus {
7327c957
RK
245 outline: 1px #008484 dotted;
246 outline-offset: -1px;
247}
248
249#downloadsPanel[keyfocus] #downloadsSummary:focus {
250 outline-offset: -5px;
251}
252
db1c5db1 253.downloadsPanelFooterButton > .button-box {
7327c957
RK
254 /* Hide the border so we don't display an inner focus ring. */
255 border: none;
256}
257
db1c5db1
RK
258richlistitem[type="download"][showingsubview] {
259 background-color: Highlight;
260 color: HighlightText;
261 transition: background-color var(--panelui-subview-transition-duration),
262 color var(--panelui-subview-transition-duration);
263}
264
265#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists][verdict="Malware"]:hover,
266#downloadsPanel:not([keyfocus]) richlistitem[type="download"][state="1"][exists][verdict="Malware"]:hover:active,
267richlistitem[type="download"][showingsubview][verdict="Malware"] {
268 background-color: hsl(4, 82%, 47%);
269 color: white;
270}
271
272
7327c957
RK
273/*** List items and similar elements in the summary ***/
274
275:root {
276 --downloads-item-height: 7em;
277 /*--downloads-item-border-top-color: hsla(0,0%,100%,.3);*/
278 --downloads-item-border-bottom-color: #9C9CFF;
279 --downloads-item-font-size-factor: 0.9;
280 --downloads-item-target-margin-bottom: 6px;
281 --downloads-item-details-margin-top: 0;
282 --downloads-item-details-opacity: 0.6;
283}
284
285.downloadButton > .button-box {
286 border: 1px solid transparent;
287}
288
5968ec68
RK
289#downloadsPanel[keyfocus] .downloadButton:focus > .button-box {
290 border: 1px dotted #008484;
291}
292
7c1e433b
RK
293richlistitem[type="download"][verdict="PotentiallyUnwanted"] .blockedIcon {
294 list-style-image: url("chrome://global/skin/icons/warning.svg");
295}
296
297richlistitem[type="download"][verdict="Uncommon"] .blockedIcon {
298 list-style-image: url("chrome://global/skin/icons/information-32.png");
299}
300
64897c3a
RK
301/*** Highlighted list items ***/
302
7327c957
RK
303#downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
304 outline: 1px #008484 dotted;
305 outline-offset: -1px;
306 /*-moz-outline-radius: 3px;*/
307}
308
ed1a91c6 309/* #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover { */
e75098eb 310#downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"]:hover {
5968ec68 311 border-radius: 3px;
64897c3a
RK
312 background-color: #794900;
313 color: #FFCF00;
314 cursor: pointer;
315}
316
649b5d38
RK
317#downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover:active {
318}
319
64897c3a
RK
320/*** Button icons ***/
321
7c1e433b 322.downloadButton.downloadIconCancel {
fcfb76ce 323 -moz-image-region: rect(0px, 16px, 16px, 0px);
64897c3a 324}
7c1e433b
RK
325richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconCancel,
326richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconCancel:hover,
327richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconCancel:active {
fcfb76ce 328 -moz-image-region: rect(0px, 32px, 16px, 16px);
64897c3a
RK
329}
330
7c1e433b 331.downloadButton.downloadIconShow {
fcfb76ce 332 -moz-image-region: rect(16px, 16px, 32px, 0px);
64897c3a 333}
7c1e433b
RK
334richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconShow,
335richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconShow:hover,
336richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconShow:active {
fcfb76ce 337 -moz-image-region: rect(16px, 32px, 32px, 16px);
64897c3a
RK
338}
339
7c1e433b 340.downloadButton.downloadIconRetry {
fcfb76ce 341 -moz-image-region: rect(32px, 16px, 48px, 0px);
64897c3a 342}
7c1e433b
RK
343richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconRetry,
344richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconRetry:hover,
345richlistitem[type="download"]:hover > stack > .downloadButton.downloadIconRetry:active {
fcfb76ce 346 -moz-image-region: rect(32px, 32px, 48px, 16px);
64897c3a 347}
db1c5db1
RK
348
349.downloadButton.downloadShowBlockedInfo {
350 -moz-image-region: rect(48px, 16px, 64px, 0px);
351}
352richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo,
353richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:hover,
354richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:active {
355/* -moz-image-region: rect(48px, 32px, 64px, 16px);*/
356}
357
358.downloadButton.downloadShowBlockedInfo:-moz-locale-dir(rtl) {
359 -moz-image-region: rect(64px, 16px, 80px, 0px);
360}
361richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:-moz-locale-dir(rtl),
362richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:hover:-moz-locale-dir(rtl),
363richlistitem[type="download"]:hover .downloadButton.downloadShowBlockedInfo:active:-moz-locale-dir(rtl) {
364/* -moz-image-region: rect(64px, 32px, 80px, 16px);*/
365}