Chromium Code Reviews

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

Issue 155865: NNTP: Merge the recent activities into one list and show more items... (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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | 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 {
(...skipping 338 matching lines...)
349 .list .title > div { 349 .list .title > div {
350 color: rgb(6, 45, 117); 350 color: rgb(6, 45, 117);
351 } 351 }
352 352
353 .section { 353 .section {
354 background: white; 354 background: white;
355 -webkit-border-radius: 4px; 355 -webkit-border-radius: 4px;
356 white-space: nowrap; 356 white-space: nowrap;
357 text-overflow: ellipsis; 357 text-overflow: ellipsis;
358 border: 1px solid hsl(213, 65%, 92%); 358 border: 1px solid hsl(213, 65%, 92%);
359 padding-bottom: 5px;
360 overflow: hidden; 359 overflow: hidden;
361 min-height: 198px; /* height of 6 items plus the header */ 360 min-height: 151px; /* height of 5 items plus the header */
362 vertical-align: top; 361 vertical-align: top;
363 margin: 0; 362 margin: 0;
363 margin-bottom: 10px;
364 } 364 }
365 365
366 .section > h2 { 366 .section > h2 {
367 background-image: -webkit-gradient(linear, left top, left bottom, 367 background-image: -webkit-gradient(linear, left top, left bottom,
368 from(hsl(213, 87%, 67%)), 368 from(hsl(213, 87%, 67%)),
369 to(hsl(213, 66%, 57%))); 369 to(hsl(213, 66%, 57%)));
370 -webkit-border-top-left-radius: 2px; 370 -webkit-border-top-left-radius: 2px;
371 -webkit-border-top-right-radius: 2px; 371 -webkit-border-top-right-radius: 2px;
372 padding: 4px 8px; 372 padding: 4px 8px;
373 color: white; 373 color: white;
(...skipping 29 matching lines...)
403 text-decoration: none; 403 text-decoration: none;
404 padding-top: 6px; 404 padding-top: 6px;
405 white-space: normal; 405 white-space: normal;
406 } 406 }
407 407
408 .tips-container { 408 .tips-container {
409 padding-top: 4px; 409 padding-top: 4px;
410 } 410 }
411 411
412 .window { 412 .window {
413 position: relative;
414 overflow: visible; /* We use visible so that the menu can be a child and shown 413 overflow: visible; /* We use visible so that the menu can be a child and shown
415 on :hover. To get this to work we have to set visibility 414 on :hover. To get this to work we have to set visibility
416 to visible which unfortunately breaks the ellipsis for t 415 to visible which unfortunately breaks the ellipsis for t
417 he window items */ 416 he window items */
418 background-image: url(chrome://theme/newtab_closed_window); 417 background-image: url(chrome://theme/newtab_closed_window);
419 } 418 }
420 419
421 .window-menu { 420 .window-menu {
422 position: absolute; 421 position: absolute;
423 display: none; 422 display: none;
424 border: 1px solid #999; 423 border: 1px solid #999;
425 -webkit-box-shadow: 5px 5px 10px hsla(0, 0%, 0%, .3); 424 -webkit-box-shadow: 2px 2px 3px hsla(0, 0%, 0%, .3);
426 background-color: hsla(213, 0%, 100%, .95); 425 background-color: hsla(213, 0%, 100%, .95);
427 width: 157px; 426 width: 157px;
428 left: 0; 427 left: 0;
429 white-space: nowrap; 428 white-space: nowrap;
430 z-index: 2; 429 z-index: 2;
431 padding: 1px; 430 padding: 1px;
432 cursor: default; 431 cursor: default;
433 } 432 }
434 433
434 /* Made to look like a tooltip using vista/win7 look and feel.
435 TODO(arv): Replace with -webkit-appearance once issue 17371 is fixed
436 */
437 #window-menu {
438 pointer-events: none;
439 border: 1px solid rgb(118,118,118);
440 -webkit-border-radius: 3px;
441 padding: 0px 3px;
442 background: -webkit-gradient(linear, left top, left bottom,
443 from(white),
444 to(rgb(228,229,240)));
445 width: auto;
446 max-width: 300px;
447 }
448
435 .hbox { 449 .hbox {
436 display: -webkit-box; 450 display: -webkit-box;
437 -webkit-box-orient: horizontal; 451 -webkit-box-orient: horizontal;
438 } 452 }
439 453
440 #recent-tabs,
441 #downloads {
442 -webkit-box-flex: 1;
443 width: 50%;
444 }
445
446 .section h3 { 454 .section h3 {
447 padding: 8px 5px; 455 padding: 8px 5px;
448 padding-bottom: 0; 456 padding-bottom: 0;
449 font-size: 80%; 457 font-size: 80%;
450 font-weight: normal; 458 font-weight: normal;
451 margin: 0; 459 margin: 0;
452 -webkit-margin-start: 2px; 460 -webkit-margin-start: 2px;
453 overflow: hidden; 461 overflow: hidden;
454 text-overflow: ellipsis; 462 text-overflow: ellipsis;
455 } 463 }
456 464
457 .item-container { 465 .item-container {
458 margin: 0 5px; 466 margin: 0 5px;
459 text-decoration: underline; 467 text-decoration: underline;
460 color: hsl(213, 27%, 68%); 468 color: hsl(213, 27%, 68%);
461 } 469 }
462 470
463 .item.nav:after { 471 .item.nav:after {
464 content: '\00bb'; /* raque gets flipped automatically in rtl */ 472 content: '\00bb'; /* raque gets flipped automatically in rtl */
465 font-size: 120%; 473 font-size: 115%;
466 -webkit-padding-start: 2px; 474 -webkit-padding-start: 2px;
467 } 475 }
468 476
469 #recent-activities { 477 #recent-activities {
470 -webkit-transition: width .15s, opacity .15s; 478 -webkit-transition: width .15s, opacity .15s;
471 } 479 }
472 480
481 #recent-activities > .item-container {
482 -webkit-column-count: 2;
483 -webkit-column-gap: 20px;
484 height: 120px;
485 }
486
487 #recent-activities.large > .item-container {
488 -webkit-column-count: 4;
489 }
490
473 .section { 491 .section {
474 -webkit-box-flex: 1; 492 -webkit-box-flex: 1;
475 width: 50%; 493 width: 50%;
476 display: inline-block; 494 display: inline-block;
477 } 495 }
478 496
479 #view-toolbar { 497 #view-toolbar {
480 -webkit-user-select: none; 498 -webkit-user-select: none;
481 text-align: right; 499 text-align: right;
482 position: relative; 500 position: relative;
(...skipping 200 matching lines...)
683 } 701 }
684 702
685 #t3, #t7 { 703 #t3, #t7 {
686 left: 534px; 704 left: 534px;
687 } 705 }
688 706
689 #t4, #t5, #t6, #t7 { 707 #t4, #t5, #t6, #t7 {
690 top: 147px; 708 top: 147px;
691 } 709 }
692 } 710 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.cc ('k') | chrome/browser/resources/new_new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine