OLD | NEW |
(Empty) | |
| 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 |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 /* ----------------------------------------------------------------------------- |
| 6 Tile Page |
| 7 ----------------------------------------------------------------------------- */ |
| 8 |
| 9 #page-list { |
| 10 /* TODO(pedrosimonetti): Confirm the easing function with Marcin. */ |
| 11 -webkit-transition: height 200ms ease-in-out; |
| 12 padding-bottom: 10px; |
| 13 } |
| 14 |
| 15 .tile-page { |
| 16 overflow: hidden; |
| 17 position: relative; |
| 18 } |
| 19 |
| 20 .tile-page-content { |
| 21 margin: 0 auto; |
| 22 overflow: hidden; |
| 23 width: 748px; |
| 24 } |
| 25 |
| 26 .tile-grid { |
| 27 -webkit-transform: translate3d(0, 0, 0); |
| 28 -webkit-transition: width 200ms ease-in-out; |
| 29 display: block; |
| 30 margin: 0 auto; |
| 31 width: 732px; |
| 32 } |
| 33 |
| 34 .tile-grid-content { |
| 35 -webkit-transform: translate3d(0, 0, 0); |
| 36 -webkit-transition: -webkit-transform 200ms ease-in-out; |
| 37 } |
| 38 |
| 39 .tile-row { |
| 40 -webkit-transform: translate3d(0, 0, 0); |
| 41 -webkit-transition: opacity 200ms ease-in-out; |
| 42 height: 105px; |
| 43 text-align: start; |
| 44 white-space: nowrap; |
| 45 } |
| 46 |
| 47 /* ----------------------------------------------------------------------------- |
| 48 Tile Cell |
| 49 ----------------------------------------------------------------------------- */ |
| 50 |
| 51 .tile-cell { |
| 52 -webkit-transform: translate3d(0, 0, 0); |
| 53 display: inline-block; |
| 54 position: relative; |
| 55 } |
| 56 |
| 57 .tile-cell:first-child { |
| 58 -webkit-margin-start: 0; |
| 59 } |
| 60 |
| 61 /* ----------------------------------------------------------------------------- |
| 62 Tile Cell Animation |
| 63 ----------------------------------------------------------------------------- */ |
| 64 |
| 65 .animate-tile .tile-cell { |
| 66 -webkit-transition: margin 200ms ease-out; |
| 67 -webkit-transition-property: margin, opacity, width; |
| 68 } |
| 69 |
| 70 /* Animates entire columns of Tiles at once.*/ |
| 71 .hide-col-0 .tile-cell:nth-child(1), |
| 72 .hide-col-1 .tile-cell:nth-child(2), |
| 73 .hide-col-2 .tile-cell:nth-child(3), |
| 74 .hide-col-3 .tile-cell:nth-child(4), |
| 75 .hide-col-4 .tile-cell:nth-child(5), |
| 76 .hide-col-5 .tile-cell:nth-child(6), |
| 77 .hide-col-6 .tile-cell:nth-child(7), |
| 78 .hide-col-7 .tile-cell:nth-child(8), |
| 79 .hide-col-8 .tile-cell:nth-child(9), |
| 80 .hide-col-9 .tile-cell:nth-child(10) { |
| 81 -webkit-margin-end: -10px; |
| 82 opacity: 0; |
| 83 width: 10px !important; |
| 84 } |
| 85 |
| 86 .hide-row { |
| 87 opacity: 0; |
| 88 } |
| 89 |
| 90 .hide-row .tile-cell { |
| 91 opacity: 1; |
| 92 } |
OLD | NEW |