Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 | /* all localizable skin settings shall live here */ |
michael@0 | 6 | @import url("chrome://global/locale/intl.css"); |
michael@0 | 7 | |
michael@0 | 8 | %include shared.inc |
michael@0 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 10 | |
michael@0 | 11 | /* ::::: XBL bindings ::::: */ |
michael@0 | 12 | |
michael@0 | 13 | menulist > menupopup, |
michael@0 | 14 | .menulist-menupopup { |
michael@0 | 15 | -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); |
michael@0 | 16 | } |
michael@0 | 17 | |
michael@0 | 18 | .menulist-compact { |
michael@0 | 19 | -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact"); |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | /* ::::: draggable elements ::::: */ |
michael@0 | 23 | |
michael@0 | 24 | toolbar:not([nowindowdrag="true"]) { |
michael@0 | 25 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag"); |
michael@0 | 26 | } |
michael@0 | 27 | |
michael@0 | 28 | statusbar:not([nowindowdrag="true"]) { |
michael@0 | 29 | -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-drag"); |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | windowdragbox { |
michael@0 | 33 | -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox"); |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | /* ::::: root elements ::::: */ |
michael@0 | 37 | |
michael@0 | 38 | window, |
michael@0 | 39 | page, |
michael@0 | 40 | dialog, |
michael@0 | 41 | wizard, |
michael@0 | 42 | prefwindow { |
michael@0 | 43 | -moz-appearance: dialog; |
michael@0 | 44 | background-color: #FFFFFF; |
michael@0 | 45 | color: -moz-DialogText; |
michael@0 | 46 | font: message-box; |
michael@0 | 47 | } |
michael@0 | 48 | |
michael@0 | 49 | prefwindow[type="child"] { |
michael@0 | 50 | padding-top: 18px; |
michael@0 | 51 | padding-bottom: 15px; |
michael@0 | 52 | -moz-padding-start: 18px; |
michael@0 | 53 | -moz-padding-end: 20px; |
michael@0 | 54 | } |
michael@0 | 55 | |
michael@0 | 56 | /* deprecated */ |
michael@0 | 57 | window.dialog { |
michael@0 | 58 | padding-top: 8px; |
michael@0 | 59 | padding-bottom: 10px; |
michael@0 | 60 | -moz-padding-start: 8px; |
michael@0 | 61 | -moz-padding-end: 10px; |
michael@0 | 62 | } |
michael@0 | 63 | |
michael@0 | 64 | /* ::::: alert icons :::::*/ |
michael@0 | 65 | |
michael@0 | 66 | .message-icon, |
michael@0 | 67 | .alert-icon, |
michael@0 | 68 | .error-icon, |
michael@0 | 69 | .question-icon { |
michael@0 | 70 | width: 64px; |
michael@0 | 71 | height: 64px; |
michael@0 | 72 | margin: 6px; |
michael@0 | 73 | -moz-margin-end: 20px; |
michael@0 | 74 | } |
michael@0 | 75 | |
michael@0 | 76 | .message-icon { |
michael@0 | 77 | list-style-image: url("chrome://global/skin/icons/information-64.png"); |
michael@0 | 78 | } |
michael@0 | 79 | |
michael@0 | 80 | .alert-icon { |
michael@0 | 81 | list-style-image: url("chrome://global/skin/icons/warning-64.png"); |
michael@0 | 82 | } |
michael@0 | 83 | |
michael@0 | 84 | .error-icon { |
michael@0 | 85 | list-style-image: url("chrome://global/skin/icons/error-64.png"); |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | .question-icon { |
michael@0 | 89 | list-style-image: url("chrome://global/skin/icons/question-64.png"); |
michael@0 | 90 | } |
michael@0 | 91 | |
michael@0 | 92 | /* ::::: iframe ::::: */ |
michael@0 | 93 | |
michael@0 | 94 | iframe { |
michael@0 | 95 | border: none; |
michael@0 | 96 | width: 100px; |
michael@0 | 97 | height: 100px; |
michael@0 | 98 | min-width: 10px; |
michael@0 | 99 | min-height: 10px; |
michael@0 | 100 | } |
michael@0 | 101 | |
michael@0 | 102 | /* ::::: statusbar ::::: */ |
michael@0 | 103 | |
michael@0 | 104 | statusbar { |
michael@0 | 105 | min-width: 1px; /* DON'T DELETE! |
michael@0 | 106 | Prevents hiding of scrollbars in browser when window is made smaller.*/ |
michael@0 | 107 | min-height: 15px !important; |
michael@0 | 108 | margin: 0px !important; |
michael@0 | 109 | /* need to use -moz-padding-end when/if bug 631729 gets fixed: */ |
michael@0 | 110 | padding: 0px 16px 1px 1px; |
michael@0 | 111 | -moz-appearance: statusbar; |
michael@0 | 112 | text-shadow: rgba(255, 255, 255, 0.4) 0 1px; |
michael@0 | 113 | } |
michael@0 | 114 | |
michael@0 | 115 | statusbarpanel { |
michael@0 | 116 | -moz-box-align: center; |
michael@0 | 117 | -moz-box-pack: center; |
michael@0 | 118 | padding: 0 4px; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | .statusbarpanel-iconic { |
michael@0 | 122 | padding: 0px; |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | /* ::::: miscellaneous formatting ::::: */ |
michael@0 | 126 | |
michael@0 | 127 | :root:-moz-lwtheme, |
michael@0 | 128 | [lwthemefooter="true"] { |
michael@0 | 129 | -moz-appearance: none; |
michael@0 | 130 | } |
michael@0 | 131 | |
michael@0 | 132 | :root:-moz-lwtheme-darktext { |
michael@0 | 133 | text-shadow: 0 -0.5px 1.5px white; |
michael@0 | 134 | } |
michael@0 | 135 | |
michael@0 | 136 | :root:-moz-lwtheme-brighttext { |
michael@0 | 137 | text-shadow: 1px 1px 1.5px black; |
michael@0 | 138 | } |
michael@0 | 139 | |
michael@0 | 140 | statusbar:-moz-lwtheme { |
michael@0 | 141 | -moz-appearance: none; |
michael@0 | 142 | background: none; |
michael@0 | 143 | border-style: none; |
michael@0 | 144 | text-shadow: inherit; |
michael@0 | 145 | } |
michael@0 | 146 | |
michael@0 | 147 | .inset { |
michael@0 | 148 | border: 1px solid ThreeDShadow; |
michael@0 | 149 | border-right-color: ThreeDHighlight; |
michael@0 | 150 | border-bottom-color: ThreeDHighlight; |
michael@0 | 151 | margin: 0 5px 5px; |
michael@0 | 152 | } |
michael@0 | 153 | |
michael@0 | 154 | .outset { |
michael@0 | 155 | border: 1px solid ThreeDShadow; |
michael@0 | 156 | border-left-color: ThreeDHighlight; |
michael@0 | 157 | border-top-color: ThreeDHighlight; |
michael@0 | 158 | } |
michael@0 | 159 | |
michael@0 | 160 | separator:not([orient="vertical"]) { |
michael@0 | 161 | height: 1.5em; |
michael@0 | 162 | } |
michael@0 | 163 | separator[orient="vertical"] { |
michael@0 | 164 | width: 1.5em; |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | separator.thin:not([orient="vertical"]) { |
michael@0 | 168 | height: 0.5em; |
michael@0 | 169 | } |
michael@0 | 170 | separator.thin[orient="vertical"] { |
michael@0 | 171 | width: 0.5em; |
michael@0 | 172 | } |
michael@0 | 173 | |
michael@0 | 174 | separator.groove:not([orient="vertical"]) { |
michael@0 | 175 | border-top: 1px solid #A3A3A3; |
michael@0 | 176 | height: 0; |
michael@0 | 177 | margin-top: 0.4em; |
michael@0 | 178 | margin-bottom: 0.4em; |
michael@0 | 179 | } |
michael@0 | 180 | separator.groove[orient="vertical"] { |
michael@0 | 181 | border-left: 1px solid #A3A3A3; |
michael@0 | 182 | width: 0; |
michael@0 | 183 | margin-left: 0.4em; |
michael@0 | 184 | margin-right: 0.4em; |
michael@0 | 185 | } |
michael@0 | 186 | |
michael@0 | 187 | .plain { |
michael@0 | 188 | -moz-appearance: none; |
michael@0 | 189 | margin: 0 !important; |
michael@0 | 190 | border: none; |
michael@0 | 191 | padding: 0; |
michael@0 | 192 | } |
michael@0 | 193 | |
michael@0 | 194 | description, |
michael@0 | 195 | label { |
michael@0 | 196 | cursor: default; |
michael@0 | 197 | } |
michael@0 | 198 | |
michael@0 | 199 | label { |
michael@0 | 200 | margin: 2px 6px; |
michael@0 | 201 | } |
michael@0 | 202 | |
michael@0 | 203 | label[disabled="true"] { |
michael@0 | 204 | color: GrayText; |
michael@0 | 205 | } |
michael@0 | 206 | |
michael@0 | 207 | .tooltip-label { |
michael@0 | 208 | margin: 0; |
michael@0 | 209 | } |
michael@0 | 210 | |
michael@0 | 211 | description { |
michael@0 | 212 | margin-bottom: 4px; |
michael@0 | 213 | } |
michael@0 | 214 | |
michael@0 | 215 | .header { |
michael@0 | 216 | margin-bottom: 6px; |
michael@0 | 217 | font-weight: bold; |
michael@0 | 218 | } |
michael@0 | 219 | |
michael@0 | 220 | .monospace { |
michael@0 | 221 | font-family: monospace; |
michael@0 | 222 | } |
michael@0 | 223 | |
michael@0 | 224 | .indent { |
michael@0 | 225 | -moz-margin-start: 23px; |
michael@0 | 226 | } |
michael@0 | 227 | |
michael@0 | 228 | .box-padded { |
michael@0 | 229 | padding: 5px; |
michael@0 | 230 | } |
michael@0 | 231 | |
michael@0 | 232 | .spaced { |
michael@0 | 233 | margin: 3px 5px 4px; |
michael@0 | 234 | } |
michael@0 | 235 | |
michael@0 | 236 | .wizard-box { |
michael@0 | 237 | padding: 20px 44px 10px; |
michael@0 | 238 | } |
michael@0 | 239 | |
michael@0 | 240 | .text-link { |
michael@0 | 241 | color: -moz-nativehyperlinktext; |
michael@0 | 242 | cursor: pointer; |
michael@0 | 243 | } |
michael@0 | 244 | |
michael@0 | 245 | .text-link:hover { |
michael@0 | 246 | text-decoration: underline; |
michael@0 | 247 | } |
michael@0 | 248 | |
michael@0 | 249 | .text-link:-moz-focusring { |
michael@0 | 250 | box-shadow: @focusRingShadow@; |
michael@0 | 251 | } |
michael@0 | 252 | |
michael@0 | 253 | .toolbar-focustarget { |
michael@0 | 254 | -moz-user-focus: ignore !important; |
michael@0 | 255 | } |
michael@0 | 256 | |
michael@0 | 257 | notification > button { |
michael@0 | 258 | margin: 0 3px; |
michael@0 | 259 | padding: 1px 10px; |
michael@0 | 260 | min-width: 60px; |
michael@0 | 261 | min-height: 16px; |
michael@0 | 262 | -moz-appearance: none; |
michael@0 | 263 | border-radius: 10000px; |
michael@0 | 264 | border: @roundButtonBorder@; |
michael@0 | 265 | text-shadow: @loweredShadow@; |
michael@0 | 266 | background: @roundButtonBackground@; |
michael@0 | 267 | box-shadow: @roundButtonShadow@; |
michael@0 | 268 | } |
michael@0 | 269 | |
michael@0 | 270 | notification > button:active:hover { |
michael@0 | 271 | background: @roundButtonPressedBackground@; |
michael@0 | 272 | box-shadow: @roundButtonPressedShadow@; |
michael@0 | 273 | } |
michael@0 | 274 | |
michael@0 | 275 | notification > button:-moz-focusring { |
michael@0 | 276 | box-shadow: @focusRingShadow@, @roundButtonShadow@; |
michael@0 | 277 | } |
michael@0 | 278 | |
michael@0 | 279 | notification > button:active:hover:-moz-focusring { |
michael@0 | 280 | box-shadow: @focusRingShadow@, @roundButtonPressedShadow@; |
michael@0 | 281 | } |
michael@0 | 282 | |
michael@0 | 283 | notification > button > .button-box > .button-text { |
michael@0 | 284 | margin: 0 !important; |
michael@0 | 285 | } |
michael@0 | 286 | |
michael@0 | 287 | /* :::::: autoscroll popup ::::: */ |
michael@0 | 288 | |
michael@0 | 289 | .autoscroller { |
michael@0 | 290 | height: 28px; |
michael@0 | 291 | width: 28px; |
michael@0 | 292 | border: none; |
michael@0 | 293 | margin: -14px; |
michael@0 | 294 | padding: 0; |
michael@0 | 295 | background-image: url("chrome://global/skin/icons/autoscroll.png"); |
michael@0 | 296 | background-color: transparent; |
michael@0 | 297 | background-position: right top; |
michael@0 | 298 | -moz-appearance: none; |
michael@0 | 299 | -moz-window-shadow: 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 | /* autorepeatbuttons in menus */ |
michael@0 | 311 | |
michael@0 | 312 | .popup-internal-box > autorepeatbutton { |
michael@0 | 313 | height: 15px; |
michael@0 | 314 | position: relative; |
michael@0 | 315 | /* Here we're using a little magic. |
michael@0 | 316 | * The arrow button is supposed to overlay the scrollbox, blocking |
michael@0 | 317 | * everything under it from reaching the screen. However, the menu background |
michael@0 | 318 | * is slightly transparent, so how can we block something completely without |
michael@0 | 319 | * messing up the transparency? It's easy: The native theming of the |
michael@0 | 320 | * "menuitem" appearance uses CGContextClearRect before drawing, which |
michael@0 | 321 | * clears everything under it. |
michael@0 | 322 | * Without help from native theming this effect wouldn't be achievable. |
michael@0 | 323 | */ |
michael@0 | 324 | -moz-appearance: menuitem; |
michael@0 | 325 | } |
michael@0 | 326 | |
michael@0 | 327 | .popup-internal-box > .autorepeatbutton-up { |
michael@0 | 328 | margin-bottom: -15px; |
michael@0 | 329 | } |
michael@0 | 330 | |
michael@0 | 331 | .popup-internal-box > .autorepeatbutton-down { |
michael@0 | 332 | margin-top: -15px; |
michael@0 | 333 | } |
michael@0 | 334 | |
michael@0 | 335 | .popup-internal-box > autorepeatbutton[disabled="true"] { |
michael@0 | 336 | visibility: collapse; |
michael@0 | 337 | } |
michael@0 | 338 | |
michael@0 | 339 | /* :::::: Close button icons ::::: */ |
michael@0 | 340 | |
michael@0 | 341 | .close-icon { |
michael@0 | 342 | list-style-image: url("chrome://global/skin/icons/close.png"); |
michael@0 | 343 | -moz-image-region: rect(0, 16px, 16px, 0); |
michael@0 | 344 | } |
michael@0 | 345 | |
michael@0 | 346 | .close-icon:hover { |
michael@0 | 347 | -moz-image-region: rect(0, 32px, 16px, 16px); |
michael@0 | 348 | } |
michael@0 | 349 | |
michael@0 | 350 | .close-icon:hover:active { |
michael@0 | 351 | -moz-image-region: rect(0, 48px, 16px, 32px); |
michael@0 | 352 | } |
michael@0 | 353 | |
michael@0 | 354 | @media (min-resolution: 2dppx) { |
michael@0 | 355 | .close-icon > .button-icon, |
michael@0 | 356 | .close-icon > .toolbarbutton-icon { |
michael@0 | 357 | width: 16px; |
michael@0 | 358 | } |
michael@0 | 359 | |
michael@0 | 360 | .close-icon { |
michael@0 | 361 | list-style-image: url("chrome://global/skin/icons/close@2x.png"); |
michael@0 | 362 | -moz-image-region: rect(0, 32px, 32px, 0); |
michael@0 | 363 | } |
michael@0 | 364 | |
michael@0 | 365 | .close-icon:hover { |
michael@0 | 366 | -moz-image-region: rect(0, 64px, 32px, 32px); |
michael@0 | 367 | } |
michael@0 | 368 | |
michael@0 | 369 | .close-icon:hover:active { |
michael@0 | 370 | -moz-image-region: rect(0, 96px, 32px, 64px); |
michael@0 | 371 | } |
michael@0 | 372 | } |