tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

allDownloadsView.css (1985B)


      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 @import "chrome://browser/skin/downloads/allDownloadsView.inc.css";
      6 
      7 /*** List items ***/
      8 
      9 @media not (prefers-contrast) {
     10  .downloadProgress::-moz-progress-bar {
     11    background-color: #3c9af8;
     12  }
     13 
     14  .downloadProgress[paused]::-moz-progress-bar {
     15    background-color: #a6a6a6;
     16  }
     17 
     18  /*** Highlighted list items ***/
     19 
     20  /*
     21  -moz-default-appearance: menuitem is almost right, but the hover effect is not
     22  transparent and is lighter than desired.
     23 
     24  Copied from the autocomplete richlistbox styling in
     25  toolkit/themes/windows/global/autocomplete.css
     26 
     27  This styling should be kept in sync with the style from the above file.
     28  */
     29  #downloadsListBox:focus > richlistitem[selected] {
     30    color: inherit;
     31    background-color: transparent;
     32    /* four gradients for the bevel highlights on each edge, one for blue background */
     33    /* prettier-ignore */
     34    background-image:
     35      linear-gradient(to bottom, rgba(255,255,255,0.9) 3px, transparent 3px),
     36      linear-gradient(to right, rgba(255,255,255,0.5) 3px, transparent 3px),
     37      linear-gradient(to left, rgba(255,255,255,0.5) 3px, transparent 3px),
     38      linear-gradient(to top, rgba(255,255,255,0.4) 3px, transparent 3px),
     39      linear-gradient(to bottom, rgba(163,196,247,0.3), rgba(122,180,246,0.3));
     40    background-clip: content-box;
     41    border-radius: 6px;
     42    outline: 1px solid rgb(124, 163, 206);
     43    outline-offset: -2px;
     44  }
     45 }
     46 
     47 /*** Progress bars ***/
     48 
     49 @media (prefers-contrast) {
     50  .downloadProgress {
     51    background-color: -moz-Dialog;
     52    border: 1px solid ButtonText;
     53  }
     54 
     55  .downloadProgress::-moz-progress-bar {
     56    --download-progress-fill-color: SelectedItem;
     57  }
     58 
     59  #downloadsListBox richlistitem[selected] .downloadProgress::-moz-progress-bar {
     60    --download-progress-fill-color: ButtonText;
     61  }
     62 }