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 | /* ===== listbox.css ======================================================= |
michael@0 | 6 | == Styles used by XUL listbox-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 | /* ::::: listbox ::::: */ |
michael@0 | 12 | |
michael@0 | 13 | listbox { |
michael@0 | 14 | -moz-appearance: listbox; |
michael@0 | 15 | margin: 2px 4px; |
michael@0 | 16 | border: 2px solid; |
michael@0 | 17 | -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 18 | -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 19 | -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 20 | -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; |
michael@0 | 21 | background-color: -moz-Field; |
michael@0 | 22 | color: -moz-FieldText; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | listbox[disabled="true"] { |
michael@0 | 26 | color: GrayText; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | /* ::::: listitem ::::: */ |
michael@0 | 30 | |
michael@0 | 31 | listitem { |
michael@0 | 32 | border: 1px solid transparent; |
michael@0 | 33 | } |
michael@0 | 34 | |
michael@0 | 35 | listbox:focus > listitem[selected="true"][current="true"] { |
michael@0 | 36 | outline: 1px dotted #F3D982; |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | listbox:focus > listitem[current="true"] { |
michael@0 | 40 | outline: 1px dotted Highlight; |
michael@0 | 41 | outline-offset: -1px; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | listitem[selected="true"] { |
michael@0 | 45 | background-color: -moz-cellhighlight; |
michael@0 | 46 | color: -moz-cellhighlighttext; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | listbox:focus > listitem[selected="true"] { |
michael@0 | 50 | background-color: Highlight; |
michael@0 | 51 | color: HighlightText; |
michael@0 | 52 | } |
michael@0 | 53 | |
michael@0 | 54 | /* ::::: listheader ::::: */ |
michael@0 | 55 | |
michael@0 | 56 | listheader { |
michael@0 | 57 | -moz-appearance: treeheadercell; |
michael@0 | 58 | -moz-box-align: center; |
michael@0 | 59 | border: 2px solid; |
michael@0 | 60 | -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 61 | -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 62 | -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; |
michael@0 | 63 | -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; |
michael@0 | 64 | background-color: -moz-Dialog; |
michael@0 | 65 | color: -moz-DialogText; |
michael@0 | 66 | padding: 0 2px; |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | listheader:hover { |
michael@0 | 70 | color: -moz-buttonhovertext; |
michael@0 | 71 | } |
michael@0 | 72 | |
michael@0 | 73 | listheader[sortable="true"]:hover:active { |
michael@0 | 74 | color: ButtonText; |
michael@0 | 75 | border: 2px solid; |
michael@0 | 76 | -moz-border-top-colors: ThreeDShadow -moz-Dialog; |
michael@0 | 77 | -moz-border-right-colors: ThreeDShadow transparent; |
michael@0 | 78 | -moz-border-bottom-colors: ThreeDShadow transparent; |
michael@0 | 79 | -moz-border-left-colors: ThreeDShadow -moz-Dialog; |
michael@0 | 80 | padding-top: 0px; |
michael@0 | 81 | padding-bottom: 0px; |
michael@0 | 82 | -moz-padding-start: 3px; |
michael@0 | 83 | -moz-padding-end: 1px; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | .listheader-icon { |
michael@0 | 87 | -moz-margin-end: 2px; |
michael@0 | 88 | } |
michael@0 | 89 | |
michael@0 | 90 | .listheader-icon[sortable="true"]:hover:active { |
michael@0 | 91 | -moz-margin-end: 1px; |
michael@0 | 92 | } |
michael@0 | 93 | |
michael@0 | 94 | .listheader-label { |
michael@0 | 95 | margin: 0px !important; |
michael@0 | 96 | } |
michael@0 | 97 | |
michael@0 | 98 | /* ..... sort direction icon ..... */ |
michael@0 | 99 | |
michael@0 | 100 | .listheader-sortdirection { |
michael@0 | 101 | -moz-appearance: treeheadersortarrow; |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | /* ::::: listcell ::::: */ |
michael@0 | 105 | |
michael@0 | 106 | .listcell-label { |
michael@0 | 107 | margin: 0px !important; |
michael@0 | 108 | padding-top: 0px; |
michael@0 | 109 | padding-bottom: 1px; |
michael@0 | 110 | -moz-padding-start: 4px; |
michael@0 | 111 | -moz-padding-end: 0px; |
michael@0 | 112 | white-space: nowrap; |
michael@0 | 113 | } |
michael@0 | 114 | |
michael@0 | 115 | .listcell-icon { |
michael@0 | 116 | -moz-margin-end: 2px; |
michael@0 | 117 | } |
michael@0 | 118 | |
michael@0 | 119 | .listcell-label[disabled="true"] { |
michael@0 | 120 | color: GrayText; |
michael@0 | 121 | } |
michael@0 | 122 | |
michael@0 | 123 | /* ::::: listcell checkbox ::::: */ |
michael@0 | 124 | |
michael@0 | 125 | .listcell-check { |
michael@0 | 126 | -moz-appearance: checkbox; |
michael@0 | 127 | -moz-box-align: center; |
michael@0 | 128 | margin: 0px 2px; |
michael@0 | 129 | border: 1px solid -moz-DialogText; |
michael@0 | 130 | min-width: 13px; |
michael@0 | 131 | min-height: 13px; |
michael@0 | 132 | background: -moz-Field no-repeat 50% 50%; |
michael@0 | 133 | } |