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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* ===== global.css =====================================================
6 == Styles that apply everywhere.
7 ======================================================================= */
9 /* all localizable skin settings shall live here */
10 @import url("chrome://global/locale/intl.css");
12 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
14 /* ::::: XBL bindings ::::: */
16 checkbox {
17 -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
18 }
20 radio {
21 -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
22 }
24 menulist > menupopup,
25 .menulist-menupopup {
26 -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
27 }
29 .menulist-compact {
30 -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact");
31 }
33 progressmeter[mode="undetermined"] {
34 -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter-undetermined");
35 }
37 toolbar[type="menubar"]:not([autohide="true"]):not(:-moz-lwtheme):-moz-system-metric(menubar-drag) {
38 -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
39 }
41 /* ::::: root elements ::::: */
43 window,
44 page,
45 dialog,
46 wizard,
47 prefwindow {
48 -moz-appearance: window;
49 background-color: -moz-Dialog;
50 color: -moz-DialogText;
51 font: message-box;
52 }
54 /* deprecated */
55 window.dialog {
56 padding-top: 8px;
57 padding-bottom: 10px;
58 -moz-padding-start: 8px;
59 -moz-padding-end: 10px;
60 }
62 /* ::::: alert icons :::::*/
64 .message-icon {
65 list-style-image: url("moz-icon://stock/gtk-dialog-info?size=dialog");
66 }
68 .alert-icon {
69 list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog");
70 }
72 .error-icon {
73 list-style-image: url("moz-icon://stock/gtk-dialog-error?size=dialog");
74 }
76 .question-icon {
77 list-style-image: url("moz-icon://stock/gtk-dialog-question?size=dialog");
78 }
80 .authentication-icon {
81 list-style-image: url("chrome://global/skin/icons/Authentication.png");
82 }
84 /* ::::: iframe ::::: */
86 iframe {
87 border: none;
88 width: 100px;
89 height: 100px;
90 min-width: 10px;
91 min-height: 10px;
92 }
94 /* ::::: statusbar ::::: */
96 statusbar {
97 -moz-appearance: statusbar;
98 border-top: 1px solid ThreeDLightShadow;
99 border-left: 1px solid ThreeDShadow;
100 border-right: 1px solid ThreeDHighlight;
101 border-bottom: 1px solid ThreeDHighlight;
102 background-color: -moz-Dialog;
103 min-height: 22px;
104 }
106 statusbarpanel {
107 -moz-appearance: statusbarpanel;
108 -moz-box-align: center;
109 -moz-box-pack: center;
110 border-left: 1px solid ThreeDHighlight;
111 border-top: 1px solid ThreeDHighlight;
112 border-right: 1px solid ThreeDShadow;
113 border-bottom: 1px solid ThreeDShadow;
114 padding: 0 4px;
115 }
117 .statusbar-resizerpanel {
118 -moz-box-align: end;
119 -moz-box-pack: end;
120 -moz-appearance: resizerpanel;
121 padding: 0;
122 border: none;
123 }
125 .statusbarpanel-iconic,
126 .statusbarpanel-iconic-text,
127 .statusbarpanel-menu-iconic {
128 padding: 0 1px;
129 }
131 /* XXXBlake yeah, shoot me -- these don't belong here. I'll move them later. */
133 sidebarheader {
134 height: 25px;
135 background-color: -moz-Dialog;
136 }
138 sidebarheader > label {
139 -moz-padding-start: 4px;
140 }
142 .toolbar-focustarget {
143 -moz-user-focus: ignore !important;
144 }
146 toolbar[mode="text"] .toolbarbutton-text {
147 padding: 0 !important;
148 margin: 3px 5px !important;
149 }
151 /* ::::: miscellaneous formatting ::::: */
153 :root:-moz-lwtheme,
154 [lwthemefooter="true"],
155 statusbarpanel:-moz-lwtheme {
156 -moz-appearance: none;
157 }
159 sidebarheader:-moz-lwtheme {
160 background: none;
161 }
163 :root:-moz-lwtheme-darktext {
164 text-shadow: 0 -0.5px 1.5px white;
165 }
167 :root:-moz-lwtheme-brighttext {
168 text-shadow: 1px 1px 1.5px black;
169 }
171 .inset {
172 border: 1px solid ThreeDShadow;
173 border-right-color: ThreeDHighlight;
174 border-bottom-color: ThreeDHighlight;
175 margin: 0 5px 5px;
176 }
178 .outset {
179 border: 1px solid ThreeDShadow;
180 border-left-color: ThreeDHighlight;
181 border-top-color: ThreeDHighlight;
182 }
184 separator:not([orient="vertical"]) {
185 height: 1.5em;
186 }
187 separator[orient="vertical"] {
188 width: 1.5em;
189 }
191 separator.thin:not([orient="vertical"]) {
192 height: 0.5em;
193 }
194 separator.thin[orient="vertical"] {
195 width: 0.5em;
196 }
198 separator.groove:not([orient="vertical"]) {
199 border-top: 1px solid ThreeDShadow;
200 border-bottom: 1px solid ThreeDHighlight;
201 height: 0;
202 margin-top: 0.4em;
203 margin-bottom: 0.4em;
204 }
205 separator.groove[orient="vertical"] {
206 border-left: 1px solid ThreeDShadow;
207 border-right: 1px solid ThreeDHighlight;
208 width: 0;
209 margin-left: 0.4em;
210 margin-right: 0.4em;
211 }
213 .small-margin {
214 margin: 1px 2px;
215 }
217 .plain {
218 -moz-appearance: none;
219 margin: 0 !important;
220 border: none;
221 padding: 0;
222 }
224 description,
225 label {
226 cursor: default;
227 margin-top: 1px;
228 margin-bottom: 2px;
229 -moz-margin-start: 6px;
230 -moz-margin-end: 5px;
231 }
233 description {
234 margin-bottom: 4px;
235 }
237 label[disabled="true"] {
238 color: GrayText;
239 }
241 .tooltip-label {
242 margin: 0;
243 }
245 .header {
246 font-weight: bold;
247 }
249 .monospace {
250 font-family: monospace;
251 }
253 .indent {
254 -moz-margin-start: 23px;
255 }
257 .box-padded {
258 padding: 5px;
259 }
261 .spaced {
262 margin: 3px 5px 4px;
263 }
265 .wizard-box {
266 padding: 20px 44px 10px;
267 }
269 .text-link {
270 color: -moz-nativehyperlinktext;
271 border: 1px solid transparent;
272 cursor: pointer;
273 }
275 .text-link:hover {
276 text-decoration: underline;
277 }
279 .text-link:focus {
280 border: 1px dotted -moz-DialogText;
281 }
283 notification > button {
284 margin-top: 0;
285 margin-bottom: 0;
286 }
288 /* :::::: autoscroll popup ::::: */
290 .autoscroller {
291 height: 28px;
292 width: 28px;
293 border: none;
294 margin: -14px;
295 padding: 0;
296 background-image: url("chrome://global/skin/icons/autoscroll.png");
297 background-color: transparent;
298 background-position: right top;
299 -moz-appearance: none;
300 }
302 .autoscroller[scrolldir="NS"] {
303 background-position: right center;
304 }
306 .autoscroller[scrolldir="EW"] {
307 background-position: right bottom;
308 }
310 /* :::::: Close button icons ::::: */
312 .close-icon {
313 -moz-appearance: none;
314 height: 16px;
315 width: 16px;
316 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 16, 16, 0);
317 background-position: center center;
318 background-repeat: no-repeat;
319 }
321 .close-icon:hover {
322 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 32, 16, 16);
323 }
325 .close-icon:hover:active {
326 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 48, 16, 32);
327 }