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 /*** Panel and outer controls ***/
7 #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
12 background-color: transparent;
17 #downloadsPanel:not([hasdownloads]) > #downloadsListBox {
21 #downloadsPanel[hasdownloads] > #emptyDownloads {
32 margin: 4px !important;
36 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsHistory:focus {
37 outline: 1px #008484 dotted;
41 #downloadsHistory > .button-box {
48 #downloadsFooter:hover {
51 #downloadsFooter:hover:active {
54 /*** Downloads Summary and List items ***/
57 richlistitem[type="download"] {
64 padding: 8px 38px 8px 12px;
66 -moz-user-focus: normal;
69 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsSummary:focus {
70 outline: 1px #008484 dotted;
74 #downloadsSummary > .downloadTypeIcon {
75 list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
78 #downloadsSummaryDescription {
82 richlistitem[type="download"] {
84 border-bottom: 1px dotted #9C9CFF;
85 background: transparent;
89 richlistitem[type="download"]:first-child {
90 /* border-top: 1px solid transparent;*/
93 #downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
94 outline: 1px #008484 dotted;
96 /*-moz-outline-radius: 3px;*/
100 -moz-margin-end: 8px;
101 /* Prevent flickering when changing states. */
107 list-style-image: url("chrome://global/skin/icons/alert-error.gif");
110 /* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
111 a vbox with class .downloadContainer. We set the font-size of the entire
112 container to 90% because:
114 1) This is the size that we want .downloadDetails to be
115 2) The container's width is set by localizers by &downloadDetails.width;,
116 which is a ch unit. Since this is the value that should control the
117 panel width, we apply it to the outer container to constrain
118 .downloadTarget and .downloadProgress.
120 Finally, since we want .downloadTarget's font-size to be at 100% of the
121 font-size of .downloadContainer's parent, we use calc to go from the
122 smaller font-size back to the original font-size.
124 #downloadsSummaryDetails,
129 #downloadsSummaryDescription,
136 font-size: calc(100%/0.9);
139 #downloadsSummaryDetails,
150 background: transparent;
152 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
155 .downloadButton > .button-box {
156 border: 1px solid transparent;
160 #downloadsPanel[keyfocus] .downloadButton:focus > .button-box {
161 border: 1px dotted #008484;
164 /*** Highlighted list items ***/
166 /* #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover { */
167 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"]:hover {
169 background-color: #794900;
174 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover:active {
177 /*** Button icons ***/
179 .downloadButton.downloadConfirmBlock,
180 .downloadButton.downloadCancel {
181 -moz-image-region: rect(0px, 16px, 16px, 0px);
183 richlistitem[type="download"]:hover > stack > .downloadButton.downloadConfirmBlock,
184 richlistitem[type="download"]:hover > stack > .downloadButton.downloadConfirmBlock:hover,
185 richlistitem[type="download"]:hover > stack > .downloadButton.downloadConfirmBlock:active,
186 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel,
187 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:hover,
188 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:active {
189 -moz-image-region: rect(0px, 32px, 16px, 16px);
192 .downloadButton.downloadShow {
193 -moz-image-region: rect(16px, 16px, 32px, 0px);
195 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow,
196 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:hover,
197 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:active {
198 -moz-image-region: rect(16px, 32px, 32px, 16px);
201 .downloadButton.downloadRetry {
202 -moz-image-region: rect(32px, 16px, 48px, 0px);
204 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry,
205 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:hover,
206 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:active {
207 -moz-image-region: rect(32px, 32px, 48px, 16px);