toolkit/themes/linux/global/toolbar.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 /* ===== toolbar.css ====================================================
     6   == Styles used by XUL toolbar-related elements.
     7   ======================================================================= */
     9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    11 /* ::::: toolbox ::::: */
    13 toolbox {
    14   -moz-appearance: toolbox;
    15 }
    17 /* ::::: menubar & toolbar ::::: */
    19 toolbar {
    20   -moz-appearance: toolbar;
    21   min-width: 1px;
    22   min-height: 20px;
    23   padding: 2px 0px;
    24 }
    26 menubar, toolbar[type="menubar"] {
    27   -moz-appearance: menubar;
    28   min-width: 1px;
    29   min-height: 20px;
    30   padding: 1px 0px;
    31 }
    33 menubar:-moz-lwtheme,
    34 toolbar:-moz-lwtheme {
    35   -moz-appearance: none;
    36 }
    38 /* in browser.xul, the menubar is inside a toolbar... */
    39 toolbaritem > menubar {
    40   -moz-appearance: none;
    41 }
    43 /* ::::: toolbar decorations ::::: */
    45 toolbarseparator {
    46   -moz-appearance: separator !important;
    47   margin : 0;
    48   border: 0;
    49   min-width: 2px;
    50 }
    52 toolbarspacer {
    53   width: 15px;
    54 }
    56 /* ::::: toolbarpaletteitem ::::: */
    58 toolbarpaletteitem {
    59   cursor: grab;
    60 }
    62 .toolbarpaletteitem-box[type="spacer"],
    63 .toolbarpaletteitem-box[type="spring"] {
    64   border: 1px solid #808080;
    65   background-color: #FFF !important;
    66 }
    68 toolbarpaletteitem[place="toolbar"] > toolbarspacer {
    69   width: 11px;
    70 }
    72 .toolbarpaletteitem-box[type="spacer"][place="toolbar"],
    73 .toolbarpaletteitem-box[type="spring"][place="toolbar"] {
    74   margin-top: 2px;
    75   margin-bottom: 2px;
    76   -moz-margin-start: 0px;
    77   -moz-margin-end: 2px;
    78 }
    80 .toolbarpaletteitem-box[type="separator"][place="palette"] {
    81   width: 2px;
    82   height: 50px;
    83 }
    85 .toolbarpaletteitem-box[type="spacer"][place="palette"],
    86 .toolbarpaletteitem-box[type="spring"][place="palette"] {
    87   margin-bottom: 2px;
    88   width: 50px;
    89   height: 50px;
    90 }
    92 .toolbarpaletteitem-box[type="spring"][place="palette"] {
    93   background: url("chrome://global/skin/toolbar/spring.png") no-repeat center;
    94 }
    96 /* ..... drag and drop feedback ..... */
    98 toolbarpaletteitem[place="toolbar"] {
    99   margin-left: -2px;
   100   margin-right: -2px;
   101   border-left: 2px solid transparent;
   102   border-right: 2px solid transparent;
   103 }
   105 toolbarpaletteitem[dragover="left"] {
   106   border-left-color: #000000;
   107 }
   109 toolbarpaletteitem[dragover="right"] {
   110   border-right-color: #000000;
   111 }

mercurial