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 height: 100%; | 7 height: 100%; |
8 position: relative; | 8 position: relative; |
9 width: 100%; | 9 width: 100%; |
10 } | 10 } |
11 | 11 |
12 .tile-page-scrollbar { | 12 .tile-page-scrollbar { |
13 margin: 0 4px; | 13 margin: 0 4px; |
14 pointer-events: none; | 14 pointer-events: none; |
15 position: absolute; | 15 position: absolute; |
16 right: 0; | 16 right: 0; |
17 width: 5px; | 17 width: 5px; |
18 z-index: 5; | 18 z-index: 5; |
19 -webkit-box-sizing: border-box; | 19 -webkit-box-sizing: border-box; |
20 } | 20 } |
21 | 21 |
22 .tile-page-content { | 22 .tile-page-content { |
23 height: 100%; | 23 height: 100%; |
24 overflow-y: scroll; | 24 overflow-y: scroll; |
25 padding-top: 100px; | 25 padding-top: 100px; |
26 position: relative; | 26 position: relative; |
27 text-align: center; | 27 text-align: center; |
28 width: 100%; | 28 width: 100%; |
| 29 /* TODO(estade): this mask is disabled for technical reasons. It negatively |
| 30 * impacts performance of page switching, also it causes problems with Mac |
| 31 * text: http://crbug.com/86955 |
29 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); | 32 -webkit-mask-image: -webkit-linear-gradient(bottom, transparent, black 30px); |
| 33 */ |
30 /* The following four properties are necessary so that the mask won't clip | 34 /* The following four properties are necessary so that the mask won't clip |
31 * the scrollbar. */ | 35 * the scrollbar. */ |
32 box-sizing: border-box; | 36 box-sizing: border-box; |
33 /* Scrollbar + balance right padding. */ | 37 /* Scrollbar width(13px) + balance right padding. */ |
34 padding-left: 26px; | 38 padding-left: 93px; |
35 /* Same width as the scrollbar. */ | 39 padding-right: 80px; |
36 padding-right: 13px; | |
37 /* Don't apply clip mask to padding. */ | 40 /* Don't apply clip mask to padding. */ |
38 -webkit-mask-clip: content-box; | 41 -webkit-mask-clip: content-box; |
39 } | 42 } |
40 | 43 |
41 .tile-grid { | 44 .tile-grid { |
42 overflow: hidden; | 45 overflow: hidden; |
43 position: relative; | 46 position: relative; |
44 width: 100%; | 47 width: 100%; |
45 } | 48 } |
46 | 49 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 156 |
154 /** Scrollbars ****************************************************************/ | 157 /** Scrollbars ****************************************************************/ |
155 | 158 |
156 .tile-page-content::-webkit-scrollbar { | 159 .tile-page-content::-webkit-scrollbar { |
157 width: 13px; | 160 width: 13px; |
158 } | 161 } |
159 | 162 |
160 .tile-page-content::-webkit-scrollbar-button { | 163 .tile-page-content::-webkit-scrollbar-button { |
161 display: none; | 164 display: none; |
162 } | 165 } |
OLD | NEW |