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/. */
5 /* === BEGIN allDownloadsViewOverlay.inc.css === */
7 /* In the original, this is at the end of the file as a preprocessor-include */
8 @import url("progressmeter.inc.css");
10 /*** View and outer controls ***/
12 #downloadsRichListBox {
13 /** The default listbox appearance comes with an unwanted margin. **/
14 -moz-appearance: none;
21 #downloadsRichListBox > richlistitem.download {
22 height: var(--downloads-item-height);
32 .downloadBlockedBadge {
34 background: url("chrome://browser/skin/downloads/download-blocked.svg") top right / 16px no-repeat;
37 .downloadBlockedBadge:-moz-locale-dir(rtl) {
38 background-position-x: left;
41 richlistitem.download[verdict="PotentiallyUnwanted"] .downloadBlockedBadge {
42 background-image: url("chrome://browser/skin/warning.svg");
45 richlistitem.download[verdict="Uncommon"] .downloadBlockedBadge {
46 background-image: url("chrome://browser/skin/info.svg");
49 richlistitem.download > toolbarseparator {
60 /* Use calc() to keep the height consistent with .downloadTarget, so that the
61 progress bar can be vertically centered. */
62 margin: 4px 0 calc(1em / 0.95 - 1em);
66 -moz-box-align: center;
67 background: transparent;
76 .downloadButton > .button-box {
77 -moz-appearance: none;
78 padding: 2px !important;
82 .downloadButton > .button-box > .button-icon {
86 filter: url("chrome://browser/skin/filters.svg#fill");
90 .downloadButton > .button-box > .button-text {
94 .downloadButton:hover > .button-box {
95 background-color: #A09090;
99 .downloadButton:hover:active > .button-box {
100 background-color: #FF9F00;
103 richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover > .button-box {
104 background-color: #FFCF00;
108 richlistitem.download[selected] > .downloadButtonArea > .downloadButton:hover:active > .button-box {
109 background-color: #FF9F00;
113 /*** Button icons ***/
115 .downloadIconCancel > .button-box > .button-icon {
116 list-style-image: url("chrome://browser/skin/panel-icons.svg#cancel");
119 .downloadIconShow > .button-box > .button-icon {
120 list-style-image: url("chrome://browser/skin/panel-icons.svg#folder");
123 .downloadIconRetry > .button-box > .button-icon {
124 list-style-image: url("chrome://browser/skin/panel-icons.svg#retry");
127 /*** Progressmeter ***/
128 /* %include progressmeter.inc.css - this happens as @import at the start of the file */
130 /* === END allDownloadsViewOverlay.inc.css === */
135 --downloads-item-height: 6em;
138 /*** Highlighted list items ***/
140 richlistitem.download:not([selected]):hover {
142 background-color: #794900;
147 /*** Button icons ***/
149 .downloadButton.downloadIconCancel {
150 -moz-image-region: rect(0px, 16px, 16px, 0px);
153 richlistitem.download:hover > .downloadButton.downloadIconCancel,
154 richlistitem.download:hover > .downloadButton.downloadIconCancel:hover,
155 richlistitem.download:hover > .downloadButton.downloadIconCancel:active {
156 -moz-image-region: rect(0px, 32px, 16px, 16px);
159 .downloadButton.downloadIconShow {
160 -moz-image-region: rect(16px, 16px, 32px, 0px);
163 richlistitem.download:hover > .downloadButton.downloadIconShow,
164 richlistitem.download:hover > .downloadButton.downloadIconShow:hover,
165 richlistitem.download:hover > .downloadButton.downloadIconShow:active {
166 -moz-image-region: rect(16px, 32px, 32px, 16px);
169 .downloadButton.downloadIconRetry {
170 -moz-image-region: rect(32px, 16px, 48px, 0px);
173 richlistitem.download:hover > .downloadButton.downloadIconRetry,
174 richlistitem.download:hover > .downloadButton.downloadIconRetry:hover,
175 richlistitem.download:hover > .downloadButton.downloadIconRetry:active {
176 -moz-image-region: rect(32px, 32px, 48px, 16px);
179 richlistitem.download[selected] > .downloadButton.downloadIconCancel,
180 richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel,
181 richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel:hover,
182 richlistitem.download[selected]:hover > .downloadButton.downloadIconCancel:active {
183 -moz-image-region: rect(0px, 32px, 16px, 16px);
186 richlistitem.download[selected] > .downloadButton.downloadIconShow,
187 richlistitem.download[selected]:hover > .downloadButton.downloadIconShow,
188 richlistitem.download[selected]:hover > .downloadButton.downloadIconShow:hover,
189 richlistitem.download[selected]:hover > .downloadButton.downloadIconShow:active {
190 -moz-image-region: rect(16px, 32px, 32px, 16px);
193 richlistitem.download[selected] > .downloadButton.downloadIconRetry,
194 richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry,
195 richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry:hover,
196 richlistitem.download[selected]:hover > .downloadButton.downloadIconRetry:active {
197 -moz-image-region: rect(32px, 32px, 48px, 16px);