Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome/browser/resources/ntp_search/new_tab.css

Issue 10829131: Refactoring NTP5: new implementation of TilePage and MostVisitedPage (which now inherits from Thumb… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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. */
4
5 /* =========================================================================
6 TODO(pedrosimonetti): Work around
7 ========================================================================= */
8
9 body > center {
10 height: 100%;
11 min-height: 540px;
12 position: relative;
13 }
14
15 #card-slider-frame {
16 bottom: 0 !important;
17 position: absolute;
18 top: inherit !important;
19 }
20
21 #page-switcher-start,
22 #page-switcher-end {
23 display: none;
24 }
25
26 #footer,
27 #footer-border,
28 #footer-content {
29 display: none;
30 }
31
32 .tile-page {
33 display: block;
34 }
35
36 .tile-page-content {
37 padding: 57px 13% 0 13% !important;
38 }
39
40 #logo-img {
41 display: none;
42 }
43
44 #dot-list {
45 display: inline-block;
46 margin: 0 auto;
47 }
48
49 .dot {
50 display: inline-block;
51 max-width: 119px !important;
52 }
53
54 /* TODO(pedrosimonetti): Hack to make the alignment of the bottom section
55 tab titles less ugly. The problem is that the items have a fixed position
56 so "Apps" will have lots of padding compared to "Recently visited". Need
57 to find a better way to solve this problem. */
58 .dot[title=Apps] input {
59 text-align: left;
60 }
61
62 .dot .selection-bar {
63 border: none !important;
64 }
65
66 .dot input {
67 color: #666 !important;
68 font-family: Arial;
69 font-size: 14px;
70 font-weight: normal;
71 text-align: center;
72 }
73
74 .dot.selected input {
75 color: rgb(221, 75, 57) !important;
76 }
77
78 .tile-page-scrollbar {
79 display: none;
80 }
81
82 #footer .menu-container,
83 #footer #chrome-web-store-link,
84 #trash {
85 display: none;
86 }
87
88 #page-list {
89 margin-top: 0;
90 }
91
92 .most-visited .color-stripe {
93 display: none;
94 }
95
96 .thumbnail,
97 .thumbnail-shield,
98 .thumbnail-wrapper {
99 border-radius: 2px !important;
100 opacity: 1 !important;
101 }
102
103 .thumbnail-shield {
104 display: none !important;
105 }
106
107 .most-visited .favicon {
108 display: none !important;
109 }
110
111 .tile-page-content {
112 padding: 0 !important;
113 }
114
115 .top-margin {
116 display: none;
117 }
118
119 /* =========================================================================
120 END OF Work around
121 ========================================================================= */
122
123
124
125
126
127
128
129 /* -----------------------------------------------------------------------------
130 General Styles
131 ----------------------------------------------------------------------------- */
132
133 body {
134 background: whiteSmoke;
135 margin: 0;
136 overflow: hidden;
137 padding: 0;
138 }
139
140
141
142 /* -----------------------------------------------------------------------------
143 TODO(pedrosimonetti): refactor
144 ----------------------------------------------------------------------------- */
145
146 #page-list {
147 display: -webkit-box;
148 position: static;
149 }
150
151 #card-slider-frame {
152 overflow: hidden;
153 }
154
155 #page-list-menu {
156 margin: 8px auto 30px;
157 text-align: center;
158 }
159
160 #dot-list {
161 color: #666;
162 font-family: Arial;
163 font-size: 13px;
164 height: 35px;
165 list-style: none;
166 margin: 0;
167 overflow: hidden;
168 padding: 0;
169 text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
170 }
171
172 /* TODO: selected class */
173 #dot-list li:first-child {
174 color: rgb(221, 75, 57);
175 }
176
177 #dot-list li {
178 display: inline-block;
179 margin-left: 13px;
180 margin-right: 13px;
181 min-width: 55px; /* TODO: Confirm value with Marcin */
182 white-space: nowrap;
183 }
184
185
186
187 /* -----------------------------------------------------------------------------
188 TODO(pedrosimonetti): refactor
189 ----------------------------------------------------------------------------- */
190
191 #card-slider-frame {
192 bottom: 0;
193 position: absolute;
194 text-align: center;
195 width: 100%;
196 }
197
198 .tile-page {
199 overflow: hidden;
200 position: relative;
201 }
202
203 .tile-page-content {
204 margin: 0 auto;
205 width: 748px; /* TODO move */
206 }
207
208 .tile-grid {
209 display: block;
210 margin: 0 auto;
211 overflow: hidden;
212 }
213
214 /* -----------------------------------------------------------------------------
215 New tile grid
216 ----------------------------------------------------------------------------- */
217
218 .tile-row {
219 text-align: left;
220 white-space: nowrap;
221 }
222
223 .tile-cell {
224 display: inline-block;
225 position: relative;
226 }
227
228 .tile-cell:first-child {
229 margin-left: 0 !important;
230 }
231
232
233 /* -----------------------------------------------------------------------------
234 Size / Animation
235 ----------------------------------------------------------------------------- */
236
237 #page-list {
238 -webkit-transition: all 201ms ease-in-out !important;
239 padding-bottom: 10px;
240 }
241
242 #card-slider-frame .tile-page-content {
243 width: 748px; /* TODO move */
244 }
245
246 #card-slider-frame .tile-grid {
247 -webkit-transform: translate3d(0,0,0);
248 -webkit-transition: all 201ms ease-in-out;
249 width: 732px; /* TODO move */
250 }
251
252 #card-slider-frame .tile-grid-content {
253 -webkit-transform: translate3d(0,0,0);
254 -webkit-transition: all 201ms ease-in-out;
255 }
256
257 #card-slider-frame .tile-row {
258 -webkit-transform: translate3d(0,0,0);
259 -webkit-transition: all 201ms ease-in-out; /* change to opacity only? */
260 }
261
262 /* -----------------------------------------------------------------------------
263 Size / Animation
264 ----------------------------------------------------------------------------- */
265
266 .tile-cell {
267 -webkit-transform: translate3d(0,0,0);
268 height: 80px;
269 margin-bottom: 22px;
270 margin-left: 18px;
271 width: 132px;
272 }
273
274 /* TODO(pedrosimonetti): we need to resize the filler child too if we want
275 its animation to be the same as a normal tile */
276 .tile-cell.filler {
277 background: -webkit-linear-gradient(rgb(242, 242, 242), rgb(232, 232, 232));
278 border-color: rgb(224, 224, 224);
279 border-radius: 3px;
280 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09);
281 display: inline-block;
282 position: relative;
283 width: 132px;
284 }
285
286 .tile-cell .tile-content {
287 background: #fff;
288 border: 1px solid rgb(192, 192, 192);
289 border-radius: 2px;
290 box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
291 font: 16px Arial;
292 height: 78px;
293 text-align: center;
294 width: 130px;
295 }
296
297 .tile-content:hover {
298 border-color: rgb(127, 127, 127); /* TODO: confirm value with Marcin */
299 }
300
301 .tile-cell > div > span {
302 display: inline-block;
303 position: absolute;
304 top: 27px;
305 }
306
307 /* -----------------------------------------------------------------------------
308 Tile Animation
309 ----------------------------------------------------------------------------- */
310
311 .animate-tile .tile-cell {
312 -webkit-transition: all 201ms ease-in-out, opacity 101ms ease-out;
313 }
314
315 .hide-col-0 .tile-col-0,
jeremycho_google 2012/08/02 03:00:49 Are these column indices necessary?
pedrosimonetti2 2012/08/03 18:14:12 Yes, they animate entire columns of Tiles at once.
316 .hide-col-1 .tile-col-1,
317 .hide-col-2 .tile-col-2,
318 .hide-col-3 .tile-col-3,
319 .hide-col-4 .tile-col-4,
320 .hide-col-5 .tile-col-5,
321 .hide-col-6 .tile-col-6,
322 .hide-col-7 .tile-col-7,
323 .hide-col-8 .tile-col-8,
324 .hide-col-9 .tile-col-9 {
325 margin-right: -10px;
326 opacity: 0 !important;
327 width: 10px !important;
328 }
329
330 .hide-row {
331 opacity: 0 !important;
332 }
333 .hide-row .tile-cell {
334 opacity: 1 !important;
335 }
336
337
338 /* -----------------------------------------------------------------------------
339 Debug
340 ----------------------------------------------------------------------------- */
341
342 .debug #card-slider-frame {
343 bottom: 0;
344 height: 95%;
345 position: absolute;
346 text-align: center;
347 width: 100%;
348 }
349
350
351 .debug .tile-grid {
352 height: 100% !important;
353 }
354
355 .debug .animate-tile .tile-cell {
356 -webkit-transition: all 201ms ease-in-out;
357 }
358
359 .debug #page-list-menu {
360 background: rgb(255, 170, 255);
361 }
362
363 .debug .tile-page-content {
364 background: rgb(119, 255, 255);
365 }
366
367 .debug .tile-row {
368 background: rgb(255, 255, 119);
369 }
370
371 .debug .hide-row {
372 opacity: 0.35 !important;
373 }
374
375 .debug .hide-row .tile-cell > div {
376 background-color: lightgray !important;
377 border: 1px solid gray;
378 color: gray;
379 }
380
381 .debug .hide-col-0 .tile-col-0,
382 .debug .hide-col-1 .tile-col-1,
383 .debug .hide-col-2 .tile-col-2,
384 .debug .hide-col-3 .tile-col-3,
385 .debug .hide-col-4 .tile-col-4 {
386 background-color: lightgray;
387 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698