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 | %if 0 |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | %endif |
michael@0 | 6 | |
michael@0 | 7 | html { |
michael@0 | 8 | font: message-box; |
michael@0 | 9 | font-size: 100%; |
michael@0 | 10 | background-color: hsl(0,0%,95%); |
michael@0 | 11 | color: #000; |
michael@0 | 12 | height: 100%; |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | body { |
michael@0 | 16 | margin: 0; |
michael@0 | 17 | display: -moz-box; |
michael@0 | 18 | -moz-box-orient: vertical; |
michael@0 | 19 | width: 100%; |
michael@0 | 20 | height: 100%; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | input, |
michael@0 | 24 | button { |
michael@0 | 25 | font-size: inherit; |
michael@0 | 26 | font-family: inherit; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | a { |
michael@0 | 30 | color: -moz-nativehyperlinktext; |
michael@0 | 31 | text-decoration: none; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .spacer { |
michael@0 | 35 | -moz-box-flex: 1; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | #topSection { |
michael@0 | 39 | text-align: center; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | #brandLogo { |
michael@0 | 43 | height: 192px; |
michael@0 | 44 | width: 192px; |
michael@0 | 45 | margin: 22px auto 31px; |
michael@0 | 46 | background-image: url("chrome://branding/content/about-logo.png"); |
michael@0 | 47 | background-size: 192px auto; |
michael@0 | 48 | background-position: center center; |
michael@0 | 49 | background-repeat: no-repeat; |
michael@0 | 50 | } |
michael@0 | 51 | |
michael@0 | 52 | #searchForm, |
michael@0 | 53 | #snippets { |
michael@0 | 54 | width: 470px; |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | #searchForm { |
michael@0 | 58 | display: -moz-box; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | #searchLogoContainer { |
michael@0 | 62 | display: -moz-box; |
michael@0 | 63 | -moz-box-align: center; |
michael@0 | 64 | padding-top: 2px; |
michael@0 | 65 | -moz-padding-end: 8px; |
michael@0 | 66 | } |
michael@0 | 67 | |
michael@0 | 68 | #searchLogoContainer[hidden] { |
michael@0 | 69 | display: none; |
michael@0 | 70 | } |
michael@0 | 71 | |
michael@0 | 72 | #searchEngineLogo { |
michael@0 | 73 | display: inline-block; |
michael@0 | 74 | height: 28px; |
michael@0 | 75 | width: 70px; |
michael@0 | 76 | min-width: 70px; |
michael@0 | 77 | } |
michael@0 | 78 | |
michael@0 | 79 | #searchText { |
michael@0 | 80 | -moz-box-flex: 1; |
michael@0 | 81 | padding: 6px 8px; |
michael@0 | 82 | background: hsla(0,0%,100%,.9) padding-box; |
michael@0 | 83 | border: 1px solid; |
michael@0 | 84 | border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); |
michael@0 | 85 | box-shadow: 0 1px 0 hsla(210,65%,9%,.02) inset, |
michael@0 | 86 | 0 0 2px hsla(210,65%,9%,.1) inset, |
michael@0 | 87 | 0 1px 0 hsla(0,0%,100%,.2); |
michael@0 | 88 | border-radius: 2.5px 0 0 2.5px; |
michael@0 | 89 | } |
michael@0 | 90 | |
michael@0 | 91 | #searchText:-moz-dir(rtl) { |
michael@0 | 92 | border-radius: 0 2.5px 2.5px 0; |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | #searchText:focus, |
michael@0 | 96 | #searchText[autofocus] { |
michael@0 | 97 | border-color: hsla(206,100%,60%,.6) hsla(206,76%,52%,.6) hsla(204,100%,40%,.6); |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | #searchSubmit { |
michael@0 | 101 | -moz-margin-start: -1px; |
michael@0 | 102 | background: linear-gradient(hsla(0,0%,100%,.8), hsla(0,0%,100%,.1)) padding-box; |
michael@0 | 103 | padding: 0 9px; |
michael@0 | 104 | border: 1px solid; |
michael@0 | 105 | border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); |
michael@0 | 106 | -moz-border-start: 1px solid transparent; |
michael@0 | 107 | border-radius: 0 2.5px 2.5px 0; |
michael@0 | 108 | box-shadow: 0 0 2px hsla(0,0%,100%,.5) inset, |
michael@0 | 109 | 0 1px 0 hsla(0,0%,100%,.2); |
michael@0 | 110 | cursor: pointer; |
michael@0 | 111 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 112 | transition-duration: 150ms; |
michael@0 | 113 | } |
michael@0 | 114 | |
michael@0 | 115 | #searchSubmit:-moz-dir(rtl) { |
michael@0 | 116 | border-radius: 2.5px 0 0 2.5px; |
michael@0 | 117 | } |
michael@0 | 118 | |
michael@0 | 119 | #searchText:focus + #searchSubmit, |
michael@0 | 120 | #searchText + #searchSubmit:hover, |
michael@0 | 121 | #searchText[autofocus] + #searchSubmit { |
michael@0 | 122 | border-color: #59b5fc #45a3e7 #3294d5; |
michael@0 | 123 | color: white; |
michael@0 | 124 | } |
michael@0 | 125 | |
michael@0 | 126 | #searchText:focus + #searchSubmit, |
michael@0 | 127 | #searchText[autofocus] + #searchSubmit { |
michael@0 | 128 | background-image: linear-gradient(#4cb1ff, #1793e5); |
michael@0 | 129 | box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, |
michael@0 | 130 | 0 0 0 1px hsla(0,0%,100%,.1) inset, |
michael@0 | 131 | 0 1px 0 hsla(210,54%,20%,.03); |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | #searchText + #searchSubmit:hover { |
michael@0 | 135 | background-image: linear-gradient(#66bdff, #0d9eff); |
michael@0 | 136 | box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset, |
michael@0 | 137 | 0 0 0 1px hsla(0,0%,100%,.1) inset, |
michael@0 | 138 | 0 1px 0 hsla(210,54%,20%,.03), |
michael@0 | 139 | 0 0 4px hsla(206,100%,20%,.2); |
michael@0 | 140 | } |
michael@0 | 141 | |
michael@0 | 142 | #searchText + #searchSubmit:hover:active { |
michael@0 | 143 | box-shadow: 0 1px 1px hsla(211,79%,6%,.1) inset, |
michael@0 | 144 | 0 0 1px hsla(211,79%,6%,.2) inset; |
michael@0 | 145 | transition-duration: 0ms; |
michael@0 | 146 | } |
michael@0 | 147 | |
michael@0 | 148 | #defaultSnippet1, |
michael@0 | 149 | #defaultSnippet2, |
michael@0 | 150 | #rightsSnippet { |
michael@0 | 151 | display: block; |
michael@0 | 152 | min-height: 38px; |
michael@0 | 153 | background: 30px center no-repeat; |
michael@0 | 154 | padding: 6px 0; |
michael@0 | 155 | -moz-padding-start: 79px; |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | #rightsSnippet[hidden] { |
michael@0 | 159 | display: none; |
michael@0 | 160 | } |
michael@0 | 161 | |
michael@0 | 162 | #defaultSnippet1:-moz-dir(rtl), |
michael@0 | 163 | #defaultSnippet2:-moz-dir(rtl), |
michael@0 | 164 | #rightsSnippet:-moz-dir(rtl) { |
michael@0 | 165 | background-position: right 30px center; |
michael@0 | 166 | } |
michael@0 | 167 | |
michael@0 | 168 | #defaultSnippet1 { |
michael@0 | 169 | background-image: url("chrome://browser/content/abouthome/snippet1.png"); |
michael@0 | 170 | } |
michael@0 | 171 | |
michael@0 | 172 | #defaultSnippet2 { |
michael@0 | 173 | background-image: url("chrome://browser/content/abouthome/snippet2.png"); |
michael@0 | 174 | } |
michael@0 | 175 | |
michael@0 | 176 | #snippets { |
michael@0 | 177 | display: inline-block; |
michael@0 | 178 | text-align: start; |
michael@0 | 179 | margin: 12px 0; |
michael@0 | 180 | color: #3c3c3c; |
michael@0 | 181 | font-size: 75%; |
michael@0 | 182 | /* 12px is the computed font size, 15px the computed line height of the snippets |
michael@0 | 183 | with Segoe UI on a default Windows 7 setup. The 15/12 multiplier approximately |
michael@0 | 184 | converts em from units of font-size to units of line-height. The goal is to |
michael@0 | 185 | preset the height of a three-line snippet to avoid visual moving/flickering as |
michael@0 | 186 | the snippets load. */ |
michael@0 | 187 | min-height: calc(15/12 * 3em); |
michael@0 | 188 | } |
michael@0 | 189 | |
michael@0 | 190 | #launcher { |
michael@0 | 191 | display: -moz-box; |
michael@0 | 192 | -moz-box-align: center; |
michael@0 | 193 | -moz-box-pack: center; |
michael@0 | 194 | width: 100%; |
michael@0 | 195 | background-color: hsla(0,0%,0%,.03); |
michael@0 | 196 | border-top: 1px solid hsla(0,0%,0%,.03); |
michael@0 | 197 | box-shadow: 0 1px 2px hsla(0,0%,0%,.02) inset, |
michael@0 | 198 | 0 -1px 0 hsla(0,0%,100%,.25); |
michael@0 | 199 | } |
michael@0 | 200 | |
michael@0 | 201 | #launcher:not([session]), |
michael@0 | 202 | body[narrow] #launcher[session] { |
michael@0 | 203 | display: block; /* display separator and restore button on separate lines */ |
michael@0 | 204 | text-align: center; |
michael@0 | 205 | white-space: nowrap; /* prevent navigational buttons from wrapping */ |
michael@0 | 206 | } |
michael@0 | 207 | |
michael@0 | 208 | .launchButton { |
michael@0 | 209 | display: -moz-box; |
michael@0 | 210 | -moz-box-orient: vertical; |
michael@0 | 211 | margin: 16px 1px; |
michael@0 | 212 | padding: 14px 6px; |
michael@0 | 213 | min-width: 88px; |
michael@0 | 214 | max-width: 176px; |
michael@0 | 215 | max-height: 85px; |
michael@0 | 216 | vertical-align: top; |
michael@0 | 217 | white-space: normal; |
michael@0 | 218 | background: transparent padding-box; |
michael@0 | 219 | border: 1px solid transparent; |
michael@0 | 220 | border-radius: 2.5px; |
michael@0 | 221 | color: #525c66; |
michael@0 | 222 | font-size: 75%; |
michael@0 | 223 | cursor: pointer; |
michael@0 | 224 | transition-property: background-color, border-color, box-shadow; |
michael@0 | 225 | transition-duration: 150ms; |
michael@0 | 226 | } |
michael@0 | 227 | |
michael@0 | 228 | body[narrow] #launcher[session] > .launchButton { |
michael@0 | 229 | margin: 4px 1px; |
michael@0 | 230 | } |
michael@0 | 231 | |
michael@0 | 232 | .launchButton:hover { |
michael@0 | 233 | background-color: hsla(211,79%,6%,.03); |
michael@0 | 234 | border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.17) hsla(210,54%,20%,.2); |
michael@0 | 235 | } |
michael@0 | 236 | |
michael@0 | 237 | .launchButton:hover:active { |
michael@0 | 238 | background-image: linear-gradient(hsla(211,79%,6%,.02), hsla(211,79%,6%,.05)); |
michael@0 | 239 | border-color: hsla(210,54%,20%,.2) hsla(210,54%,20%,.23) hsla(210,54%,20%,.25); |
michael@0 | 240 | box-shadow: 0 1px 1px hsla(211,79%,6%,.05) inset, |
michael@0 | 241 | 0 0 1px hsla(211,79%,6%,.1) inset; |
michael@0 | 242 | transition-duration: 0ms; |
michael@0 | 243 | } |
michael@0 | 244 | |
michael@0 | 245 | .launchButton[hidden], |
michael@0 | 246 | #launcher:not([session]) > #restorePreviousSessionSeparator, |
michael@0 | 247 | #launcher:not([session]) > #restorePreviousSession { |
michael@0 | 248 | display: none; |
michael@0 | 249 | } |
michael@0 | 250 | |
michael@0 | 251 | #restorePreviousSessionSeparator { |
michael@0 | 252 | width: 3px; |
michael@0 | 253 | height: 116px; |
michael@0 | 254 | margin: 0 10px; |
michael@0 | 255 | background-image: linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)), |
michael@0 | 256 | linear-gradient(hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)), |
michael@0 | 257 | linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)); |
michael@0 | 258 | background-position: left top, center, right bottom; |
michael@0 | 259 | background-size: 1px auto; |
michael@0 | 260 | background-repeat: no-repeat; |
michael@0 | 261 | } |
michael@0 | 262 | |
michael@0 | 263 | body[narrow] #restorePreviousSessionSeparator { |
michael@0 | 264 | margin: 0 auto; |
michael@0 | 265 | width: 512px; |
michael@0 | 266 | height: 3px; |
michael@0 | 267 | background-image: linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)), |
michael@0 | 268 | linear-gradient(to right, hsla(211,79%,6%,0), hsla(211,79%,6%,.2), hsla(211,79%,6%,0)), |
michael@0 | 269 | linear-gradient(to right, hsla(0,0%,100%,0), hsla(0,0%,100%,.35), hsla(0,0%,100%,0)); |
michael@0 | 270 | background-size: auto 1px; |
michael@0 | 271 | } |
michael@0 | 272 | |
michael@0 | 273 | #restorePreviousSession { |
michael@0 | 274 | max-width: none; |
michael@0 | 275 | font-size: 90%; |
michael@0 | 276 | } |
michael@0 | 277 | |
michael@0 | 278 | body[narrow] #restorePreviousSession { |
michael@0 | 279 | font-size: 80%; |
michael@0 | 280 | } |
michael@0 | 281 | |
michael@0 | 282 | .launchButton::before { |
michael@0 | 283 | display: block; |
michael@0 | 284 | width: 32px; |
michael@0 | 285 | height: 32px; |
michael@0 | 286 | margin: 0 auto 6px; |
michael@0 | 287 | line-height: 0; /* remove extra vertical space due to non-zero font-size */ |
michael@0 | 288 | } |
michael@0 | 289 | |
michael@0 | 290 | #downloads::before { |
michael@0 | 291 | content: url("chrome://browser/content/abouthome/downloads.png"); |
michael@0 | 292 | } |
michael@0 | 293 | |
michael@0 | 294 | #bookmarks::before { |
michael@0 | 295 | content: url("chrome://browser/content/abouthome/bookmarks.png"); |
michael@0 | 296 | } |
michael@0 | 297 | |
michael@0 | 298 | #history::before { |
michael@0 | 299 | content: url("chrome://browser/content/abouthome/history.png"); |
michael@0 | 300 | } |
michael@0 | 301 | |
michael@0 | 302 | #apps::before { |
michael@0 | 303 | content: url("chrome://browser/content/abouthome/apps.png"); |
michael@0 | 304 | } |
michael@0 | 305 | |
michael@0 | 306 | #addons::before { |
michael@0 | 307 | content: url("chrome://browser/content/abouthome/addons.png"); |
michael@0 | 308 | } |
michael@0 | 309 | |
michael@0 | 310 | #sync::before { |
michael@0 | 311 | content: url("chrome://browser/content/abouthome/sync.png"); |
michael@0 | 312 | } |
michael@0 | 313 | |
michael@0 | 314 | #settings::before { |
michael@0 | 315 | content: url("chrome://browser/content/abouthome/settings.png"); |
michael@0 | 316 | } |
michael@0 | 317 | |
michael@0 | 318 | #restorePreviousSession::before { |
michael@0 | 319 | content: url("chrome://browser/content/abouthome/restore-large.png"); |
michael@0 | 320 | height: 48px; |
michael@0 | 321 | width: 48px; |
michael@0 | 322 | display: inline-block; /* display on same line as text label */ |
michael@0 | 323 | vertical-align: middle; |
michael@0 | 324 | margin-bottom: 0; |
michael@0 | 325 | -moz-margin-end: 8px; |
michael@0 | 326 | } |
michael@0 | 327 | |
michael@0 | 328 | #restorePreviousSession:-moz-dir(rtl)::before { |
michael@0 | 329 | transform: scaleX(-1); |
michael@0 | 330 | } |
michael@0 | 331 | |
michael@0 | 332 | body[narrow] #restorePreviousSession::before { |
michael@0 | 333 | content: url("chrome://browser/content/abouthome/restore.png"); |
michael@0 | 334 | height: 32px; |
michael@0 | 335 | width: 32px; |
michael@0 | 336 | } |
michael@0 | 337 | |
michael@0 | 338 | #aboutMozilla { |
michael@0 | 339 | display: block; |
michael@0 | 340 | position: relative; /* pin wordmark to edge of document, not of viewport */ |
michael@0 | 341 | -moz-box-ordinal-group: 0; |
michael@0 | 342 | opacity: .5; |
michael@0 | 343 | transition: opacity 150ms; |
michael@0 | 344 | } |
michael@0 | 345 | |
michael@0 | 346 | #aboutMozilla:hover { |
michael@0 | 347 | opacity: 1; |
michael@0 | 348 | } |
michael@0 | 349 | |
michael@0 | 350 | #aboutMozilla::before { |
michael@0 | 351 | content: url("chrome://browser/content/abouthome/mozilla.png"); |
michael@0 | 352 | display: block; |
michael@0 | 353 | position: absolute; |
michael@0 | 354 | top: 12px; |
michael@0 | 355 | right: 12px; |
michael@0 | 356 | width: 69px; |
michael@0 | 357 | height: 19px; |
michael@0 | 358 | } |
michael@0 | 359 | |
michael@0 | 360 | /* [HiDPI] |
michael@0 | 361 | * At resolutions above 1dppx, prefer downscaling the 2x Retina graphics |
michael@0 | 362 | * rather than upscaling the original-size ones (bug 818940). |
michael@0 | 363 | */ |
michael@0 | 364 | @media not all and (max-resolution: 1dppx) { |
michael@0 | 365 | #brandLogo { |
michael@0 | 366 | background-image: url("chrome://branding/content/about-logo@2x.png"); |
michael@0 | 367 | } |
michael@0 | 368 | |
michael@0 | 369 | #defaultSnippet1, |
michael@0 | 370 | #defaultSnippet2, |
michael@0 | 371 | #rightsSnippet { |
michael@0 | 372 | background-size: 40px; |
michael@0 | 373 | } |
michael@0 | 374 | |
michael@0 | 375 | #defaultSnippet1 { |
michael@0 | 376 | background-image: url("chrome://browser/content/abouthome/snippet1@2x.png"); |
michael@0 | 377 | } |
michael@0 | 378 | |
michael@0 | 379 | #defaultSnippet2 { |
michael@0 | 380 | background-image: url("chrome://browser/content/abouthome/snippet2@2x.png"); |
michael@0 | 381 | } |
michael@0 | 382 | |
michael@0 | 383 | .launchButton::before, |
michael@0 | 384 | #aboutMozilla::before { |
michael@0 | 385 | transform: scale(.5); |
michael@0 | 386 | transform-origin: 0 0; |
michael@0 | 387 | } |
michael@0 | 388 | |
michael@0 | 389 | .launchButton:-moz-dir(rtl)::before, |
michael@0 | 390 | #aboutMozilla:-moz-dir(rtl)::before { |
michael@0 | 391 | transform: scale(.5) translateX(32px); |
michael@0 | 392 | } |
michael@0 | 393 | |
michael@0 | 394 | #downloads::before { |
michael@0 | 395 | content: url("chrome://browser/content/abouthome/downloads@2x.png"); |
michael@0 | 396 | } |
michael@0 | 397 | |
michael@0 | 398 | #bookmarks::before { |
michael@0 | 399 | content: url("chrome://browser/content/abouthome/bookmarks@2x.png"); |
michael@0 | 400 | } |
michael@0 | 401 | |
michael@0 | 402 | #history::before { |
michael@0 | 403 | content: url("chrome://browser/content/abouthome/history@2x.png"); |
michael@0 | 404 | } |
michael@0 | 405 | |
michael@0 | 406 | #apps::before { |
michael@0 | 407 | content: url("chrome://browser/content/abouthome/apps@2x.png"); |
michael@0 | 408 | } |
michael@0 | 409 | |
michael@0 | 410 | #addons::before { |
michael@0 | 411 | content: url("chrome://browser/content/abouthome/addons@2x.png"); |
michael@0 | 412 | } |
michael@0 | 413 | |
michael@0 | 414 | #sync::before { |
michael@0 | 415 | content: url("chrome://browser/content/abouthome/sync@2x.png"); |
michael@0 | 416 | } |
michael@0 | 417 | |
michael@0 | 418 | #settings::before { |
michael@0 | 419 | content: url("chrome://browser/content/abouthome/settings@2x.png"); |
michael@0 | 420 | } |
michael@0 | 421 | |
michael@0 | 422 | #restorePreviousSession::before { |
michael@0 | 423 | content: url("chrome://browser/content/abouthome/restore-large@2x.png"); |
michael@0 | 424 | } |
michael@0 | 425 | |
michael@0 | 426 | body[narrow] #restorePreviousSession::before { |
michael@0 | 427 | content: url("chrome://browser/content/abouthome/restore@2x.png"); |
michael@0 | 428 | } |
michael@0 | 429 | |
michael@0 | 430 | #restorePreviousSession:-moz-dir(rtl)::before { |
michael@0 | 431 | transform: scale(-0.5, 0.5) translateX(24px); |
michael@0 | 432 | transform-origin: top center; |
michael@0 | 433 | } |
michael@0 | 434 | |
michael@0 | 435 | #aboutMozilla::before { |
michael@0 | 436 | content: url("chrome://browser/content/abouthome/mozilla@2x.png"); |
michael@0 | 437 | } |
michael@0 | 438 | } |
michael@0 | 439 |