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

Side by Side Diff: chrome/browser/resources/new_new_tab.css

Issue 155542: NNTP: Lots of small tweaks... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 html { 1 html {
2 /* This is needed because of chrome://theme/css/new_tab.css */ 2 /* This is needed because of chrome://theme/css/new_tab.css */
3 height: 100%; 3 height: 100%;
4 } 4 }
5 5
6 body { 6 body {
7 margin: 0; 7 margin: 0;
8 } 8 }
9 9
10 #main { 10 #main {
11 background: url(chrome://theme/product_logo) no-repeat 0 0px; 11 background: url(chrome://theme/product_logo) no-repeat 0 0px;
12 position: relative; 12 position: relative;
13 margin: 0 auto; 13 margin: 0 auto;
14 width: 940px; 14 width: 940px;
15 -webkit-transition: width .5s; 15 -webkit-transition: width .15s;
16 } 16 }
17 17
18 html[dir='rtl'] #main { 18 html[dir='rtl'] #main {
19 background-position-x: 100%; 19 background-position-x: 100%;
20 } 20 }
21 21
22 html[anim='false'] *, 22 html[anim='false'] *,
23 .no-anim, .no-anim *, 23 .no-anim, .no-anim *,
24 .loading * { 24 .loading * {
25 -webkit-transition: none !important; 25 -webkit-transition: none !important;
26 -webkit-animation: none !important; 26 -webkit-animation: none !important;
27 } 27 }
28 28
29 /* Most Visited */ 29 /* Most Visited */
30 30
31 #most-visited { 31 #most-visited {
32 position: relative; 32 position: relative;
33 padding: 0; 33 padding: 0;
34 margin-bottom: 34px; 34 margin-bottom: 34px;
35 height: 372px; 35 height: 372px;
36 -webkit-user-select: none; 36 -webkit-user-select: none;
37 -webkit-transition: height .5s, opacity .5s; 37 -webkit-transition: height .15s, opacity .15s;
38 }
39
40 @-webkit-keyframes 'thumbnail-enter' {
41 /* 2.5s */
42 0%, 20% {
43 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5);
44 -webkit-border-radius: 4px;
45 }
46
47 100% {
48 -webkit-border-top-left-radius: 0;
49 -webkit-border-top-right-radius: 0;
50 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0);
51 }
52 }
53
54 @-webkit-keyframes 'edit-mode-border-enter' {
55 /* 2.5s */
56 0%, 20% {
57 background-color: hsla(213, 66%, 57%, 0);
58 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0);
59 }
60
61 100% {
62 background-color: hsla(213, 66%, 57%, 1);
63 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5);
64 }
65 }
66
67 @-webkit-keyframes 'edit-bar-enter' {
68 /* 2.5s */
69 0%, 20% {
70 opacity: 0;
71 pointer-events: none;
72 }
73
74 100% {
75 opacity: 1;
76 pointer-events: inherit;
77 }
78 } 38 }
79 39
80 .thumbnail-container { 40 .thumbnail-container {
81 position: absolute; 41 position: absolute;
82 -webkit-transition: top .5s, left .5s; 42 -webkit-transition: top .15s, left .15s;
83 color: black; 43 color: black;
84 text-decoration: none; 44 text-decoration: none;
85 -webkit-transition: left .5s, top .5s; 45 -webkit-transition: left .15s, top .15s;
86 } 46 }
87 47
88 .list > .thumbnail-container { 48 .list > .thumbnail-container {
89 -webkit-transition: left .5s, top .5s, width .5s; 49 -webkit-transition: left .15s, top .15s, width .15s;
50 overflow: hidden;
51 }
52
53 /* hide outline in thumbnail view */
54 :not(.list) > .thumbnail-container:focus {
55 outline: none;
90 } 56 }
91 57
92 .thumbnail, 58 .thumbnail,
93 .thumbnail-container > .title { 59 .thumbnail-container > .title {
94 width: 212px; /* natural size is 196 */ 60 width: 212px; /* natural size is 196 */
95 height: 132px; /* 136 */ 61 height: 132px; /* 136 */
96 -webkit-transition: width .5s, height .5s; 62 -webkit-transition: width .15s, height .15s;
97 } 63 }
98 64
99 .thumbnail-wrapper { 65 .thumbnail-wrapper {
100 display: block; 66 display: block;
101 -webkit-background-size: 212px 132px; 67 -webkit-background-size: 212px 132px;
102 background: no-repeat 4px 4px; 68 background: no-repeat 4px 4px;
103 background-color: white; 69 background-color: white;
104 -webkit-border-radius: 5px; 70 -webkit-border-radius: 5px;
105 -webkit-transition: -webkit-background-size .5s; 71 -webkit-transition: -webkit-background-size .15s;
72 position: relative;
106 } 73 }
107 74
108 .filler * { 75 .filler * {
109 visibility: hidden; 76 visibility: hidden;
110 } 77 }
111 78
112 .filler { 79 .filler {
113 pointer-events: none; 80 pointer-events: none;
114 } 81 }
115 82
116 .filler .thumbnail-wrapper { 83 .filler .thumbnail-wrapper {
117 visibility: inherit; 84 visibility: inherit;
118 border: 1px solid hsl(0, 0%, 90%); 85 border: 1px solid hsl(0, 0%, 90%);
119 background-color: hsl(0, 0%, 95%); 86 background-color: hsl(0, 0%, 95%);
120 -webkit-border-radius: 2px; 87 -webkit-border-radius: 2px;
121 display: block; 88 display: block;
122 } 89 }
123 90
124 .filler .thumbnail { 91 .filler .thumbnail {
125 visibility: visible; 92 visibility: visible;
126 border-color: hsl(0, 0%, 90%); 93 border-color: hsl(0, 0%, 90%);
127 background-color: hsl(0, 0%, 95%); 94 background-color: hsl(0, 0%, 95%);
128 } 95 }
129 96
130 .edit-bar { 97 .edit-bar {
131 opacity: 0;
132 pointer-events: none;
133 display: -webkit-box; 98 display: -webkit-box;
134 -webkit-box-orient: horizontal; 99 -webkit-box-orient: horizontal;
135 -webkit-box-align: stretch; 100 -webkit-box-align: stretch;
136 padding: 3px; 101 padding: 3px;
137 padding-bottom: 0; 102 padding-bottom: 0;
138 height: 17px; /* 23 - 2 * 3 */ 103 height: 17px; /* 23 - 2 * 3 */
139 -webkit-transition: opacity .5s;
140 cursor: move; 104 cursor: move;
141 font-size: 100%; 105 font-size: 100%;
142 line-height: 17px; 106 line-height: 17px;
143 background-image: -webkit-gradient(linear, left top, left bottom, 107 background: hsl(213, 54%, 95%);
144 from(hsl(213, 87%, 67%)),
145 to(hsl(213, 66%, 57%)));
146 -webkit-border-top-left-radius: 4px; 108 -webkit-border-top-left-radius: 4px;
147 -webkit-border-top-right-radius: 4px; 109 -webkit-border-top-right-radius: 4px;
110 position: relative;
111 margin-top: 21px;
112 margin-bottom: -21px;
113 -webkit-transition: margin .15s, background .15s;
148 } 114 }
149 115
150 .edit-bar > * { 116 .edit-bar > * {
151 display: block; 117 display: block;
152 position: relative; 118 position: relative;
153 } 119 }
154 120
121 .thumbnail-container:focus .edit-bar,
155 .thumbnail-container:hover .edit-bar { 122 .thumbnail-container:hover .edit-bar {
156 -webkit-animation: 'edit-bar-enter' 2.5s; 123 margin-top: 0;
157 opacity: 1; 124 margin-bottom: 0;
158 pointer-events: inherit; 125 -webkit-transition-delay: .5s, 0s;
126
127 /* We need background-color as well to get the fade out animation correct */
128 background-color: hsl(213, 66%, 57%);
129 background-image: -webkit-gradient(linear, left top, left bottom,
130 from(hsl(213, 87%, 67%)),
131 to(hsl(213, 66%, 57%)));
159 } 132 }
160 133
161 .edit-bar > .spacer { 134 .edit-bar > .spacer {
162 -webkit-box-flex: 1; 135 -webkit-box-flex: 1;
163 } 136 }
164 137
165 .edit-bar > .pin, 138 .edit-bar > .pin,
166 .edit-bar > .remove { 139 .edit-bar > .remove {
167 width: 16px; 140 width: 16px;
168 height: 16px; 141 height: 16px;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 180 }
208 181
209 :link, 182 :link,
210 :visited, 183 :visited,
211 .link { 184 .link {
212 cursor: pointer; 185 cursor: pointer;
213 text-decoration: underline; 186 text-decoration: underline;
214 color: hsl(213, 90%, 24%); 187 color: hsl(213, 90%, 24%);
215 } 188 }
216 189
190 .thumbnail-container {
191 text-decoration: none;
192 }
193
217 .thumbnail-container > .title { 194 .thumbnail-container > .title {
218 line-height: 16px; 195 line-height: 16px;
219 height: 16px; 196 height: 16px;
220 margin: 0; 197 margin: 0;
221 margin-top: 4px; 198 margin-top: 4px;
222 font-size: 100%; 199 font-size: 100%;
223 font-weight:normal; 200 font-weight: normal;
224 padding: 0 3px; 201 padding: 0 3px;
225 opacity: 1; 202 opacity: 1;
226 -webkit-transition: opacity .5s, width .5s; 203 -webkit-transition: opacity .15s, width .15s;
227 color: black; 204 color: black;
228 } 205 }
229 206
230 .thumbnail-container > .title > div { 207 .thumbnail-container > .title > div {
231 white-space: nowrap; 208 white-space: nowrap;
232 overflow: hidden; 209 overflow: hidden;
233 text-overflow: ellipsis; 210 text-overflow: ellipsis;
234 211
235 background: no-repeat 0 50%; 212 background: no-repeat 0 50%;
236 -webkit-background-size: 16px; 213 -webkit-background-size: 16px;
237 padding-left: 20px; /* we cannot use padding start here because even if we set 214 padding-left: 20px; /* we cannot use padding start here because even if we set
238 the direction we always want the icon on the same side 215 the direction we always want the icon on the same side
239 */ 216 */
240 padding-right: 0; 217 padding-right: 0;
241 } 218 }
242 219
243 html[dir=rtl] .thumbnail-container > .title > div { 220 html[dir=rtl] .thumbnail-container > .title > div {
244 background-position-x: 100%; 221 background-position-x: 100%;
245 padding-left: 0; 222 padding-left: 0;
246 padding-right: 20px; 223 padding-right: 20px;
247 text-align: right; 224 text-align: right;
248 } 225 }
249 226
250 .thumbnail { 227 .thumbnail {
251 border: 3px solid hsla(213, 63%, 93%, 1); 228 border: 3px solid hsl(213, 63%, 93%);
252 padding: 1px; 229 padding: 1px;
253 -webkit-border-radius: 5px; 230 -webkit-border-radius: 5px;
254 display: block; 231 display: block;
255 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0); 232 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0);
256 -webkit-transition: width .5s, height .5s, border-color .5s, 233 -webkit-transition: width .15s, height .15s, border-color .15s,
257 -webkit-border-radius .5s, -webkit-box-shadow .5s; 234 -webkit-border-radius .15s, -webkit-box-shadow .15s;
258 } 235 }
259 236
260 .edit-mode-border { 237 .edit-mode-border {
261 -webkit-border-radius: 4px; 238 -webkit-border-radius: 4px;
262 background-color: hsla(213, 54%, 95%, 0); 239 background-color: hsla(213, 54%, 95%, 0);
263 } 240 }
264 241
242 .thumbnail-container:focus .thumbnail,
265 .thumbnail-container:hover .thumbnail { 243 .thumbnail-container:hover .thumbnail {
266 -webkit-animation: 'thumbnail-enter' 2.5s; 244 border-color: hsl(213, 66%, 57%);
267 border-color: hsla(213, 66%, 57%, 1);
268 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0); 245 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0);
269 -webkit-border-top-left-radius: 0; 246 -webkit-border-top-left-radius: 0;
270 -webkit-border-top-right-radius: 0; 247 -webkit-border-top-right-radius: 0;
271 248
272 background-image: -webkit-gradient(linear, left top, left bottom, 249 background-image: -webkit-gradient(linear, left top, left bottom,
273 from(hsla(0, 0%, 0%, 0)), 250 from(hsla(0, 0%, 0%, 0)),
274 color-stop(0.85, hsla(0, 0%, 47%, 0)), 251 color-stop(0.85, hsla(0, 0%, 47%, 0)),
275 to(hsla(0, 0%, 47%, 0.2)) 252 to(hsla(0, 0%, 47%, 0.2))
276 ); 253 );
254
255 /* delay border radius transition as much as the edit bar slide delay */
256 -webkit-transition-delay: 0, 0, 0, .5s, 0;
277 } 257 }
278 258
259 .thumbnail-container:focus > .edit-mode-border,
279 .thumbnail-container:hover > .edit-mode-border { 260 .thumbnail-container:hover > .edit-mode-border {
280 -webkit-animation: 'edit-mode-border-enter' 2.5s; 261 background-color: hsl(213, 66%, 57%);
281 background-color: hsla(213, 66%, 57%, 1);
282 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); 262 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5);
283 } 263 }
284 264
285 .dragging { 265 .dragging {
286 -webkit-transition: none; 266 -webkit-transition: none;
287 } 267 }
288 268
289 .dragging > .title { 269 .dragging > .title {
290 opacity: 0 !important; 270 opacity: 0 !important;
291 } 271 }
(...skipping 11 matching lines...) Expand all
303 0% { 283 0% {
304 opacity: 0; 284 opacity: 0;
305 } 285 }
306 286
307 100% { 287 100% {
308 opacity: 1; 288 opacity: 1;
309 } 289 }
310 } 290 }
311 291
312 .fade-in { 292 .fade-in {
313 -webkit-animation: 'fade-in' 2.5s; 293 -webkit-animation: 'fade-in' .15s;
314 } 294 }
315 295
316 /* Notification */ 296 /* Notification */
317 297
318 #notification { 298 #notification {
319 position: relative; 299 position: relative;
320 background-color: hsl(52, 100%, 80%); 300 background-color: hsl(52, 100%, 80%);
321 -webkit-border-radius: 4px; 301 -webkit-border-radius: 4px;
322 padding: 8px 16px; 302 padding: 8px 16px;
323 white-space: nowrap; 303 white-space: nowrap;
(...skipping 28 matching lines...) Expand all
352 .list .thumbnail, 332 .list .thumbnail,
353 .list .edit-bar { 333 .list .edit-bar {
354 display: none; 334 display: none;
355 } 335 }
356 336
357 .list > .thumbnail-container { 337 .list > .thumbnail-container {
358 -webkit-box-sizing: border-box; 338 -webkit-box-sizing: border-box;
359 } 339 }
360 340
361 .list > .thumbnail-container > .title { 341 .list > .thumbnail-container > .title {
362 font-size: 140%; 342 font-size: 160%;
363 line-height: 40px; 343 line-height: 40px;
364 height: 40px; 344 height: 40px;
365 color: hsl(213, 27%, 68%); 345 color: hsl(213, 27%, 68%);
366 text-decoration: underline;
367 width: 100%; 346 width: 100%;
368 } 347 }
369 348
370 .list .title > div { 349 .list .title > div {
371 color: rgb(6, 45, 117); 350 color: rgb(6, 45, 117);
372 } 351 }
373 352
374 .section { 353 .section {
375 background: white; 354 background: white;
376 -webkit-border-radius: 4px; 355 -webkit-border-radius: 4px;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 420
442 .window-menu { 421 .window-menu {
443 position: absolute; 422 position: absolute;
444 display: none; 423 display: none;
445 border: 1px solid #999; 424 border: 1px solid #999;
446 -webkit-box-shadow: 5px 5px 10px hsla(0, 0%, 0%, .3); 425 -webkit-box-shadow: 5px 5px 10px hsla(0, 0%, 0%, .3);
447 background-color: hsla(213, 0%, 100%, .95); 426 background-color: hsla(213, 0%, 100%, .95);
448 width: 157px; 427 width: 157px;
449 left: 0; 428 left: 0;
450 white-space: nowrap; 429 white-space: nowrap;
451 z-index: 1; 430 z-index: 2;
452 padding: 1px; 431 padding: 1px;
453 cursor: default; 432 cursor: default;
454 } 433 }
455 434
456 .hbox { 435 .hbox {
457 display: -webkit-box; 436 display: -webkit-box;
458 -webkit-box-orient: horizontal; 437 -webkit-box-orient: horizontal;
459 } 438 }
460 439
461 #recent-tabs, 440 #recent-tabs,
(...skipping 19 matching lines...) Expand all
481 color: hsl(213, 27%, 68%); 460 color: hsl(213, 27%, 68%);
482 } 461 }
483 462
484 .item.nav:after { 463 .item.nav:after {
485 content: '\00bb'; /* raque gets flipped automatically in rtl */ 464 content: '\00bb'; /* raque gets flipped automatically in rtl */
486 font-size: 120%; 465 font-size: 120%;
487 -webkit-padding-start: 2px; 466 -webkit-padding-start: 2px;
488 } 467 }
489 468
490 #recent-activities { 469 #recent-activities {
491 -webkit-transition: width .5s, opacity .5s; 470 -webkit-transition: width .15s, opacity .15s;
492 } 471 }
493 472
494 .section { 473 .section {
495 -webkit-box-flex: 1; 474 -webkit-box-flex: 1;
496 width: 50%; 475 width: 50%;
497 display: inline-block; 476 display: inline-block;
498 } 477 }
499 478
500 #view-toolbar { 479 #view-toolbar {
501 -webkit-user-select: none; 480 -webkit-user-select: none;
502 text-align: right; 481 text-align: right;
503 position: relative; 482 position: relative;
504 top: 35px; 483 top: 35px;
505 } 484 }
506 485
507 html[dir='rtl'] #view-toolbar { 486 html[dir='rtl'] #view-toolbar {
508 text-align: left; 487 text-align: left;
509 } 488 }
510 489
511 #view-toolbar > input { 490 #view-toolbar > input {
512 -webkit-appearance: none; 491 -webkit-appearance: none;
513 background-color: transparent; 492 background-color: transparent;
514 width: 19px; 493 width: 19px;
515 height: 17px; 494 height: 17px;
516 margin: 0; 495 margin: 0;
517 border: 0; 496 border: 0;
518 padding: 0; 497 padding: 0;
519 vertical-align: top; 498 vertical-align: top;
520 -webkit-margin-start: 5px; 499 -webkit-margin-start: 5px;
500 /* Do not show focus outline */
501 outline: none;
521 } 502 }
522 503
523 #lower-sections { 504 #lower-sections {
524 position: relative; 505 position: relative;
525 overflow: hidden; 506 overflow: hidden;
526 -webkit-transition: height .5s, width .5s, opacity .5s; 507 -webkit-transition: height .15s, width .15s, opacity .15s;
527 white-space: nowrap; 508 white-space: nowrap;
528 } 509 }
529 510
530 #lower-sections > .section { 511 #lower-sections > .section {
531 -webkit-transition: width .5s, opacity .5s, left .5s; 512 -webkit-transition: width .15s, opacity .15s, left .15s;
532 -webkit-box-sizing: border-box; 513 -webkit-box-sizing: border-box;
533 width: 460px; /* Set default size so we don't have to do a js layout at 514 width: 460px; /* Set default size so we don't have to do a js layout at
534 load */ 515 load */
535 } 516 }
536 517
537 #lower-sections .spacer { 518 #lower-sections .spacer {
538 width: 20px; 519 width: 20px;
539 -webkit-transition: width .5s; 520 -webkit-transition: width .15s;
540 display: inline-block; 521 display: inline-block;
541 } 522 }
542 523
543 #thumb-checkbox { 524 #thumb-checkbox {
544 background-image: url(chrome://theme/newtab_thumb_off); 525 background-image: url(chrome://theme/newtab_thumb_off);
545 } 526 }
546 527
547 #thumb-checkbox:hover { 528 #thumb-checkbox:hover {
548 background-image: url(chrome://theme/newtab_thumb_off_h); 529 background-image: url(chrome://theme/newtab_thumb_off_h);
549 } 530 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 left: 0; 599 left: 0;
619 } 600 }
620 601
621 #option-menu > div { 602 #option-menu > div {
622 padding: 3px 8px; 603 padding: 3px 8px;
623 overflow: hidden; 604 overflow: hidden;
624 text-overflow: ellipsis; 605 text-overflow: ellipsis;
625 } 606 }
626 607
627 #option-menu > [selected] { 608 #option-menu > [selected] {
628 background-color: hsla(213, 66%, 57%, 1); 609 background-color: hsl(213, 66%, 57%);
629 color: white; 610 color: white;
630 } 611 }
631 612
632 /* Hard code thumbnail positions to improve initial layout speed */ 613 /* Hard code thumbnail positions to improve initial layout speed */
633 #t0, #t4 { 614 #t0, #t4 {
634 left: 0; 615 left: 0;
635 } 616 }
636 617
637 #t1, #t5 { 618 #t1, #t5 {
638 left: 240px; 619 left: 240px;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 } 678 }
698 679
699 #t3, #t7 { 680 #t3, #t7 {
700 left: 534px; 681 left: 534px;
701 } 682 }
702 683
703 #t4, #t5, #t6, #t7 { 684 #t4, #t5, #t6, #t7 {
704 top: 147px; 685 top: 147px;
705 } 686 }
706 } 687 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698