OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
6 .tile-page { | 6 .tile-page { |
7 display: -webkit-box; | 7 display: -webkit-box; |
8 height: 100%; | 8 height: 100%; |
9 position: relative; | 9 position: relative; |
10 width: 100%; | 10 width: 100%; |
11 -webkit-box-orient: vertical; | 11 -webkit-box-orient: vertical; |
12 } | 12 } |
13 | 13 |
14 .tile-page-scrollbar { | 14 .tile-page-scrollbar { |
15 margin: 0 4px; | 15 margin: 0 4px; |
16 pointer-events: none; | 16 pointer-events: none; |
17 position: absolute; | 17 position: absolute; |
18 right: 0; | 18 right: 0; |
19 width: 5px; | 19 width: 5px; |
20 z-index: 5; | 20 z-index: 5; |
21 -webkit-box-sizing: border-box; | 21 -webkit-box-sizing: border-box; |
22 } | 22 } |
23 | 23 |
24 .tile-page-content { | 24 .tile-page-content { |
25 overflow-y: scroll; | 25 overflow-y: scroll; |
26 padding-top: 100px; | 26 /* This value is mirrored in TilePage.updateTopMargin_ */ |
| 27 padding-top: 60px; |
27 position: relative; | 28 position: relative; |
28 text-align: center; | 29 text-align: center; |
29 width: 100%; | 30 width: 100%; |
30 /* TODO(estade): this mask is disabled for technical reasons. It negatively | 31 /* TODO(estade): this mask is disabled for technical reasons. It negatively |
31 * impacts performance of page switching, also it causes problems with Mac | 32 * impacts performance of page switching, also it causes problems with Mac |
32 * text: http://crbug.com/86955 | 33 * text: http://crbug.com/86955 |
33 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); | 34 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); |
34 */ | 35 */ |
35 /* The following four properties are necessary so that the mask won't clip | 36 /* The following four properties are necessary so that the mask won't clip |
36 * the scrollbar. */ | 37 * the scrollbar. */ |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 164 |
164 /** Scrollbars ****************************************************************/ | 165 /** Scrollbars ****************************************************************/ |
165 | 166 |
166 .tile-page-content::-webkit-scrollbar { | 167 .tile-page-content::-webkit-scrollbar { |
167 width: 13px; | 168 width: 13px; |
168 } | 169 } |
169 | 170 |
170 .tile-page-content::-webkit-scrollbar-button { | 171 .tile-page-content::-webkit-scrollbar-button { |
171 display: none; | 172 display: none; |
172 } | 173 } |
OLD | NEW |