browser/themes/windows/downloads/downloads.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /*** Panel and outer controls ***/
michael@0 6
michael@0 7 #downloadsPanel > .panel-arrowcontainer > .panel-arrowcontent {
michael@0 8 padding: 0;
michael@0 9 }
michael@0 10
michael@0 11 #downloadsListBox {
michael@0 12 background-color: transparent;
michael@0 13 padding: 4px;
michael@0 14 color: inherit;
michael@0 15 }
michael@0 16
michael@0 17 #downloadsPanel:not([hasdownloads]) > #downloadsListBox {
michael@0 18 display: none;
michael@0 19 }
michael@0 20
michael@0 21 #downloadsPanel[hasdownloads] > #emptyDownloads {
michael@0 22 display: none;
michael@0 23 }
michael@0 24
michael@0 25 #emptyDownloads {
michael@0 26 padding: 10px 20px;
michael@0 27 max-width: 40ch;
michael@0 28 }
michael@0 29
michael@0 30 #downloadsHistory {
michael@0 31 background: transparent;
michael@0 32 cursor: pointer;
michael@0 33 }
michael@0 34
michael@0 35 %ifdef WINDOWS_AERO
michael@0 36 @media (-moz-os-version: windows-vista),
michael@0 37 (-moz-os-version: windows-win7) {
michael@0 38 %endif
michael@0 39 #downloadsHistory {
michael@0 40 color: -moz-nativehyperlinktext;
michael@0 41 }
michael@0 42 %ifdef WINDOWS_AERO
michael@0 43 }
michael@0 44 %endif
michael@0 45
michael@0 46 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsHistory:focus {
michael@0 47 outline: 1px -moz-dialogtext dotted;
michael@0 48 outline-offset: -1px;
michael@0 49 }
michael@0 50
michael@0 51 #downloadsHistory > .button-box {
michael@0 52 border: none;
michael@0 53 margin: 1em;
michael@0 54 }
michael@0 55
michael@0 56 #downloadsFooter {
michael@0 57 background-color: hsla(210,4%,10%,.04);
michael@0 58 box-shadow: 0 1px 0 hsla(210,4%,10%,.08) inset;
michael@0 59 transition-duration: 150ms;
michael@0 60 transition-property: background-color;
michael@0 61 }
michael@0 62
michael@0 63 #downloadsFooter:hover {
michael@0 64 background-color: hsla(210,4%,10%,.05);
michael@0 65 }
michael@0 66
michael@0 67 #downloadsFooter:hover:active {
michael@0 68 background-color: hsla(210,4%,10%,.1);
michael@0 69 box-shadow: 0 2px 0 0 hsla(210,4%,10%,.1) inset;
michael@0 70 }
michael@0 71
michael@0 72 %ifdef WINDOWS_AERO
michael@0 73 @media (-moz-os-version: windows-vista),
michael@0 74 (-moz-os-version: windows-win7) {
michael@0 75 %endif
michael@0 76 @media (-moz-windows-default-theme) {
michael@0 77 #downloadsFooter {
michael@0 78 border-bottom-left-radius: 3px;
michael@0 79 border-bottom-right-radius: 3px;
michael@0 80 transition-duration: 0s;
michael@0 81 }
michael@0 82
michael@0 83 #downloadsFooter,
michael@0 84 #downloadsFooter:hover,
michael@0 85 #downloadsFooter:hover:active {
michael@0 86 %ifdef WINDOWS_AERO
michael@0 87 background-color: #f1f5fb;
michael@0 88 %else
michael@0 89 background-color: hsla(216,45%,88%,.98);
michael@0 90 %endif
michael@0 91 box-shadow: 0px 1px 2px rgb(204,214,234) inset;
michael@0 92 }
michael@0 93 }
michael@0 94 %ifdef WINDOWS_AERO
michael@0 95 }
michael@0 96 %endif
michael@0 97
michael@0 98 /*** Downloads Summary and List items ***/
michael@0 99
michael@0 100 #downloadsSummary,
michael@0 101 richlistitem[type="download"] {
michael@0 102 height: 7em;
michael@0 103 -moz-padding-end: 0;
michael@0 104 color: inherit;
michael@0 105 }
michael@0 106
michael@0 107 #downloadsSummary {
michael@0 108 padding: 8px 38px 8px 12px;
michael@0 109 cursor: pointer;
michael@0 110 -moz-user-focus: normal;
michael@0 111 }
michael@0 112
michael@0 113 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsSummary:focus {
michael@0 114 outline: 1px -moz-dialogtext dotted;
michael@0 115 outline-offset: -5px;
michael@0 116 }
michael@0 117
michael@0 118 #downloadsSummary > .downloadTypeIcon {
michael@0 119 list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
michael@0 120 }
michael@0 121
michael@0 122 #downloadsSummaryDescription {
michael@0 123 color: -moz-nativehyperlinktext;
michael@0 124 }
michael@0 125
michael@0 126 richlistitem[type="download"] {
michael@0 127 margin: 0;
michael@0 128 border-top: 1px solid hsla(0,0%,100%,.3);
michael@0 129 border-bottom: 1px solid hsla(220,18%,51%,.25);
michael@0 130 background: transparent;
michael@0 131 padding: 8px;
michael@0 132 }
michael@0 133
michael@0 134 richlistitem[type="download"]:first-child {
michael@0 135 border-top: 1px solid transparent;
michael@0 136 }
michael@0 137
michael@0 138 @media (-moz-windows-default-theme) {
michael@0 139 richlistitem[type="download"]:last-child {
michael@0 140 border-bottom: 1px solid transparent;
michael@0 141 }
michael@0 142 }
michael@0 143
michael@0 144 #downloadsPanel[keyfocus] > #downloadsListBox:focus > richlistitem[type="download"][selected] {
michael@0 145 outline: 1px -moz-dialogtext dotted;
michael@0 146 outline-offset: -1px;
michael@0 147 }
michael@0 148
michael@0 149 .downloadTypeIcon {
michael@0 150 -moz-margin-end: 8px;
michael@0 151 /* Prevent flickering when changing states. */
michael@0 152 height: 32px;
michael@0 153 width: 32px;
michael@0 154 }
michael@0 155
michael@0 156 .blockedIcon {
michael@0 157 list-style-image: url("chrome://global/skin/icons/Error.png");
michael@0 158 }
michael@0 159
michael@0 160 /* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
michael@0 161 a vbox with class .downloadContainer. We set the font-size of the entire
michael@0 162 container to 90% because:
michael@0 163
michael@0 164 1) This is the size that we want .downloadDetails to be
michael@0 165 2) The container's width is set by localizers by &downloadDetails.width;,
michael@0 166 which is a ch unit. Since this is the value that should control the
michael@0 167 panel width, we apply it to the outer container to constrain
michael@0 168 .downloadTarget and .downloadProgress.
michael@0 169
michael@0 170 Finally, since we want .downloadTarget's font-size to be at 100% of the
michael@0 171 font-size of .downloadContainer's parent, we use calc to go from the
michael@0 172 smaller font-size back to the original font-size.
michael@0 173 */
michael@0 174 #downloadsSummaryDetails,
michael@0 175 .downloadContainer {
michael@0 176 font-size: 90%;
michael@0 177 }
michael@0 178
michael@0 179 #downloadsSummaryDescription,
michael@0 180 .downloadTarget {
michael@0 181 margin-bottom: 6px;
michael@0 182 cursor: inherit;
michael@0 183 }
michael@0 184
michael@0 185 .downloadTarget {
michael@0 186 font-size: calc(100%/0.9);
michael@0 187 }
michael@0 188
michael@0 189 #downloadsSummaryDetails,
michael@0 190 .downloadDetails {
michael@0 191 opacity: 0.6;
michael@0 192 cursor: inherit;
michael@0 193 }
michael@0 194
michael@0 195 .downloadButton {
michael@0 196 -moz-appearance: none;
michael@0 197 min-width: 0;
michael@0 198 min-height: 0;
michael@0 199 margin: 3px;
michael@0 200 border: none;
michael@0 201 background: transparent;
michael@0 202 padding: 5px;
michael@0 203 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
michael@0 204 }
michael@0 205
michael@0 206 .downloadButton > .button-box {
michael@0 207 border: 1px solid transparent;
michael@0 208 padding: 0;
michael@0 209 }
michael@0 210
michael@0 211 #downloadsPanel[keyfocus] .downloadButton:focus > .button-box {
michael@0 212 border: 1px dotted ThreeDDarkShadow;
michael@0 213 }
michael@0 214
michael@0 215 /*** Highlighted list items ***/
michael@0 216
michael@0 217 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover {
michael@0 218 background-color: hsla(210,4%,10%,.08);
michael@0 219 outline: 1px solid hsla(210,4%,10%,.1);
michael@0 220 outline-offset: -1px;
michael@0 221 cursor: pointer;
michael@0 222 }
michael@0 223
michael@0 224 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover:active {
michael@0 225 background-color: hsla(210,4%,10%,.15);
michael@0 226 outline: 1px solid hsla(210,4%,10%,.15);
michael@0 227 box-shadow: 0 1px 0 0 hsla(210,4%,10%,.05) inset;
michael@0 228 }
michael@0 229
michael@0 230 %ifdef WINDOWS_AERO
michael@0 231 @media (-moz-os-version: windows-vista),
michael@0 232 (-moz-os-version: windows-win7) {
michael@0 233 %endif
michael@0 234 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover {
michael@0 235 border-radius: 3px;
michael@0 236 outline: 0;
michael@0 237 border-top: 1px solid hsla(0,0%,100%,.2);
michael@0 238 border-bottom: 1px solid hsla(0,0%,0%,.2);
michael@0 239 background-color: Highlight;
michael@0 240 color: HighlightText;
michael@0 241 }
michael@0 242
michael@0 243 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover:active {
michael@0 244 background-color: Highlight;
michael@0 245 outline: 0;
michael@0 246 box-shadow: none;
michael@0 247 }
michael@0 248 %ifdef WINDOWS_AERO
michael@0 249 }
michael@0 250 %endif
michael@0 251
michael@0 252 /*** Button icons ***/
michael@0 253
michael@0 254 .downloadButton.downloadCancel {
michael@0 255 -moz-image-region: rect(0px, 16px, 16px, 0px);
michael@0 256 }
michael@0 257 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel {
michael@0 258 -moz-image-region: rect(0px, 32px, 16px, 16px);
michael@0 259 }
michael@0 260 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:hover {
michael@0 261 -moz-image-region: rect(0px, 48px, 16px, 32px);
michael@0 262 }
michael@0 263 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:active {
michael@0 264 -moz-image-region: rect(0px, 64px, 16px, 48px);
michael@0 265 }
michael@0 266
michael@0 267 .downloadButton.downloadShow {
michael@0 268 -moz-image-region: rect(16px, 16px, 32px, 0px);
michael@0 269 }
michael@0 270 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow {
michael@0 271 -moz-image-region: rect(16px, 32px, 32px, 16px);
michael@0 272 }
michael@0 273 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:hover {
michael@0 274 -moz-image-region: rect(16px, 48px, 32px, 32px);
michael@0 275 }
michael@0 276 richlistitem[type="download"]:hover > stack > .downloadButton.downloadShow:active {
michael@0 277 -moz-image-region: rect(16px, 64px, 32px, 48px);
michael@0 278 }
michael@0 279 %ifndef WINDOWS_AERO
michael@0 280 #downloadsPanel[keyfocus] > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow {
michael@0 281 -moz-image-region: rect(16px, 32px, 32px, 16px);
michael@0 282 }
michael@0 283 #downloadsPanel[keyfocus] > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:hover {
michael@0 284 -moz-image-region: rect(16px, 48px, 32px, 32px);
michael@0 285 }
michael@0 286 #downloadsPanel[keyfocus] > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:active {
michael@0 287 -moz-image-region: rect(16px, 64px, 32px, 48px);
michael@0 288 }
michael@0 289 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow {
michael@0 290 -moz-image-region: rect(16px, 96px, 32px, 80px);
michael@0 291 }
michael@0 292 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:hover {
michael@0 293 -moz-image-region: rect(16px, 112px, 32px, 96px);
michael@0 294 }
michael@0 295 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:active {
michael@0 296 -moz-image-region: rect(16px, 128px, 32px, 112px);
michael@0 297 }
michael@0 298 %endif
michael@0 299
michael@0 300 .downloadButton.downloadRetry {
michael@0 301 -moz-image-region: rect(32px, 16px, 48px, 0px);
michael@0 302 }
michael@0 303 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry {
michael@0 304 -moz-image-region: rect(32px, 32px, 48px, 16px);
michael@0 305 }
michael@0 306 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:hover {
michael@0 307 -moz-image-region: rect(32px, 48px, 48px, 32px);
michael@0 308 }
michael@0 309 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:active {
michael@0 310 -moz-image-region: rect(32px, 64px, 48px, 48px);
michael@0 311 }

mercurial