Tue, 06 Jan 2015 21:39:09 +0100
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 | /* ===== button.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 | /* :::::::::: button :::::::::: */ |
michael@0 | 12 | |
michael@0 | 13 | button { |
michael@0 | 14 | /*-moz-appearance: button;*/ |
michael@0 | 15 | margin: 3px 7px 3px 7px; |
michael@0 | 16 | min-width: 6.3em; |
michael@0 | 17 | border: 1px solid; |
michael@0 | 18 | border-color: #555555; |
michael@0 | 19 | background-color: #eeeeee; |
michael@0 | 20 | color: black; |
michael@0 | 21 | border-radius: 3px 3px; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | .button-box { |
michael@0 | 25 | border: 1px solid transparent; |
michael@0 | 26 | padding-top: 1px; |
michael@0 | 27 | padding-bottom: 2px; |
michael@0 | 28 | -moz-padding-start: 3px; |
michael@0 | 29 | -moz-padding-end: 4px; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | .button-text { |
michael@0 | 33 | margin: 0 !important; |
michael@0 | 34 | text-align: center; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | /* .......... focused state .......... */ |
michael@0 | 38 | |
michael@0 | 39 | button:focus { |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | button:focus > .button-box { |
michael@0 | 43 | border: 1px dotted black; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | /* .......... default state .......... */ |
michael@0 | 47 | |
michael@0 | 48 | button[default="true"] { |
michael@0 | 49 | margin: 1px 5px 1px 5px; |
michael@0 | 50 | border-width: 2px; |
michael@0 | 51 | border-radius: 3px 3px; |
michael@0 | 52 | border-color: black; |
michael@0 | 53 | } |
michael@0 | 54 | |
michael@0 | 55 | /* .......... active/open/checked state .......... */ |
michael@0 | 56 | |
michael@0 | 57 | button:hover:active, |
michael@0 | 58 | button[open="true"], |
michael@0 | 59 | button[checked="true"] { |
michael@0 | 60 | border-color: black; |
michael@0 | 61 | background: #777777; |
michael@0 | 62 | } |
michael@0 | 63 | |
michael@0 | 64 | /* .......... disabled state .......... */ |
michael@0 | 65 | |
michael@0 | 66 | button[disabled="true"] { |
michael@0 | 67 | border-color: #dddddd; |
michael@0 | 68 | color: gray; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | button[disabled="true"] > .button-box { |
michael@0 | 72 | padding-top: 1px !important; |
michael@0 | 73 | padding-bottom: 2px !important; |
michael@0 | 74 | -moz-padding-start: 3px !important; |
michael@0 | 75 | -moz-padding-end: 4px !important; |
michael@0 | 76 | } |
michael@0 | 77 | |
michael@0 | 78 | /* ::::: menu/menu-button buttons ::::: */ |
michael@0 | 79 | |
michael@0 | 80 | button[type="menu-button"] { |
michael@0 | 81 | -moz-box-align: center; |
michael@0 | 82 | -moz-box-pack: center; |
michael@0 | 83 | margin: 0; |
michael@0 | 84 | border: none; |
michael@0 | 85 | } |
michael@0 | 86 | |
michael@0 | 87 | .button-menu-dropmarker, |
michael@0 | 88 | .button-menubutton-dropmarker { |
michael@0 | 89 | -moz-appearance: none !important; |
michael@0 | 90 | margin: 1px; |
michael@0 | 91 | background-color: transparent !important; |
michael@0 | 92 | border: none !important; |
michael@0 | 93 | min-width:11px; |
michael@0 | 94 | min-height:11px; |
michael@0 | 95 | } |
michael@0 | 96 | |
michael@0 | 97 | .button-menubutton-dropmarker[open="true"] { |
michael@0 | 98 | margin-top: 2px; |
michael@0 | 99 | margin-bottom: 0px; |
michael@0 | 100 | -moz-margin-start: 2px; |
michael@0 | 101 | -moz-margin-end: 0px; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | /* ::::: plain buttons ::::: */ |
michael@0 | 105 | |
michael@0 | 106 | button.plain { |
michael@0 | 107 | border: 0px !important; |
michael@0 | 108 | margin: 0px !important; |
michael@0 | 109 | padding: 0px !important; |
michael@0 | 110 | } |
michael@0 | 111 | |
michael@0 | 112 | button[type="disclosure"] { |
michael@0 | 113 | border: 0px !important; |
michael@0 | 114 | margin: 0px !important; |
michael@0 | 115 | padding: 0px !important; |
michael@0 | 116 | list-style-image: url("chrome://global/skin/tree/twisty-clsd.png"); |
michael@0 | 117 | min-width: 0px !important; |
michael@0 | 118 | background-color: transparent; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | button[type="disclosure"][open="true"] { |
michael@0 | 122 | list-style-image: url("chrome://global/skin/tree/twisty-open.png"); |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 |