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. */
6 -webkit-box-orient: vertical
;
13 .tile-page-scrollbar {
14 -webkit-box-sizing: border-box
;
25 /* Don't apply clip mask to padding. */
26 -webkit-mask-clip: content-box
;
27 /* TODO(estade): this mask is disabled for technical reasons. It negatively
28 * impacts performance of page switching, also it causes problems with Mac
29 * text: http://crbug.com/86955
30 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px);
32 /* The following four properties are necessary so that the mask won't clip
34 box-sizing: border-box
;
36 /* Scrollbar width(13px) + balance right padding. */
39 /* This value is mirrored in TilePage.updateTopMargin_ */
47 /* The only reason height is set to 1px, rather than left at 0, is that
48 * otherwise webkit collapses the top and bottom margins. */
58 -webkit-print-color-adjust: exact
;
59 /* Don't offer the context menu on long-press. */
60 -webkit-touch-callout: none
;
61 -webkit-user-drag: element
;
62 display: inline-block
;
66 /* NOTE: Dopplegangers nest themselves inside of other tiles, so don't
67 * accidentally double apply font-size to them. */
68 .tile:not(.doppleganger) {
72 /* Not real but not a doppleganger: show nothing. This state exists for a
73 * webstore tile that's on the same page as a [+]. */
74 .tile:not(.real):not(.doppleganger) {
78 /* I don't know why this is necessary. -webkit-user-drag: element on .tile
79 * should be enough. If we don't do this, we get 2 drag representations for
82 -webkit-user-drag: none
;
95 .tile.drag-representation {
96 -webkit-transition: opacity
200ms;
102 .tile.drag-representation.placing > * {
103 -webkit-transition: -webkit-transform
200ms;
106 /* When a drag finishes while we're not showing the page where the tile
107 * belongs, the tile shrinks to a dot. */
108 .tile.drag-representation.dropped-on-other-page > * {
109 -webkit-transform: scale
(0) rotate
(0);
112 .tile.drag-representation.deleting > * {
113 -webkit-transform: scale
(0) rotate
(360deg);
114 -webkit-transition: -webkit-transform
600ms;
117 .animating-tile-page
.tile
,
118 .tile.drag-representation.placing {
119 -webkit-transition: left
200ms, right
200ms, top
200ms;
126 .animating-tile-page .top-margin {
127 -webkit-transition: margin-bottom
200ms;
130 .animating-tile-page #notification-container {
131 -webkit-transition: margin
200ms, opacity
200ms;
134 @-webkit-keyframes bounce
{
136 -webkit-transform: scale
(0, 0);
140 -webkit-transform: scale
(1.2, 1.2);
144 -webkit-transform: scale
(1, 1);
148 .tile > .new-tile-contents {
149 -webkit-animation: bounce
500ms ease-in-out
;
152 @-webkit-keyframes blipout
{
154 -webkit-transform: scale
(1, 1);
158 -webkit-animation-timing-function: ease-in
;
159 -webkit-transform: scale
(1.3, 0.02);
164 -webkit-transform: scale
(0.3, 0.02);
169 -webkit-animation-timing-function: linear
;
170 -webkit-transform: scale
(0.3, 0.02);
175 .tile > .removing-tile-contents {
176 -webkit-animation: blipout
300ms;
177 -webkit-animation-fill-mode: forwards
;
178 pointer-events: none
;
181 .tile-page:not(.selected-card) * {
182 -webkit-transition: none
!important
;
185 /** Scrollbars ****************************************************************/
187 .tile-page-content::-webkit-scrollbar {
191 .tile-page-content::-webkit-scrollbar-button {