| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 position: relative; | 32 position: relative; |
| 33 padding: 0; | 33 padding: 0; |
| 34 margin-bottom: 34px; | 34 margin-bottom: 34px; |
| 35 height: 366px; | 35 height: 366px; |
| 36 -webkit-user-select: none; | 36 -webkit-user-select: none; |
| 37 -webkit-transition: height .15s, opacity .15s; | 37 -webkit-transition: height .15s, opacity .15s; |
| 38 } | 38 } |
| 39 | 39 |
| 40 .thumbnail-container { | 40 .thumbnail-container { |
| 41 position: absolute; | 41 position: absolute; |
| 42 -webkit-transition: top .15s, left .15s; | |
| 43 color: black; | 42 color: black; |
| 44 text-decoration: none; | 43 text-decoration: none; |
| 45 -webkit-transition: left .15s, top .15s; | 44 -webkit-transition: left .15s, right .15s, top .15s; |
| 46 } | 45 } |
| 47 | 46 |
| 48 .list > .thumbnail-container { | 47 .list > .thumbnail-container { |
| 49 -webkit-transition: left .15s, top .15s, width .15s; | 48 overflow: hidden; |
| 50 overflow: hidden; | |
| 51 } | 49 } |
| 52 | 50 |
| 53 /* hide outline in thumbnail view */ | 51 /* hide outline in thumbnail view */ |
| 54 :not(.list) > .thumbnail-container:focus { | 52 :not(.list) > .thumbnail-container:focus { |
| 55 outline: none; | 53 outline: none; |
| 56 } | 54 } |
| 57 | 55 |
| 58 .thumbnail, | 56 .thumbnail, |
| 59 .thumbnail-container > .title { | 57 .thumbnail-container > .title { |
| 60 width: 207px; /* natural size is 196 */ | 58 width: 207px; /* natural size is 196 */ |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 285 |
| 288 .list > .dragging > .title { | 286 .list > .dragging > .title { |
| 289 opacity: 1; | 287 opacity: 1; |
| 290 } | 288 } |
| 291 | 289 |
| 292 .hide { | 290 .hide { |
| 293 opacity: 0 !important; | 291 opacity: 0 !important; |
| 294 visibility: hidden !important; | 292 visibility: hidden !important; |
| 295 } | 293 } |
| 296 | 294 |
| 295 .collapsed { |
| 296 height: 0 !important; |
| 297 opacity: 0; |
| 298 } |
| 299 |
| 297 @-webkit-keyframes 'fade-in' { | 300 @-webkit-keyframes 'fade-in' { |
| 298 0% { | 301 0% { |
| 299 opacity: 0; | 302 opacity: 0; |
| 300 } | 303 } |
| 301 | 304 |
| 302 100% { | 305 100% { |
| 303 opacity: 1; | 306 opacity: 1; |
| 304 } | 307 } |
| 305 } | 308 } |
| 306 | 309 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 662 } |
| 660 | 663 |
| 661 #option-menu > [command='hide']:before { | 664 #option-menu > [command='hide']:before { |
| 662 background-image: url(chrome://theme/newtab_checkbox_black); | 665 background-image: url(chrome://theme/newtab_checkbox_black); |
| 663 } | 666 } |
| 664 | 667 |
| 665 #option-menu > [selected][command='hide']:before { | 668 #option-menu > [selected][command='hide']:before { |
| 666 background-image: url(chrome://theme/newtab_checkbox_white); | 669 background-image: url(chrome://theme/newtab_checkbox_white); |
| 667 } | 670 } |
| 668 | 671 |
| 669 /* Hard code thumbnail positions to improve initial layout speed */ | 672 #most-visited.list { |
| 670 #t0, #t4, | 673 height: 294px; |
| 671 html[dir='rtl'] #t3, | |
| 672 html[dir='rtl'] #t7 { | |
| 673 left: 0; | |
| 674 } | 674 } |
| 675 | 675 |
| 676 #t1, #t5, | 676 .list > .thumbnail-container { |
| 677 html[dir='rtl'] #t2, | 677 max-width: 920px; |
| 678 html[dir='rtl'] #t6 { | |
| 679 left: 235px; | |
| 680 } | |
| 681 | |
| 682 #t2, #t6, | |
| 683 html[dir='rtl'] #t1, | |
| 684 html[dir='rtl'] #t5 { | |
| 685 left: 470px; | |
| 686 } | |
| 687 | |
| 688 #t3, #t7, | |
| 689 html[dir='rtl'] #t0, | |
| 690 html[dir='rtl'] #t4 { | |
| 691 left: 705px; | |
| 692 } | |
| 693 | |
| 694 #t4, #t5, #t6, #t7 { | |
| 695 top: 183px; | |
| 696 } | 678 } |
| 697 | 679 |
| 698 /* tip line */ | 680 /* tip line */ |
| 699 #tip-line { | 681 #tip-line { |
| 700 margin: 10px 0; | 682 margin: 10px 0; |
| 701 text-align: center; | 683 text-align: center; |
| 702 } | 684 } |
| 703 | 685 |
| 704 #themes-promo { | 686 #themes-promo { |
| 705 position: absolute; | 687 position: absolute; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 736 } | 718 } |
| 737 | 719 |
| 738 .thumbnail-container > .title { | 720 .thumbnail-container > .title { |
| 739 height: auto; | 721 height: auto; |
| 740 } | 722 } |
| 741 | 723 |
| 742 .thumbnail-wrapper { | 724 .thumbnail-wrapper { |
| 743 -webkit-background-size: 150px 93px; | 725 -webkit-background-size: 150px 93px; |
| 744 } | 726 } |
| 745 | 727 |
| 728 .list > .thumbnail-container { |
| 729 max-width: 692px; |
| 730 } |
| 731 |
| 746 #notification > * { | 732 #notification > * { |
| 747 max-width: 300px; | 733 max-width: 300px; |
| 748 } | 734 } |
| 749 | 735 |
| 750 #notification > span > .blacklist-title { | 736 #notification > span > .blacklist-title { |
| 751 max-width: 15ex; | 737 max-width: 15ex; |
| 752 } | 738 } |
| 753 | |
| 754 #t0, #t4, | |
| 755 html[dir='rtl'] #t3, | |
| 756 html[dir='rtl'] #t7 { | |
| 757 left: 0; | |
| 758 } | |
| 759 | |
| 760 #t1, #t5, | |
| 761 html[dir='rtl'] #t2, | |
| 762 html[dir='rtl'] #t6 { | |
| 763 left: 178px; | |
| 764 } | |
| 765 | |
| 766 #t2, #t6, | |
| 767 html[dir='rtl'] #t1, | |
| 768 html[dir='rtl'] #t5 { | |
| 769 left: 356px; | |
| 770 } | |
| 771 | |
| 772 #t3, #t7, | |
| 773 html[dir='rtl'] #t0, | |
| 774 html[dir='rtl'] #t4 { | |
| 775 left: 534px; | |
| 776 } | |
| 777 | |
| 778 #t4, #t5, #t6, #t7 { | |
| 779 top: 147px; | |
| 780 } | |
| 781 } | 739 } |
| OLD | NEW |