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

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

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

Powered by Google App Engine
This is Rietveld 408576698