tor-browser

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

applications.css (1503B)


      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 richlistitem[appHandlerIcon] .actionIcon,
      6 richlistitem[appHandlerIcon] .actionsMenu::part(icon) {
      7  content: var(--app-handler-icon);
      8 }
      9 
     10 menuitem[appHandlerIcon] {
     11  --menuitem-icon: var(--app-handler-icon);
     12 }
     13 
     14 :is(richlistitem, menuitem)[appHandlerIcon="handleInternally"] {
     15  --app-handler-icon: url("chrome://branding/content/icon32.png");
     16 }
     17 
     18 :is(richlistitem, menuitem)[appHandlerIcon="ask"] {
     19  --app-handler-icon: url("chrome://browser/skin/preferences/alwaysAsk.png");
     20 }
     21 
     22 :is(richlistitem, menuitem)[appHandlerIcon="save"] {
     23  @media not (-moz-platform: linux) {
     24    --app-handler-icon: url("chrome://browser/skin/preferences/saveFile.png");
     25  }
     26  /* prettier-ignore */
     27  @media (-moz-platform: linux) {
     28    --app-handler-icon: image-set(
     29      "moz-icon://stock/document-save?size=16" 1x,
     30      "moz-icon://stock/document-save?size=16&scale=2" 2x
     31    );
     32  }
     33 }
     34 
     35 @media (-moz-platform: macos) {
     36  /* Repeat what menu.css does for .menuitem-iconic */
     37  menuitem[appHandlerIcon] {
     38    padding-top: 1px;
     39    padding-bottom: 3px;
     40  }
     41 }
     42 
     43 #appList {
     44  min-height: 212px;
     45 }
     46 
     47 #appList > richlistitem {
     48  align-items: center;
     49 }
     50 
     51 #appList > richlistitem > image {
     52  margin: 5px;
     53  width: 32px;
     54  height: 32px;
     55 }
     56 
     57 #appList > richlistitem > label {
     58  margin: 0;
     59  padding: 5px;
     60  white-space: nowrap;
     61 }