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 /* ----------------------------------------------------------------------------- | 5 /* ----------------------------------------------------------------------------- |
6 Tile Page | 6 Tile Page |
7 ----------------------------------------------------------------------------- */ | 7 ----------------------------------------------------------------------------- */ |
8 | 8 |
9 .tile-page { | 9 .tile-page { |
10 overflow: hidden; | 10 overflow: hidden; |
11 position: relative; | 11 position: relative; |
12 } | 12 } |
13 | 13 |
14 .tile-page-content { | 14 .tile-page-frame { |
15 margin: 0 auto; | 15 margin: 0 auto; |
16 overflow: hidden; | 16 overflow: hidden; |
| 17 position: relative; |
17 width: 748px; | 18 width: 748px; |
18 } | 19 } |
19 | 20 |
| 21 .tile-page-content { |
| 22 overflow: hidden; |
| 23 } |
| 24 |
20 .tile-grid { | 25 .tile-grid { |
21 display: block; | 26 display: block; |
22 margin: 0 auto; | 27 margin: 0 auto; |
23 width: 732px; | 28 width: 732px; |
24 } | 29 } |
25 | 30 |
26 .tile-grid-content { | 31 .tile-grid-content { |
27 -webkit-transform: translate3d(0, 0, 0); | 32 -webkit-transform: translate3d(0, 0, 0); |
28 -webkit-transition: -webkit-transform 200ms; | 33 -webkit-transition: -webkit-transform 200ms; |
29 } | 34 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 .hide-col-6 .tile-cell:nth-child(7), | 82 .hide-col-6 .tile-cell:nth-child(7), |
78 .hide-col-7 .tile-cell:nth-child(8), | 83 .hide-col-7 .tile-cell:nth-child(8), |
79 .hide-col-8 .tile-cell:nth-child(9), | 84 .hide-col-8 .tile-cell:nth-child(9), |
80 .hide-col-9 .tile-cell:nth-child(10) { | 85 .hide-col-9 .tile-cell:nth-child(10) { |
81 -webkit-margin-end: -10px; | 86 -webkit-margin-end: -10px; |
82 opacity: 0; | 87 opacity: 0; |
83 width: 10px !important; | 88 width: 10px !important; |
84 } | 89 } |
85 | 90 |
86 /* ----------------------------------------------------------------------------- | 91 /* ----------------------------------------------------------------------------- |
87 Tile Row Animation | |
88 ----------------------------------------------------------------------------- */ | |
89 | |
90 .hide-row { | |
91 opacity: 0; | |
92 } | |
93 | |
94 .tile-grid .hide-row .tile-cell { | |
95 opacity: 1; | |
96 } | |
97 | |
98 /* ----------------------------------------------------------------------------- | |
99 Tile Position Animation | 92 Tile Position Animation |
100 ----------------------------------------------------------------------------- */ | 93 ----------------------------------------------------------------------------- */ |
101 | 94 |
102 .animate-tile-repositioning .tile { | 95 .animate-tile-repositioning .tile { |
103 -webkit-transition-duration: 200ms; | 96 -webkit-transition-duration: 200ms; |
104 -webkit-transition-property: -webkit-transform, left, opacity, top; | 97 -webkit-transition-property: -webkit-transform, left, opacity, top; |
105 position: absolute; | 98 position: absolute; |
106 } | 99 } |
107 | 100 |
108 .animate-tile-repositioning .tile:not(.target-tile) { | 101 .animate-tile-repositioning .tile:not(.target-tile) { |
109 -webkit-transition-duration: 400ms; | 102 -webkit-transition-duration: 400ms; |
110 } | 103 } |
111 | 104 |
112 .animate-tile-repositioning.undo-removal .target-tile { | 105 .animate-tile-repositioning.undo-removal .target-tile { |
113 -webkit-transition-delay: 200ms; | 106 -webkit-transition-delay: 200ms; |
114 } | 107 } |
115 | 108 |
116 .animate-tile-repositioning .animate-hide-tile { | 109 .animate-tile-repositioning .animate-hide-tile { |
117 opacity: 0; | 110 opacity: 0; |
118 } | 111 } |
119 | 112 |
120 .animate-tile-repositioning .animate-hide-tile.target-tile { | 113 .animate-tile-repositioning .animate-hide-tile.target-tile { |
121 -webkit-transform: scale(0.5); | 114 -webkit-transform: scale(0.5); |
122 } | 115 } |
| 116 |
| 117 /* ----------------------------------------------------------------------------- |
| 118 Scroll Bars |
| 119 ----------------------------------------------------------------------------- */ |
| 120 |
| 121 .tile-page-content { |
| 122 /* TODO(pedrosimonetti): Remove this when fixing the Apps page height. */ |
| 123 height: 92px; |
| 124 } |
| 125 |
| 126 .scrollable { |
| 127 overflow-y: auto; |
| 128 } |
| 129 |
| 130 .scrollable .shadow-top { |
| 131 -webkit-margin-end: 0; |
| 132 -webkit-mask-box-image: -webkit-linear-gradient(left, |
| 133 rgba(0, 0, 0, 0.1), |
| 134 rgba(0, 0, 0, 0.8), |
| 135 rgba(0, 0, 0, 0.1)); |
| 136 background: -webkit-linear-gradient(top, |
| 137 rgba(0, 0, 0, 0.2), |
| 138 transparent); |
| 139 height: 6px; |
| 140 left: 0; |
| 141 opacity: 0; |
| 142 position: absolute; |
| 143 top: 0; |
| 144 width: 100%; |
| 145 z-index: 1000; |
| 146 } |
| 147 |
| 148 .scrollable .shadow-top::after { |
| 149 border-top: 1px solid rgba(0, 0, 0, 0.3); |
| 150 content: ''; |
| 151 display: block; |
| 152 height: 0; |
| 153 left: 0; |
| 154 position: absolute; |
| 155 top: 0; |
| 156 width: 100%; |
| 157 } |
| 158 |
| 159 .scrollable .shadow-bottom { |
| 160 -webkit-margin-end: 0; |
| 161 -webkit-mask-box-image: -webkit-linear-gradient(left, |
| 162 rgba(0, 0, 0, 0.1), |
| 163 rgba(0, 0, 0, 0.8), |
| 164 rgba(0, 0, 0, 0.1)); |
| 165 background: -webkit-linear-gradient(bottom, |
| 166 rgba(0, 0, 0, 0.2), |
| 167 transparent); |
| 168 bottom: 0; |
| 169 height: 4px; |
| 170 left: 0; |
| 171 opacity: 1; |
| 172 position: absolute; |
| 173 width: 100%; |
| 174 z-index: 1000; |
| 175 } |
| 176 |
| 177 .scrollable .shadow-bottom::after { |
| 178 border-bottom: 1px solid rgba(0, 0, 0, 0.3); |
| 179 bottom: 0; |
| 180 content: ''; |
| 181 display: block; |
| 182 height: 0; |
| 183 left: 0; |
| 184 position: absolute; |
| 185 width: 100%; |
| 186 } |
| 187 |
| 188 ::-webkit-scrollbar { |
| 189 height: 12px; |
| 190 width: 12px; |
| 191 } |
| 192 |
| 193 ::-webkit-scrollbar-button { |
| 194 height: 0; |
| 195 width: 0; |
| 196 } |
| 197 |
| 198 ::-webkit-scrollbar-button:start:decrement, |
| 199 ::-webkit-scrollbar-button:end:increment { |
| 200 display: block; |
| 201 } |
| 202 |
| 203 ::-webkit-scrollbar-button:vertical:start:increment, |
| 204 ::-webkit-scrollbar-button:vertical:end:decrement { |
| 205 display: none; |
| 206 } |
| 207 |
| 208 ::-webkit-scrollbar-track:vertical { |
| 209 -webkit-border-end: none; |
| 210 -webkit-border-start: 5px solid transparent; |
| 211 background-clip: padding-box; |
| 212 background-color: white; |
| 213 } |
| 214 |
| 215 ::-webkit-scrollbar-track:horizontal { |
| 216 background-clip: padding-box; |
| 217 background-color: white; |
| 218 border-bottom: none; |
| 219 border-top: 5px solid transparent; |
| 220 } |
| 221 |
| 222 ::-webkit-scrollbar-thumb { |
| 223 -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.10), |
| 224 inset 0 -1px 0 rgba(0, 0, 0, 0.07); |
| 225 background-clip: padding-box; |
| 226 background-color: rgba(0, 0, 0, 0.2); |
| 227 min-height: 28px; |
| 228 padding-top: 100px; |
| 229 } |
| 230 |
| 231 ::-webkit-scrollbar-thumb:hover { |
| 232 -webkit-box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25); |
| 233 background-color: rgba(0, 0, 0, 0.4); |
| 234 } |
| 235 |
| 236 ::-webkit-scrollbar-thumb:active { |
| 237 -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35); |
| 238 background-color: rgba(0, 0, 0, 0.5); |
| 239 } |
| 240 |
| 241 ::-webkit-scrollbar-thumb:vertical { |
| 242 -webkit-border-end: none; |
| 243 -webkit-border-start: 5px solid transparent; |
| 244 border-bottom: none; |
| 245 border-top: none; |
| 246 } |
| 247 |
| 248 ::-webkit-scrollbar-thumb:horizontal { |
| 249 border: none; |
| 250 border-top: 5px solid transparent; |
| 251 } |
| 252 |
| 253 ::-webkit-scrollbar-track:hover { |
| 254 -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.10); |
| 255 background-color: rgba(0, 0, 0, 0.05); |
| 256 } |
| 257 |
| 258 ::-webkit-scrollbar-track:active { |
| 259 -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.14), |
| 260 inset -1px -1px 0 rgba(0, 0, 0, 0.07); |
| 261 background-color: rgba(0, 0, 0, 0.05); |
| 262 } |
OLD | NEW |