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