OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 | 4 |
5 html { | 5 html { |
6 /* It's necessary to put this here instead of in body in order to get the | 6 /* It's necessary to put this here instead of in body in order to get the |
7 background-size of 100% to work properly */ | 7 background-size of 100% to work properly */ |
8 height: 100%; | 8 height: 100%; |
9 overflow: hidden; | 9 overflow: hidden; |
10 } | 10 } |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 /* TODO(estade): remove this border hack and replace with a webkit-gradient | 175 /* TODO(estade): remove this border hack and replace with a webkit-gradient |
176 * border-image on #footer once WebKit supports border-image-slice. | 176 * border-image on #footer once WebKit supports border-image-slice. |
177 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */ | 177 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */ |
178 #footer-border { | 178 #footer-border { |
179 height: 1px; | 179 height: 1px; |
180 } | 180 } |
181 | 181 |
182 #footer-content { | 182 #footer-content { |
183 -webkit-box-align: center; | 183 -webkit-align-items: center; |
184 display: -webkit-box; | 184 -webkit-justify-content: space-between; |
| 185 display: -webkit-flex; |
185 height: 49px; | 186 height: 49px; |
186 } | 187 } |
187 | 188 |
188 #footer-content > * { | 189 #footer-content > * { |
189 margin: 0 9px; | 190 margin: 0 9px; |
190 } | 191 } |
191 | 192 |
192 #logo-img { | 193 #logo-img { |
193 display: inline-block; | 194 display: inline-block; |
194 margin-top: 4px; | 195 margin-top: 4px; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 margin: 0; | 379 margin: 0; |
379 max-width: 150px; | 380 max-width: 150px; |
380 min-width: 90px; | 381 min-width: 90px; |
381 outline: none; | 382 outline: none; |
382 padding: 0; | 383 padding: 0; |
383 position: absolute; | 384 position: absolute; |
384 top: 0; | 385 top: 0; |
385 z-index: 5; | 386 z-index: 5; |
386 } | 387 } |
387 | 388 |
| 389 /* Footer buttons. ************************************************************/ |
| 390 |
388 #chrome-web-store-link { | 391 #chrome-web-store-link { |
| 392 -webkit-order: 2; |
389 -webkit-padding-end: 12px; | 393 -webkit-padding-end: 12px; |
390 /* Match transition delay of recently closed button. */ | 394 /* Match transition delay of recently closed button. */ |
391 -webkit-transition-delay: 100ms; | 395 -webkit-transition-delay: 100ms; |
392 color: inherit; | 396 color: inherit; |
393 cursor: pointer; | 397 cursor: pointer; |
394 display: inline-block; | 398 display: inline-block; |
395 margin: 0; | 399 margin: 0; |
396 text-decoration: none; | 400 text-decoration: none; |
397 white-space: nowrap; | 401 white-space: nowrap; |
398 } | 402 } |
399 | 403 |
400 #chrome-web-store-title { | 404 #chrome-web-store-title { |
401 -webkit-padding-end: 36px; | 405 -webkit-padding-end: 36px; |
402 -webkit-padding-start: 15px; | 406 -webkit-padding-start: 15px; |
403 background: url('chrome://theme/IDR_WEBSTORE_ICON_24') right 50% no-repeat; | 407 background: url('chrome://theme/IDR_WEBSTORE_ICON_24') right 50% no-repeat; |
404 display: inline-block; | 408 display: inline-block; |
405 line-height: 49px; | 409 line-height: 49px; |
406 } | 410 } |
407 | 411 |
| 412 #footer-menu-container .invisible { |
| 413 -webkit-order: -1; |
| 414 visibility: hidden; |
| 415 } |
| 416 |
408 #chrome-web-store-link:hover { | 417 #chrome-web-store-link:hover { |
409 color: #666; | 418 color: #666; |
410 } | 419 } |
411 | 420 |
412 html[dir='rtl'] #chrome-web-store-title { | 421 html[dir='rtl'] #chrome-web-store-title { |
413 background-position-x: left; | 422 background-position-x: left; |
414 } | 423 } |
415 | 424 |
416 #vertical-separator { | 425 #vertical-separator { |
417 background-color: rgb(178, 178, 178); | 426 background-color: rgb(178, 178, 178); |
418 display: none; | 427 display: inline-block; |
419 height: 20px; | 428 height: 20px; |
420 margin: 0; | 429 margin: 0; |
421 vertical-align: middle; | 430 vertical-align: middle; |
| 431 visibility: hidden; |
422 width: 1px; | 432 width: 1px; |
423 } | 433 } |
424 | 434 |
425 /* Show the separator only if one of the menus is visible. */ | 435 /* Show the separator only if one of the menus is visible. */ |
426 .footer-menu-button:not([hidden]) ~ #vertical-separator { | 436 .footer-menu-button:not(.invisible) ~ #chrome-web-store-link:not(.invisible) |
427 display: block; | 437 #vertical-separator { |
| 438 visibility: visible; |
428 } | 439 } |
429 | 440 |
430 /* In trash mode, hide the menus and web store link. */ | 441 /* In trash mode, hide the menus and web store link. */ |
431 #footer.showing-trash-mode #chrome-web-store-link, | |
432 #footer.showing-trash-mode .menu-container { | 442 #footer.showing-trash-mode .menu-container { |
433 -webkit-transition-delay: 0; | 443 -webkit-transition-delay: 0; |
434 opacity: 0; | 444 opacity: 0; |
435 visibility: hidden; | 445 visibility: hidden; |
436 } | 446 } |
437 | 447 |
438 #footer .menu-container { | 448 #footer .menu-container { |
439 -webkit-box-align: center; | 449 -webkit-align-items: center; |
| 450 -webkit-flex-direction: row; |
| 451 -webkit-justify-content: flex-end; |
440 /* Put menus in a box so the order can easily be swapped. */ | 452 /* Put menus in a box so the order can easily be swapped. */ |
441 display: -webkit-box; | 453 display: -webkit-flex; |
442 height: 100%; | 454 height: 100%; |
443 margin: 0; | 455 margin: 0; |
444 } | 456 } |
445 | 457 |
| 458 #recently-closed-menu-button:not(.invisible) { |
| 459 -webkit-order: 1; |
| 460 } |
| 461 |
| 462 #other-sessions-menu-button:not(.invisible) { |
| 463 -webkit-order: 0; |
| 464 } |
| 465 |
446 .other-sessions-promo-message { | 466 .other-sessions-promo-message { |
447 display: none; | 467 display: none; |
448 padding: 0; | 468 padding: 0; |
449 } | 469 } |
450 | 470 |
451 .other-sessions-promo-message:only-child { | 471 .other-sessions-promo-message:only-child { |
452 display: block; | 472 display: block; |
453 } | 473 } |
454 | 474 |
455 .other-sessions-promo-message p { | 475 .other-sessions-promo-message p { |
456 margin: 0; | 476 margin: 0; |
457 } | 477 } |
OLD | NEW |