| 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 |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 6 | |
| 7 | /* Note to themers: |
| 8 | On rows and all cells, those properties for download states are available: |
| 9 | active, inactive, resumable, paused, downloading, finished, failed, canceled, blocked |
| 10 | */ |
| 11 | |
| 12 | treechildren::-moz-tree-image(Name) { |
| 13 | -moz-margin-end: 2px; |
| 14 | } |
| 15 | |
| 16 | #pauseButton, |
| 17 | treechildren::-moz-tree-image(ActionPlay, downloading, resumable) { |
| 18 | /* pause */ |
| 19 | list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png"); |
| 20 | -moz-image-region: rect(0px, 48px, 16px, 32px); |
| 21 | } |
| 22 | |
| 23 | #ActionPlay, |
| 24 | #resumeButton, |
| 25 | treechildren::-moz-tree-image(ActionPlay, paused, resumable) { |
| 26 | /* resume */ |
| 27 | list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png"); |
| 28 | -moz-image-region: rect(0px, 16px, 16px, 0px); |
| 29 | } |
| 30 | |
| 31 | #retryButton, |
| 32 | treechildren::-moz-tree-image(ActionPlay, failed), |
| 33 | treechildren::-moz-tree-image(ActionPlay, canceled) { |
| 34 | /* retry */ |
| 35 | list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png"); |
| 36 | -moz-image-region: rect(0px, 64px, 16px, 48px); |
| 37 | } |
| 38 | |
| 39 | #ActionStop, |
| 40 | #cancelButton, |
| 41 | treechildren::-moz-tree-image(ActionStop, active) { |
| 42 | /* cancel */ |
| 43 | list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png"); |
| 44 | -moz-image-region: rect(0px, 32px, 16px, 16px); |
| 45 | } |
| 46 | |
| 47 | treechildren::-moz-tree-image(ActionStop, inactive) { |
| 48 | /* remove */ |
| 49 | list-style-image: url("chrome://communicator/skin/downloads/dl-remove.png"); |
| 50 | -moz-image-region: auto; |
| 51 | } |
| 52 | |
| 53 | /* progress dialogs */ |
| 54 | |
| 55 | #dlProgressWindow { |
| 56 | /* match dialog.css */ |
| 57 | padding-top: 8px; |
| 58 | padding-bottom: 10px; |
| 59 | -moz-padding-start: 8px; |
| 60 | -moz-padding-end: 10px; |
| 61 | } |
| 62 | |
| 63 | /* label with dropdown, actually done as a button type=menu */ |
| 64 | #fileName, #fileSource { |
| 65 | -moz-appearance: none; |
| 66 | background-color: transparent; |
| 67 | margin: 0px 5px; |
| 68 | border: 0px; |
| 69 | min-width: 0px; |
| 70 | min-height: 0px; |
| 71 | } |
| 72 | |
| 73 | #fileName > .button-box, |
| 74 | #fileSource > .button-box { |
| 75 | -moz-appearance: none; |
| 76 | padding: 0px; |
| 77 | } |
| 78 | |
| 79 | #fileName { |
| 80 | font-weight: bold; |
| 81 | } |
| 82 | |
| 83 | .mini-button { |
| 84 | -moz-appearance: none; |
| 85 | background-color: transparent; |
| 86 | border: none; |
| 87 | padding: 0; |
| 88 | margin: 0; |
| 89 | min-width: 0; |
| 90 | min-height: 0; |
| 91 | } |
| 92 | |
| 93 | .mini-button > .button-box { |
| 94 | -moz-appearance: none; |
| 95 | padding: 0 !important; |
| 96 | } |