browser/components/downloads/content/downloads.css

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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 /*** Download items ***/
michael@0 6
michael@0 7 richlistitem[type="download"] {
michael@0 8 -moz-binding: url('chrome://browser/content/downloads/download.xml#download');
michael@0 9 }
michael@0 10
michael@0 11 richlistitem[type="download"]:not([selected]) button {
michael@0 12 /* Only focus buttons in the selected item. */
michael@0 13 -moz-user-focus: none;
michael@0 14 }
michael@0 15
michael@0 16 /*** Visibility of controls inside download items ***/
michael@0 17
michael@0 18 .download-state:-moz-any( [state="6"], /* Blocked (parental) */
michael@0 19 [state="8"], /* Blocked (dirty) */
michael@0 20 [state="9"]) /* Blocked (policy) */
michael@0 21 .downloadTypeIcon:not(.blockedIcon),
michael@0 22
michael@0 23 .download-state:not(:-moz-any([state="6"], /* Blocked (parental) */
michael@0 24 [state="8"], /* Blocked (dirty) */
michael@0 25 [state="9"]) /* Blocked (policy) */)
michael@0 26 .downloadTypeIcon.blockedIcon,
michael@0 27
michael@0 28 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
michael@0 29 [state="5"], /* Starting (queued) */
michael@0 30 [state="0"], /* Downloading */
michael@0 31 [state="4"], /* Paused */
michael@0 32 [state="7"]) /* Scanning */)
michael@0 33 .downloadProgress,
michael@0 34
michael@0 35 .download-state:not( [state="0"] /* Downloading */)
michael@0 36 .downloadPauseMenuItem,
michael@0 37
michael@0 38 .download-state:not( [state="4"] /* Paused */)
michael@0 39 .downloadResumeMenuItem,
michael@0 40
michael@0 41 .download-state:not(:-moz-any([state="2"], /* Failed */
michael@0 42 [state="4"]) /* Paused */)
michael@0 43 .downloadCancelMenuItem,
michael@0 44
michael@0 45 .download-state:not(:-moz-any([state="1"], /* Finished */
michael@0 46 [state="2"], /* Failed */
michael@0 47 [state="3"], /* Canceled */
michael@0 48 [state="6"], /* Blocked (parental) */
michael@0 49 [state="8"], /* Blocked (dirty) */
michael@0 50 [state="9"]) /* Blocked (policy) */)
michael@0 51 .downloadRemoveFromHistoryMenuItem,
michael@0 52
michael@0 53 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
michael@0 54 [state="0"], /* Downloading */
michael@0 55 [state="1"], /* Finished */
michael@0 56 [state="4"], /* Paused */
michael@0 57 [state="5"]) /* Starting (queued) */)
michael@0 58 .downloadShowMenuItem,
michael@0 59
michael@0 60 .download-state[state="7"] .downloadCommandsSeparator
michael@0 61
michael@0 62 {
michael@0 63 display: none;
michael@0 64 }
michael@0 65
michael@0 66 /*** Visibility of download buttons ***/
michael@0 67
michael@0 68 .download-state:not(:-moz-any([state="-1"],/* Starting (initial) */
michael@0 69 [state="5"], /* Starting (queued) */
michael@0 70 [state="0"], /* Downloading */
michael@0 71 [state="4"]) /* Paused */)
michael@0 72 .downloadCancel,
michael@0 73
michael@0 74 .download-state:not(:-moz-any([state="2"], /* Failed */
michael@0 75 [state="3"]) /* Canceled */)
michael@0 76 .downloadRetry,
michael@0 77
michael@0 78 .download-state:not( [state="1"] /* Finished */)
michael@0 79 .downloadShow
michael@0 80
michael@0 81 {
michael@0 82 visibility: hidden;
michael@0 83 }
michael@0 84
michael@0 85 .download-state[state="1"]:not([exists]) .downloadShow
michael@0 86 {
michael@0 87 display: none;
michael@0 88 }
michael@0 89
michael@0 90 #downloadsSummary:not([inprogress]) > vbox > #downloadsSummaryProgress,
michael@0 91 #downloadsSummary:not([inprogress]) > vbox > #downloadsSummaryDetails,
michael@0 92 #downloadsFooter[showingsummary] > #downloadsHistory,
michael@0 93 #downloadsFooter:not([showingsummary]) > #downloadsSummary
michael@0 94 {
michael@0 95 display: none;
michael@0 96 }

mercurial