1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/downloads/content/download.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +richlistitem.download button { 1.9 + /* These buttons should never get focus, as that would "disable" 1.10 + the downloads view controller (it's only used when the richlistbox 1.11 + is focused). */ 1.12 + -moz-user-focus: none; 1.13 +} 1.14 + 1.15 +/*** Visibility of controls inside download items ***/ 1.16 + 1.17 +.download-state:-moz-any( [state="6"], /* Blocked (parental) */ 1.18 + [state="8"], /* Blocked (dirty) */ 1.19 + [state="9"]) /* Blocked (policy) */ 1.20 + > .downloadTypeIcon:not(.blockedIcon), 1.21 + 1.22 +.download-state:not(:-moz-any([state="6"], /* Blocked (parental) */ 1.23 + [state="8"], /* Blocked (dirty) */ 1.24 + [state="9"]) /* Blocked (policy) */) 1.25 + > .downloadTypeIcon.blockedIcon, 1.26 + 1.27 +.download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ 1.28 + [state="5"], /* Starting (queued) */ 1.29 + [state="0"], /* Downloading */ 1.30 + [state="4"], /* Paused */ 1.31 + [state="7"]) /* Scanning */) 1.32 + > vbox > .downloadProgress, 1.33 + 1.34 +.download-state:not(:-moz-any([state="-1"],/* Starting (initial) */ 1.35 + [state="5"], /* Starting (queued) */ 1.36 + [state="0"], /* Downloading */ 1.37 + [state="4"]) /* Paused */) 1.38 + > .downloadCancel, 1.39 + 1.40 +.download-state[state]:not(:-moz-any([state="2"], /* Failed */ 1.41 + [state="3"]) /* Canceled */) 1.42 + > .downloadRetry, 1.43 + 1.44 +.download-state:not( [state="1"] /* Finished */) 1.45 + > .downloadShow 1.46 +{ 1.47 + display: none; 1.48 +}