toolkit/themes/faststripe/global/menulist.css

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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/. */
     5 /* ===== menulist.css ===================================================
     6   == Styles used by the XUL menulist element.
     7   ======================================================================= */
     9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    10 @namespace html url("http://www.w3.org/1999/xhtml");
    12 /* :::::::::: menulist :::::::::: */
    14 menulist {
    15   margin: 2px 4px;
    16   border: 1px solid #555555;
    17   background-color: white;
    18   color: black;
    19 }
    21 .menulist-label-box {
    22   -moz-box-align: center;
    23   -moz-box-pack: center;
    24   margin: 1px;
    25 }
    27 .menulist-label-box,
    28 menulist[open="true"]:focus > .menulist-label-box {
    29   border: 1px solid transparent;
    30   background-color: transparent;
    31   color: inherit;
    32   -moz-box-align: center;
    33 }
    35 .menulist-icon[src] {
    36   margin: 0px 2px 0px 2px;
    37 }
    39 .menulist-label {
    40   margin-top: 0 !important;
    41   -moz-margin-end: 0 !important;
    42   margin-bottom: 0 !important;
    43   -moz-margin-start: 1px !important;
    44 }
    46 .menulist-description {
    47   font-style: italic;
    48   color: GrayText;
    49   -moz-margin-start: 1ex !important;
    50 }
    52 /* ..... dropmarker ..... */
    54 menulist[disabled="true"]:hover:active > .menulist-dropmarker {
    55   padding: 1px;
    56 }
    58 menulist:hover:active > .menulist-dropmarker {
    59   padding-top: 2px;
    60   padding-bottom: 0px;
    61   -moz-padding-start: 2px;
    62   -moz-padding-end: 0px;
    63 }
    65 /* ..... focused state ..... */
    67 menulist:focus > .menulist-label-box {
    68   border: 1px dotted #F5DB95;
    69   background-color: Highlight;
    70   color: HighlightText;  
    71 }
    73 /* ..... disabled state ..... */
    75 menulist[disabled="true"] {
    76   background-color: -moz-Dialog;
    77   color: GrayText;
    78 }
    80 /* ::::: editable menulists ::::: */
    82 .menulist-editable-box {
    83   padding-top: 3px;
    84   padding-bottom: 3px;
    85   -moz-padding-start: 2px;
    86   -moz-padding-end: 0px;
    87 }
    89 html|*.menulist-editable-input {
    90   margin: 0px !important;
    91   border: none !important;
    92   padding: 0px !important;
    93   background: inherit;
    94   font: inherit;
    95 }
    97 /* ::::: compact menulists ::::: */
    99 .menulist-compact {
   100   -moz-box-align: center;
   101   -moz-box-pack: center;
   102   margin: 0;
   103   background-color: #aaaaaa;
   104   color: black;
   105   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
   106 }
   108 .menulist-compact > .menulist-label-box > .menulist-label {
   109   margin: 0 3px !important;
   110   text-align: end;
   111 }  
   113 .menulist-compact > .menulist-label-box > .menulist-icon {
   114   -moz-margin-start: 2px;
   115 }
   117 .menulist-compact[open="true"] {
   118   border-color: #777777;
   119 }
   121 .menulist-compact[disabled="true"] {
   122   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
   123 }
   125 .menulist-compact:focus > .menulist-label-box {
   126   border: 1px dotted;
   127   background-color: transparent;
   128   color: inherit;
   129 }

mercurial