browser/components/downloads/content/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.

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

mercurial