browser/themes/linux/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: 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 color: -moz-nativehyperlinktext;
michael@0 33 cursor: pointer;
michael@0 34 }
michael@0 35
michael@0 36 #downloadsFooter {
michael@0 37 border-top: 1px solid ThreeDShadow;
michael@0 38 background-image: linear-gradient(hsla(0,0%,0%,.15), hsla(0,0%,0%,.08) 6px);
michael@0 39 }
michael@0 40
michael@0 41 #downloadsHistory > .button-box {
michael@0 42 margin: 1em;
michael@0 43 }
michael@0 44
michael@0 45 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsHistory:focus > .button-box {
michael@0 46 outline: 1px -moz-dialogtext dotted;
michael@0 47 }
michael@0 48
michael@0 49 /*** Downloads Summary and List items ***/
michael@0 50
michael@0 51 #downloadsSummary,
michael@0 52 richlistitem[type="download"] {
michael@0 53 height: 6em;
michael@0 54 -moz-padding-end: 0;
michael@0 55 color: inherit;
michael@0 56 }
michael@0 57
michael@0 58 #downloadsSummary {
michael@0 59 padding: 8px 38px 8px 12px;
michael@0 60 cursor: pointer;
michael@0 61 -moz-user-focus: normal;
michael@0 62 }
michael@0 63
michael@0 64 #downloadsPanel[keyfocus] > #downloadsFooter > #downloadsSummary:focus {
michael@0 65 outline: 1px -moz-dialogtext dotted;
michael@0 66 outline-offset: -5px;
michael@0 67 }
michael@0 68
michael@0 69 #downloadsSummary > .downloadTypeIcon {
michael@0 70 list-style-image: url("chrome://browser/skin/downloads/download-summary.png");
michael@0 71 }
michael@0 72
michael@0 73 #downloadsSummaryDescription {
michael@0 74 color: -moz-nativehyperlinktext;
michael@0 75 }
michael@0 76
michael@0 77 richlistitem[type="download"] {
michael@0 78 margin: 0;
michael@0 79 border-top: 1px solid hsla(0,0%,100%,.2);
michael@0 80 border-bottom: 1px solid hsla(0,0%,0%,.15);
michael@0 81 background: transparent;
michael@0 82 padding: 8px;
michael@0 83 }
michael@0 84
michael@0 85 richlistitem[type="download"]:first-child {
michael@0 86 border-top: 1px solid transparent;
michael@0 87 }
michael@0 88
michael@0 89 richlistitem[type="download"]:last-child {
michael@0 90 border-bottom: 1px solid transparent;
michael@0 91 }
michael@0 92
michael@0 93 #downloadsPanel[keyfocus] > #downloadsListBox:focus > richlistitem[type="download"][selected] {
michael@0 94 outline: 1px -moz-dialogtext dotted;
michael@0 95 outline-offset: -1px;
michael@0 96 }
michael@0 97
michael@0 98 .downloadTypeIcon {
michael@0 99 -moz-margin-end: 8px;
michael@0 100 /* Prevent flickering when changing states. */
michael@0 101 min-height: 32px;
michael@0 102 min-width: 32px;
michael@0 103 }
michael@0 104
michael@0 105 .blockedIcon {
michael@0 106 list-style-image: url("chrome://global/skin/icons/Error.png");
michael@0 107 }
michael@0 108
michael@0 109 /* We hold .downloadTarget, .downloadProgress and .downloadDetails inside of
michael@0 110 a vbox with class .downloadContainer. We set the font-size of the entire
michael@0 111 container to 90% because:
michael@0 112
michael@0 113 1) This is the size that we want .downloadDetails to be
michael@0 114 2) The container's width is set by localizers by &downloadDetails.width;,
michael@0 115 which is a ch unit. Since this is the value that should control the
michael@0 116 panel width, we apply it to the outer container to constrain
michael@0 117 .downloadTarget and .downloadProgress.
michael@0 118
michael@0 119 Finally, since we want .downloadTarget's font-size to be at 100% of the
michael@0 120 font-size of .downloadContainer's parent, we use calc to go from the
michael@0 121 smaller font-size back to the original font-size.
michael@0 122 */
michael@0 123
michael@0 124 #downloadsSummaryDetails,
michael@0 125 .downloadContainer {
michael@0 126 font-size: 90%;
michael@0 127 }
michael@0 128
michael@0 129 #downloadsSummaryDescription,
michael@0 130 .downloadTarget {
michael@0 131 margin-bottom: 7px;
michael@0 132 cursor: inherit;
michael@0 133 }
michael@0 134
michael@0 135 .downloadTarget {
michael@0 136 font-size: calc(100%/0.9);
michael@0 137 }
michael@0 138
michael@0 139 #downloadsSummaryDetails,
michael@0 140 .downloadDetails {
michael@0 141 margin-top: 1px;
michael@0 142 opacity: 0.6;
michael@0 143 cursor: inherit;
michael@0 144 }
michael@0 145
michael@0 146 .downloadButton {
michael@0 147 -moz-appearance: none;
michael@0 148 min-width: 0;
michael@0 149 min-height: 0;
michael@0 150 margin: 3px;
michael@0 151 border: none;
michael@0 152 background: transparent;
michael@0 153 padding: 5px;
michael@0 154 list-style-image: url("chrome://browser/skin/downloads/buttons.png");
michael@0 155 }
michael@0 156
michael@0 157 .downloadButton > .button-box {
michael@0 158 padding: 0;
michael@0 159 }
michael@0 160
michael@0 161 .downloadButton:focus > .button-box {
michael@0 162 outline: 1px -moz-dialogtext dotted;
michael@0 163 }
michael@0 164
michael@0 165 /*** Highlighted list items ***/
michael@0 166
michael@0 167 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover {
michael@0 168 border-radius: 3px;
michael@0 169 border-top: 1px solid hsla(0,0%,100%,.3);
michael@0 170 border-bottom: 1px solid hsla(0,0%,0%,.2);
michael@0 171 background-color: Highlight;
michael@0 172 background-image: linear-gradient(hsla(0,0%,100%,.1), hsla(0,0%,100%,0));
michael@0 173 color: HighlightText;
michael@0 174 cursor: pointer;
michael@0 175 }
michael@0 176
michael@0 177 /*** Button icons ***/
michael@0 178
michael@0 179 .downloadButton.downloadCancel {
michael@0 180 -moz-image-region: rect(0px, 16px, 16px, 0px);
michael@0 181 }
michael@0 182 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel {
michael@0 183 -moz-image-region: rect(0px, 32px, 16px, 16px);
michael@0 184 }
michael@0 185 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:hover {
michael@0 186 -moz-image-region: rect(0px, 48px, 16px, 32px);
michael@0 187 }
michael@0 188 richlistitem[type="download"]:hover > stack > .downloadButton.downloadCancel:active {
michael@0 189 -moz-image-region: rect(0px, 64px, 16px, 48px);
michael@0 190 }
michael@0 191
michael@0 192 .downloadButton.downloadShow {
michael@0 193 -moz-image-region: rect(16px, 16px, 32px, 0px);
michael@0 194 }
michael@0 195 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow {
michael@0 196 -moz-image-region: rect(16px, 96px, 32px, 80px);
michael@0 197 }
michael@0 198 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:hover {
michael@0 199 -moz-image-region: rect(16px, 112px, 32px, 96px);
michael@0 200 }
michael@0 201 #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"]:hover > stack > .downloadButton.downloadShow:active {
michael@0 202 -moz-image-region: rect(16px, 128px, 32px, 112px);
michael@0 203 }
michael@0 204
michael@0 205 .downloadButton.downloadRetry {
michael@0 206 -moz-image-region: rect(32px, 16px, 48px, 0px);
michael@0 207 }
michael@0 208 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry {
michael@0 209 -moz-image-region: rect(32px, 32px, 48px, 16px);
michael@0 210 }
michael@0 211 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:hover {
michael@0 212 -moz-image-region: rect(32px, 48px, 48px, 32px);
michael@0 213 }
michael@0 214 richlistitem[type="download"]:hover > stack > .downloadButton.downloadRetry:active {
michael@0 215 -moz-image-region: rect(32px, 64px, 48px, 48px);
michael@0 216 }

mercurial