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.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /* ===== toolbar.css ====================================================
michael@0 6 == Styles used by XUL toolbar-related elements.
michael@0 7 ======================================================================= */
michael@0 8
michael@0 9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 10
michael@0 11 /* ::::: toolbox ::::: */
michael@0 12
michael@0 13 toolbox {
michael@0 14 -moz-appearance: toolbox;
michael@0 15 }
michael@0 16
michael@0 17 /* ::::: menubar & toolbar ::::: */
michael@0 18
michael@0 19 toolbar {
michael@0 20 -moz-appearance: toolbar;
michael@0 21 min-width: 1px;
michael@0 22 min-height: 20px;
michael@0 23 padding: 2px 0px;
michael@0 24 }
michael@0 25
michael@0 26 menubar, toolbar[type="menubar"] {
michael@0 27 -moz-appearance: menubar;
michael@0 28 min-width: 1px;
michael@0 29 min-height: 20px;
michael@0 30 padding: 1px 0px;
michael@0 31 }
michael@0 32
michael@0 33 menubar:-moz-lwtheme,
michael@0 34 toolbar:-moz-lwtheme {
michael@0 35 -moz-appearance: none;
michael@0 36 }
michael@0 37
michael@0 38 /* in browser.xul, the menubar is inside a toolbar... */
michael@0 39 toolbaritem > menubar {
michael@0 40 -moz-appearance: none;
michael@0 41 }
michael@0 42
michael@0 43 /* ::::: toolbar decorations ::::: */
michael@0 44
michael@0 45 toolbarseparator {
michael@0 46 -moz-appearance: separator !important;
michael@0 47 margin : 0;
michael@0 48 border: 0;
michael@0 49 min-width: 2px;
michael@0 50 }
michael@0 51
michael@0 52 toolbarspacer {
michael@0 53 width: 15px;
michael@0 54 }
michael@0 55
michael@0 56 /* ::::: toolbarpaletteitem ::::: */
michael@0 57
michael@0 58 toolbarpaletteitem {
michael@0 59 cursor: grab;
michael@0 60 }
michael@0 61
michael@0 62 .toolbarpaletteitem-box[type="spacer"],
michael@0 63 .toolbarpaletteitem-box[type="spring"] {
michael@0 64 border: 1px solid #808080;
michael@0 65 background-color: #FFF !important;
michael@0 66 }
michael@0 67
michael@0 68 toolbarpaletteitem[place="toolbar"] > toolbarspacer {
michael@0 69 width: 11px;
michael@0 70 }
michael@0 71
michael@0 72 .toolbarpaletteitem-box[type="spacer"][place="toolbar"],
michael@0 73 .toolbarpaletteitem-box[type="spring"][place="toolbar"] {
michael@0 74 margin-top: 2px;
michael@0 75 margin-bottom: 2px;
michael@0 76 -moz-margin-start: 0px;
michael@0 77 -moz-margin-end: 2px;
michael@0 78 }
michael@0 79
michael@0 80 .toolbarpaletteitem-box[type="separator"][place="palette"] {
michael@0 81 width: 2px;
michael@0 82 height: 50px;
michael@0 83 }
michael@0 84
michael@0 85 .toolbarpaletteitem-box[type="spacer"][place="palette"],
michael@0 86 .toolbarpaletteitem-box[type="spring"][place="palette"] {
michael@0 87 margin-bottom: 2px;
michael@0 88 width: 50px;
michael@0 89 height: 50px;
michael@0 90 }
michael@0 91
michael@0 92 .toolbarpaletteitem-box[type="spring"][place="palette"] {
michael@0 93 background: url("chrome://global/skin/toolbar/spring.png") no-repeat center;
michael@0 94 }
michael@0 95
michael@0 96 /* ..... drag and drop feedback ..... */
michael@0 97
michael@0 98 toolbarpaletteitem[place="toolbar"] {
michael@0 99 margin-left: -2px;
michael@0 100 margin-right: -2px;
michael@0 101 border-left: 2px solid transparent;
michael@0 102 border-right: 2px solid transparent;
michael@0 103 }
michael@0 104
michael@0 105 toolbarpaletteitem[dragover="left"] {
michael@0 106 border-left-color: #000000;
michael@0 107 }
michael@0 108
michael@0 109 toolbarpaletteitem[dragover="right"] {
michael@0 110 border-right-color: #000000;
michael@0 111 }

mercurial