toolkit/themes/linux/global/toolbarbutton.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 /* ===== toolbarbutton.css =====================================================
michael@0 6 == Styles used by the XUL button element.
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 /* ::::: toolbarbutton ::::: */
michael@0 12
michael@0 13 toolbarbutton {
michael@0 14 -moz-appearance: toolbarbutton;
michael@0 15 -moz-box-align: center;
michael@0 16 -moz-box-pack: center;
michael@0 17 margin: 0;
michael@0 18 padding: 3px;
michael@0 19 color: -moz-DialogText;
michael@0 20 }
michael@0 21
michael@0 22 toolbarbutton:-moz-lwtheme {
michael@0 23 text-shadow: none;
michael@0 24 }
michael@0 25
michael@0 26 .toolbarbutton-icon[label]:not([label=""]),
michael@0 27 .toolbarbutton-icon[type="menu"] {
michael@0 28 -moz-margin-end: 2px;
michael@0 29 }
michael@0 30
michael@0 31 .toolbarbutton-text {
michael@0 32 margin: 0 !important;
michael@0 33 text-align: center;
michael@0 34 }
michael@0 35
michael@0 36 toolbarbutton.tabbable {
michael@0 37 -moz-user-focus: normal !important;
michael@0 38 }
michael@0 39
michael@0 40 toolbarbutton:hover {
michael@0 41 color: -moz-buttonhovertext;
michael@0 42 }
michael@0 43
michael@0 44 toolbarbutton:hover:active,
michael@0 45 toolbarbutton[open="true"] {
michael@0 46 padding-top: 4px;
michael@0 47 padding-bottom: 2px;
michael@0 48 -moz-padding-start: 4px;
michael@0 49 -moz-padding-end: 2px;
michael@0 50 color: ButtonText;
michael@0 51 }
michael@0 52
michael@0 53 toolbarbutton[disabled="true"],
michael@0 54 toolbarbutton[disabled="true"]:hover,
michael@0 55 toolbarbutton[disabled="true"]:hover:active,
michael@0 56 toolbarbutton[disabled="true"][open="true"] {
michael@0 57 padding: 3px;
michael@0 58 color: GrayText;
michael@0 59 }
michael@0 60
michael@0 61 toolbarbutton[checked="true"]:not(:hover) {
michael@0 62 color: ButtonText;
michael@0 63 }
michael@0 64
michael@0 65 toolbarbutton:-moz-lwtheme:not(:hover):not([checked="true"]):not([open="true"]):not([disabled="true"]) {
michael@0 66 color: inherit;
michael@0 67 text-shadow: inherit;
michael@0 68 }
michael@0 69
michael@0 70 /* ::::: toolbarbutton menu ::::: */
michael@0 71
michael@0 72 .toolbarbutton-menu-dropmarker {
michael@0 73 -moz-appearance: toolbarbutton-dropdown !important;
michael@0 74 list-style-image: none;
michael@0 75 -moz-image-region: auto;
michael@0 76 padding: 0;
michael@0 77 margin: 0;
michael@0 78 }
michael@0 79
michael@0 80 .toolbarbutton-menu-dropmarker[disabled="true"] {
michael@0 81 padding: 0 !important;
michael@0 82 }
michael@0 83
michael@0 84 /* ::::: toolbarbutton menu-button ::::: */
michael@0 85
michael@0 86 toolbarbutton[type="menu-button"] {
michael@0 87 -moz-box-align: stretch;
michael@0 88 -moz-appearance: dualbutton;
michael@0 89 -moz-box-orient: horizontal !important;
michael@0 90 }
michael@0 91
michael@0 92 toolbarbutton[type="menu-button"],
michael@0 93 toolbarbutton[type="menu-button"]:hover,
michael@0 94 toolbarbutton[type="menu-button"]:hover:active,
michael@0 95 toolbarbutton[type="menu-button"][open="true"],
michael@0 96 toolbarbutton[type="menu-button"][disabled="true"],
michael@0 97 toolbarbutton[type="menu-button"][disabled="true"]:hover,
michael@0 98 toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
michael@0 99 padding: 0 !important;
michael@0 100 }
michael@0 101
michael@0 102 .toolbarbutton-menubutton-button {
michael@0 103 -moz-box-align: center;
michael@0 104 -moz-box-pack: center;
michael@0 105 -moz-box-orient: vertical;
michael@0 106 }
michael@0 107
michael@0 108 /* .......... dropmarker .......... */
michael@0 109
michael@0 110 .toolbarbutton-menubutton-dropmarker {
michael@0 111 margin: 0 3px;
michael@0 112 -moz-appearance: toolbarbutton-dropdown !important;
michael@0 113 list-style-image: none;
michael@0 114 -moz-image-region: auto;
michael@0 115 }

mercurial