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 .scrollable-shadow-top { | |
131 -webkit-mask-box-image: -webkit-gradient(linear, left top, right top, | |
132 color-stop(0, rgba(0,0,0,0.1)), color-stop(0.5, rgba(0,0,0,.8)), | |
Dan Beam
2012/11/29 04:59:55
nit: add spaces between numbers (i.e. rgb(0, 0, 0,
pedro (no code reviews)
2012/11/29 08:02:37
Done.
| |
133 color-stop(1.0, rgba(0,0,0,0.1))); | |
Dan Beam
2012/11/29 04:59:55
nit: -webkit-linear-gradient(left, 0% rgba(0, 0, 0
pedro (no code reviews)
2012/11/29 08:02:37
One thing that makes it verbose is color-stop(...)
| |
134 background: -webkit-gradient(linear, left top, left bottom, | |
135 from(rgba(0,0,0,.2)), to(rgba(0,0,0,0))); | |
Dan Beam
2012/11/29 04:59:55
nit: -webkit-linear-gradient(left, rgba(0, 0, 0, .
pedro (no code reviews)
2012/11/29 08:02:37
I guess you meant: -webkit-linear-gradient(top, rg
Dan Beam
2012/11/30 23:41:45
black == rgba(0,0,0,0) - http://www.w3.org/TR/css3
pedro (no code reviews)
2012/12/01 00:02:29
The spec says the color "transparent", AKA "transp
Dan Beam
2012/12/01 00:20:04
sorry, meant "transparent"
| |
136 height: 6px; | |
137 left: 0; | |
Evan Stade
2012/11/29 02:35:47
does this work in rtl
pedro (no code reviews)
2012/11/29 08:02:37
Yes it does once the shadow is symmetrical.
| |
138 margin-right: 0; | |
Dan Beam
2012/11/29 04:59:55
nit: RTL on this as well?
pedro (no code reviews)
2012/11/29 08:02:37
It does too.
| |
139 opacity: 0; | |
140 position: absolute; | |
141 top: 0; | |
142 width: 100%; | |
143 z-index: 1000; | |
144 } | |
145 | |
146 .scrollable .scrollable-shadow-top:after { | |
Dan Beam
2012/11/29 04:59:55
nit: ::after (:: is for pseudo-elements, : is for
pedro (no code reviews)
2012/11/29 08:02:37
Thanks for the explanation.
| |
147 border-top: 1px solid rgba(0, 0, 0, 0.3); | |
148 content: ''; | |
149 display: block; | |
150 height: 0; | |
151 left: 0; | |
152 position: absolute; | |
153 top: 0; | |
154 width: 100%; | |
155 } | |
156 | |
157 .scrollable .scrollable-shadow-bottom { | |
Dan Beam
2012/11/29 04:59:55
nit: why do you need the .scrollable- prefix on th
pedro (no code reviews)
2012/11/29 08:02:37
The prefix is not actually necessary, so I removed
| |
158 -webkit-mask-box-image: -webkit-gradient(linear, left top, right top, | |
159 color-stop(0, rgba(0,0,0,0.1)), color-stop(0.5, rgba(0,0,0,.8)), | |
Evan Stade
2012/11/29 02:35:47
spaces after commas, everywhere in this file
pedro (no code reviews)
2012/11/29 08:02:37
Done.
| |
160 color-stop(1.0, rgba(0,0,0,0.1))); | |
161 background: -webkit-gradient(linear, left bottom, left top, | |
162 from(rgba(0,0,0,.2)), to(rgba(0,0,0,0))); | |
163 bottom: 0; | |
164 height: 4px; | |
165 left: 0; | |
166 margin-right: 0; | |
167 opacity: 1; | |
168 position: absolute; | |
169 width: 100%; | |
170 z-index: 1000; | |
171 } | |
172 | |
173 .scrollable .scrollable-shadow-bottom:after { | |
174 border-bottom: 1px solid rgba(0, 0, 0, 0.3); | |
175 bottom: 0; | |
176 content: ''; | |
177 display: block; | |
178 height: 0; | |
179 left: 0; | |
180 position: absolute; | |
181 width: 100%; | |
182 } | |
183 | |
184 ::-webkit-scrollbar { | |
185 height: 12px; | |
186 width: 12px; | |
187 } | |
188 | |
189 ::-webkit-scrollbar-button { | |
190 height: 0; | |
191 width: 0; | |
192 } | |
193 | |
194 ::-webkit-scrollbar-button:start:decrement, | |
195 ::-webkit-scrollbar-button:end:increment { | |
196 display: block; | |
197 } | |
198 | |
199 ::-webkit-scrollbar-button:vertical:start:increment, | |
200 ::-webkit-scrollbar-button:vertical:end:decrement { | |
201 display: none; | |
202 } | |
203 | |
204 ::-webkit-scrollbar-track:vertical { | |
205 background-clip: padding-box; | |
206 background-color: white; | |
207 border-left: 5px solid transparent; | |
Dan Beam
2012/11/29 04:59:55
nit: I think scrollbars flip to the left in RTL th
pedro (no code reviews)
2012/11/29 08:02:37
Good catch. I've tried and the scrollbar was misal
| |
208 border-right: 0 solid transparent; | |
209 } | |
210 | |
211 ::-webkit-scrollbar-track:horizontal { | |
212 background-clip: padding-box; | |
213 background-color: white; | |
214 border-bottom: 0 solid transparent; | |
215 border-top: 5px solid transparent; | |
216 } | |
217 | |
218 ::-webkit-scrollbar-thumb { | |
219 -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,0.10), | |
220 inset 0 -1px 0 rgba(0,0,0,0.07); | |
Dan Beam
2012/11/29 04:59:55
nit: I'd line these up
-webkit-box-shadow: inse
pedro (no code reviews)
2012/11/29 08:02:37
Done.
| |
221 background-clip: padding-box; | |
222 background-color: rgba(0,0,0,0.2); | |
223 min-height: 28px; | |
224 padding-top: 100px; | |
225 } | |
226 | |
227 ::-webkit-scrollbar-thumb:hover { | |
228 -webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.25); | |
229 background-color: rgba(0,0,0,0.4); | |
230 } | |
231 | |
232 ::-webkit-scrollbar-thumb:active { | |
233 -webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,0.35); | |
234 background-color: rgba(0,0,0,0.5); | |
235 } | |
236 | |
237 ::-webkit-scrollbar-thumb:vertical { | |
238 border-bottom: 0 solid transparent; | |
239 border-left: 5px solid transparent; | |
240 border-right: 0 solid transparent; | |
241 border-top: 0 solid transparent; | |
242 } | |
243 | |
244 ::-webkit-scrollbar-thumb:horizontal { | |
245 border-bottom: 0 solid transparent; | |
246 border-left: 0 solid transparent; | |
247 border-right: 0 solid transparent; | |
248 border-top: 5px solid transparent; | |
Evan Stade
2012/11/29 02:35:47
can't this be condensed a bit? something like
bor
Dan Beam
2012/11/29 04:59:55
+1
pedro (no code reviews)
2012/11/29 08:02:37
Done.
pedro (no code reviews)
2012/11/29 08:02:37
Done.
| |
249 } | |
250 | |
251 ::-webkit-scrollbar-track:hover { | |
252 -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,0.10); | |
253 background-color: rgba(0,0,0,0.05); | |
254 } | |
255 | |
256 ::-webkit-scrollbar-track:active { | |
257 -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,0.14), | |
258 inset -1px -1px 0 rgba(0,0,0,0.07); | |
259 background-color: rgba(0,0,0,0.05); | |
260 } | |
OLD | NEW |