toolkit/themes/linux/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.

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 /* ===== menulist.css ===================================================
michael@0 6 == Styles used by the XUL menulist 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 @namespace html url("http://www.w3.org/1999/xhtml");
michael@0 11
michael@0 12 /* :::::::::: menulist :::::::::: */
michael@0 13
michael@0 14 menulist {
michael@0 15 -moz-appearance: menulist;
michael@0 16 margin: 2px 4px;
michael@0 17 color: -moz-DialogText;
michael@0 18 font: menu;
michael@0 19 text-shadow: none;
michael@0 20 }
michael@0 21
michael@0 22 .menulist-label-box {
michael@0 23 -moz-appearance: menulist-text;
michael@0 24 -moz-box-align: center;
michael@0 25 -moz-box-pack: center;
michael@0 26 color: inherit;
michael@0 27 }
michael@0 28
michael@0 29 .menulist-label {
michael@0 30 margin: 1px 3px !important;
michael@0 31 }
michael@0 32
michael@0 33 .menulist-dropmarker {
michael@0 34 display: none;
michael@0 35 }
michael@0 36
michael@0 37 menulist:hover {
michael@0 38 color: -moz-buttonhovertext;
michael@0 39 }
michael@0 40
michael@0 41 menulist:hover:active,
michael@0 42 menulist[open="true"] {
michael@0 43 color: ButtonText;
michael@0 44 }
michael@0 45
michael@0 46 menulist[disabled="true"],
michael@0 47 menulist[disabled="true"]:hover,
michael@0 48 menulist[disabled="true"]:hover:active {
michael@0 49 color: GrayText;
michael@0 50 }
michael@0 51
michael@0 52 .menulist-description {
michael@0 53 font-style: italic;
michael@0 54 color: GrayText;
michael@0 55 -moz-margin-start: 1ex !important;
michael@0 56 }
michael@0 57
michael@0 58 /* ::::: editable menulists ::::: */
michael@0 59
michael@0 60 menulist[editable="true"] {
michael@0 61 -moz-appearance: none;
michael@0 62 color: -moz-FieldText;
michael@0 63 }
michael@0 64
michael@0 65 .menulist-editable-box {
michael@0 66 -moz-appearance: menulist-textfield;
michael@0 67 padding-top: 3px;
michael@0 68 padding-bottom: 3px;
michael@0 69 -moz-padding-start: 2px;
michael@0 70 -moz-padding-end: 0px;
michael@0 71 }
michael@0 72
michael@0 73 menulist[editable="true"] > .menulist-dropmarker {
michael@0 74 display: -moz-box;
michael@0 75 -moz-appearance: menulist-button;
michael@0 76 }
michael@0 77
michael@0 78 html|*.menulist-editable-input {
michael@0 79 margin: 0px !important;
michael@0 80 border: none !important;
michael@0 81 padding: 0px !important;
michael@0 82 font: inherit;
michael@0 83 }
michael@0 84
michael@0 85
michael@0 86 /* ::::: compact menulists ::::: */
michael@0 87
michael@0 88 .menulist-compact {
michael@0 89 -moz-appearance: none;
michael@0 90 -moz-box-align: center;
michael@0 91 -moz-box-pack: center;
michael@0 92 margin: 0;
michael@0 93 border: 2px solid;
michael@0 94 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 95 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 96 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 97 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 98 background-color: ThreeDFace;
michael@0 99 color: ButtonText;
michael@0 100 list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
michael@0 101 }
michael@0 102
michael@0 103 .menulist-compact:hover {
michael@0 104 color: ButtonText;
michael@0 105 }
michael@0 106
michael@0 107 .menulist-compact > .menulist-label-box > .menulist-label {
michael@0 108 margin: 0 3px !important;
michael@0 109 text-align: end;
michael@0 110 }
michael@0 111
michael@0 112 .menulist-compact > .menulist-label-box > .menulist-icon {
michael@0 113 -moz-margin-start: 2px;
michael@0 114 }
michael@0 115
michael@0 116 .menulist-compact[open="true"] {
michael@0 117 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 118 -moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight;
michael@0 119 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight;
michael@0 120 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
michael@0 121 }
michael@0 122
michael@0 123 .menulist-compact[disabled="true"] {
michael@0 124 list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
michael@0 125 }
michael@0 126
michael@0 127 .menulist-compact > .menulist-label-box,
michael@0 128 .menulist-compact[open="true"]:focus > .menulist-label-box {
michael@0 129 border: 1px solid transparent;
michael@0 130 -moz-appearance: none;
michael@0 131 }
michael@0 132
michael@0 133 .menulist-compact:focus > .menulist-label-box {
michael@0 134 border: 1px dotted;
michael@0 135 }

mercurial