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 {
23 margin: 4px !important;
27 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsHistory:focus {
28 outline: 1px #008484 dotted;
32 #downloadsHistory > .button-box {
36 #downloadsPanel[hasdownloads] > #downloadsFooter {
39 #downloadsPanel[hasdownloads] > #downloadsFooter:hover {
42 #downloadsPanel[hasdownloads] > #downloadsFooter:hover:active {
45 /*** Downloads Summary and List items ***/
48 richlistitem[type="download"] {
55 padding: 8px 38px 8px 12px;
57 -moz-user-focus: normal;
60 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsSummary:focus {
61 outline: 1px #008484 dotted;
65 #downloadsSummary > .downloadTypeIcon {
66 list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
69 #downloadsSummaryDescription {
73 richlistitem[type="download"] {
75 border-bottom: 1px dotted #9C9CFF;
76 background: transparent;
80 richlistitem[type="download"]:first-child {
81 /* border-top: 1px solid transparent;*/
84 #downloadsListBox:-moz-focusring > richlistitem[type="download"][selected] {
85 outline: 1px #008484 dotted;
87 /*-moz-outline-radius: 3px;*/
92 /* Prevent flickering when changing states. */
98 list-style-image: url("chrome://global/skin/icons/alert-error.gif");
101 /* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
102 a vbox with class .downloadContainer. We set the font-size of the entire
103 container to 90% because:
105 1) This is the size that we want .downloadDetails to be
106 2) The container's width is set by localizers by &downloadDetails.width;,
107 which is a ch unit. Since this is the value that should control the
108 panel width, we apply it to the outer container to constrain
109 .downloadTarget and .downloadProgress.
111 Finally, since we want .downloadTarget's font-size to be at 100% of the
112 font-size of .downloadContainer's parent, we use calc to go from the
113 smaller font-size back to the original font-size.
115 #downloadsSummaryDetails,
120 #downloadsSummaryDescription,
127 font-size: calc(100%/0.9);
130 #downloadsSummaryDetails,
141 background: transparent;
143 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
146 .downloadButton > .button-box {
147 border: 1px solid transparent;
151 #downloadsPanel[keyfocus] .downloadButton:focus > .button-box {
152 border: 1px dotted #008484;
155 /*** Highlighted list items ***/
157 /* #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover { */
158 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"]:hover {
160 background-color: #794900;
165 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover:active {
168 /*** Button icons ***/
170 .downloadButton.downloadCancel {
171 -moz-image-region: rect(0px, 16px, 16px, 0px);
173 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel,
174 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:hover,
175 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:active {
176 -moz-image-region: rect(0px, 32px, 16px, 16px);
179 .downloadButton.downloadShow {
180 -moz-image-region: rect(16px, 16px, 32px, 0px);
182 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow,
183 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:hover,
184 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:active {
185 -moz-image-region: rect(16px, 32px, 32px, 16px);
188 .downloadButton.downloadRetry {
189 -moz-image-region: rect(32px, 16px, 48px, 0px);
191 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry,
192 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:hover,
193 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:active {
194 -moz-image-region: rect(32px, 32px, 48px, 16px);