| 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 height: 100%; | 8 height: 100%; |
| 9 overflow: auto; | 9 overflow: auto; |
| 10 -webkit-user-select: none; | 10 -webkit-user-select: none; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 background-position-x: 100%; | 37 background-position-x: 100%; |
| 38 } | 38 } |
| 39 | 39 |
| 40 html[anim=false] *, | 40 html[anim=false] *, |
| 41 .no-anim, .no-anim *, | 41 .no-anim, .no-anim *, |
| 42 .loading * { | 42 .loading * { |
| 43 -webkit-transition: none !important; | 43 -webkit-transition: none !important; |
| 44 -webkit-animation: none !important; | 44 -webkit-animation: none !important; |
| 45 } | 45 } |
| 46 | 46 |
| 47 /* Most Visited */ | |
| 48 | |
| 49 #most-visited { | |
| 50 position: relative; | |
| 51 padding: 0; | |
| 52 height: 366px; | |
| 53 margin-top: -10px; | |
| 54 -webkit-user-select: none; | |
| 55 -webkit-transition: height .15s, opacity .15s; | |
| 56 } | |
| 57 | |
| 58 .thumbnail-container { | |
| 59 position: absolute; | |
| 60 color: black; | |
| 61 text-decoration: none; | |
| 62 -webkit-transition: left .15s, right .15s, top .15s; | |
| 63 } | |
| 64 | |
| 65 .list > .thumbnail-container { | |
| 66 overflow: hidden; | |
| 67 } | |
| 68 | |
| 69 /* hide outline in thumbnail view */ | |
| 70 :not(.list) > .thumbnail-container:focus { | |
| 71 outline: none; | |
| 72 } | |
| 73 | |
| 74 .thumbnail, | |
| 75 .thumbnail-container > .title { | |
| 76 width: 207px; /* natural size is 196 */ | |
| 77 height: 129px; /* 136 */ | |
| 78 -webkit-transition: width .15s, height .15s; | |
| 79 } | |
| 80 | |
| 81 .thumbnail-wrapper { | |
| 82 display: block; | |
| 83 background-size: 212px 132px; | |
| 84 background: no-repeat 4px 4px; | |
| 85 background-color: white; | |
| 86 border-radius: 5px; | |
| 87 -webkit-transition: background-size .15s; | |
| 88 position: relative; | |
| 89 } | |
| 90 | |
| 91 .filler * { | |
| 92 visibility: hidden; | |
| 93 } | |
| 94 | |
| 95 .filler { | |
| 96 pointer-events: none; | |
| 97 } | |
| 98 | |
| 99 .filler .thumbnail-wrapper { | |
| 100 visibility: visible; | |
| 101 border: 3px solid hsl(213, 60%, 92%); | |
| 102 } | |
| 103 | |
| 104 .list > .filler * { | |
| 105 visibility: hidden !important; | |
| 106 } | |
| 107 | |
| 108 .filler .thumbnail { | |
| 109 visibility: inherit; | |
| 110 border: 1px solid white; | |
| 111 padding: 0; | |
| 112 background-color: hsl(213, 60%, 92%); | |
| 113 } | |
| 114 | |
| 115 .edit-bar { | |
| 116 display: -webkit-box; | |
| 117 -webkit-box-orient: horizontal; | |
| 118 -webkit-box-align: stretch; | |
| 119 padding: 3px; | |
| 120 padding-bottom: 0; | |
| 121 height: 17px; /* 23 - 2 * 3 */ | |
| 122 cursor: move; | |
| 123 font-size: 100%; | |
| 124 line-height: 17px; | |
| 125 background: hsl(213, 54%, 95%); | |
| 126 border-top-left-radius: 4px; | |
| 127 border-top-right-radius: 4px; | |
| 128 position: relative; | |
| 129 margin-top: 21px; | |
| 130 margin-bottom: -21px; | |
| 131 -webkit-transition: margin .15s, background .15s; | |
| 132 } | |
| 133 | |
| 134 .edit-bar > * { | |
| 135 display: block; | |
| 136 position: relative; | |
| 137 } | |
| 138 | |
| 139 .thumbnail-container:focus .edit-bar, | |
| 140 .thumbnail-container:hover .edit-bar { | |
| 141 margin-top: 0; | |
| 142 margin-bottom: 0; | |
| 143 -webkit-transition-delay: .5s, 0s; | |
| 144 | |
| 145 /* We need background-color as well to get the fade out animation correct */ | |
| 146 background-color: hsl(213, 66%, 57%); | |
| 147 background-image: -webkit-gradient(linear, left top, left bottom, | |
| 148 from(hsl(213, 87%, 67%)), | |
| 149 to(hsl(213, 66%, 57%))); | |
| 150 } | |
| 151 | |
| 152 .edit-bar > .spacer { | |
| 153 -webkit-box-flex: 1; | |
| 154 } | |
| 155 | |
| 156 .edit-bar > .pin, | |
| 157 .edit-bar > .remove { | |
| 158 width: 16px; | |
| 159 height: 16px; | |
| 160 cursor: pointer; | |
| 161 background-image: no-repeat 50% 50%; | |
| 162 } | |
| 163 | |
| 164 .edit-bar > .pin { | |
| 165 background-image: url(chrome://theme/newtab_pin_off); | |
| 166 } | |
| 167 | |
| 168 .edit-bar > .pin:hover { | |
| 169 background-image: url(chrome://theme/newtab_pin_off_h); | |
| 170 } | |
| 171 | |
| 172 .edit-bar > .pin:active { | |
| 173 background-image: url(chrome://theme/newtab_pin_off_p); | |
| 174 } | |
| 175 | |
| 176 .pinned .edit-bar > .pin { | |
| 177 background-image: url(chrome://theme/newtab_pin_on); | |
| 178 } | |
| 179 | |
| 180 .pinned .edit-bar > .pin:hover { | |
| 181 background-image: url(chrome://theme/newtab_pin_on_h); | |
| 182 } | |
| 183 | |
| 184 .pinned .edit-bar > .pin:active { | |
| 185 background-image: url(chrome://theme/newtab_pin_on_p); | |
| 186 } | |
| 187 | |
| 188 .edit-bar > .remove { | |
| 189 background-image: url(chrome://theme/newtab_close); | |
| 190 } | |
| 191 | |
| 192 .edit-bar > .remove:hover { | |
| 193 background-image: url(chrome://theme/newtab_close_h); | |
| 194 } | |
| 195 | |
| 196 .edit-bar > .remove:active { | |
| 197 background-image: url(chrome://theme/newtab_close_p); | |
| 198 } | |
| 199 | |
| 200 :link, | 47 :link, |
| 201 :visited, | 48 :visited, |
| 202 .link { | 49 .link { |
| 203 cursor: pointer; | 50 cursor: pointer; |
| 204 text-decoration: underline; | 51 text-decoration: underline; |
| 205 color: hsla(213, 90%, 24%, 0.33333); | 52 color: hsla(213, 90%, 24%, 0.33333); |
| 206 -webkit-appearance: none; | 53 -webkit-appearance: none; |
| 207 border: 0; | 54 border: 0; |
| 208 background: none; | 55 background: none; |
| 209 } | 56 } |
| 210 | 57 |
| 211 .link-color { | 58 .link-color { |
| 212 color: hsl(213, 90%, 24%); | 59 color: hsl(213, 90%, 24%); |
| 213 text-decoration: none; | 60 text-decoration: none; |
| 214 } | 61 } |
| 215 | 62 |
| 216 .thumbnail-container { | |
| 217 color: hsl(213, 90%, 24%); | |
| 218 text-decoration: none; | |
| 219 } | |
| 220 | |
| 221 .thumbnail-container > .title { | |
| 222 line-height: 16px; | |
| 223 height: 16px; | |
| 224 margin: 0; | |
| 225 margin-top: 4px; | |
| 226 font-size: 100%; | |
| 227 font-weight: normal; | |
| 228 padding: 0 3px; | |
| 229 opacity: 1; | |
| 230 -webkit-transition: opacity .15s, width .15s; | |
| 231 color: black; | |
| 232 } | |
| 233 | |
| 234 .thumbnail-container > .title > div { | |
| 235 white-space: nowrap; | |
| 236 overflow: hidden; | |
| 237 text-overflow: ellipsis; | |
| 238 background: no-repeat 0 50%; | |
| 239 background-size: 16px; | |
| 240 padding-left: 20px; /* we cannot use padding start here because even if we set | |
| 241 the direction we always want the icon on the same side | |
| 242 */ | |
| 243 padding-right: 0; | |
| 244 } | |
| 245 | |
| 246 html[dir=rtl] .thumbnail-container > .title > div { | |
| 247 background-position-x: 100%; | |
| 248 padding-left: 0; | |
| 249 padding-right: 20px; | |
| 250 text-align: right; | |
| 251 } | |
| 252 | |
| 253 .thumbnail { | |
| 254 border: 3px solid hsl(213, 63%, 93%); | |
| 255 padding: 1px; | |
| 256 border-radius: 5px; | |
| 257 display: block; | |
| 258 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0); | |
| 259 -webkit-transition: width .15s, height .15s, border-color .15s, | |
| 260 border-radius .15s, -webkit-box-shadow .15s; | |
| 261 } | |
| 262 | |
| 263 .edit-mode-border { | |
| 264 border-radius: 4px; | |
| 265 | |
| 266 /* when dragged over we move this */ | |
| 267 position: relative; | |
| 268 -webkit-transition: top .15s, left .15s; | |
| 269 } | |
| 270 | |
| 271 .thumbnail-container:focus .thumbnail, | |
| 272 .thumbnail-container:hover .thumbnail { | |
| 273 border-color: hsl(213, 66%, 57%); | |
| 274 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0); | |
| 275 -webkit-border-top-left-radius: 0; | |
| 276 -webkit-border-top-right-radius: 0; | |
| 277 | |
| 278 background-image: -webkit-gradient(linear, left top, left bottom, | |
| 279 from(hsla(0, 0%, 0%, 0)), | |
| 280 color-stop(0.85, hsla(0, 0%, 47%, 0)), | |
| 281 to(hsla(0, 0%, 47%, 0.2)) | |
| 282 ); | |
| 283 | |
| 284 /* delay border radius transition as much as the edit bar slide delay */ | |
| 285 -webkit-transition-delay: 0, 0, 0, .5s, 0; | |
| 286 } | |
| 287 | |
| 288 .thumbnail-container:focus > .edit-mode-border, | |
| 289 .thumbnail-container:hover > .edit-mode-border { | |
| 290 background-color: hsl(213, 66%, 57%); | |
| 291 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); | |
| 292 } | |
| 293 | |
| 294 .dragging, | |
| 295 .dragging * { | |
| 296 -webkit-transition: none !important; | |
| 297 } | |
| 298 | |
| 299 .dragging > .title { | |
| 300 opacity: 0; | |
| 301 } | |
| 302 | |
| 303 .list > .dragging > .title { | |
| 304 opacity: 1; | |
| 305 } | |
| 306 | |
| 307 .hide { | 63 .hide { |
| 308 opacity: 0 !important; | 64 opacity: 0 !important; |
| 309 visibility: hidden !important; | 65 visibility: hidden !important; |
| 310 pointer-events: none; | 66 pointer-events: none; |
| 311 } | 67 } |
| 312 | 68 |
| 313 @-webkit-keyframes 'fade-in' { | |
| 314 0% { | |
| 315 opacity: 0; | |
| 316 } | |
| 317 | |
| 318 100% { | |
| 319 opacity: 1; | |
| 320 } | |
| 321 } | |
| 322 | |
| 323 .fade-in { | |
| 324 -webkit-animation: 'fade-in' .15s; | |
| 325 } | |
| 326 | |
| 327 /* Notification */ | 69 /* Notification */ |
| 328 | 70 |
| 329 #notification { | 71 #notification { |
| 330 position: relative; | 72 position: relative; |
| 331 background-color: hsl(52, 100%, 80%); | 73 background-color: hsl(52, 100%, 80%); |
| 332 border: 1px solid rgb(211, 211, 211); | 74 border: 1px solid rgb(211, 211, 211); |
| 333 border-radius: 6px; | 75 border-radius: 6px; |
| 334 padding: 7px 15px; | 76 padding: 7px 15px; |
| 335 white-space: nowrap; | 77 white-space: nowrap; |
| 336 display: table; | 78 display: table; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 } | 119 } |
| 378 | 120 |
| 379 #notification > span > .blacklist-title { | 121 #notification > span > .blacklist-title { |
| 380 display: inline-block; | 122 display: inline-block; |
| 381 max-width: 30ex; | 123 max-width: 30ex; |
| 382 overflow: hidden; | 124 overflow: hidden; |
| 383 text-overflow: ellipsis; | 125 text-overflow: ellipsis; |
| 384 white-space: nowrap; | 126 white-space: nowrap; |
| 385 } | 127 } |
| 386 | 128 |
| 387 /* List mode */ | |
| 388 | |
| 389 .list .thumbnail, | |
| 390 .list .edit-bar { | |
| 391 display: none; | |
| 392 } | |
| 393 | |
| 394 .list > .thumbnail-container { | |
| 395 -webkit-box-sizing: border-box; | |
| 396 } | |
| 397 | |
| 398 .list > .thumbnail-container > .title { | |
| 399 font-size: 120%; | |
| 400 line-height: 34px; | |
| 401 height: 34px; | |
| 402 color: hsl(213, 27%, 68%); | |
| 403 width: 100%; | |
| 404 } | |
| 405 | |
| 406 .list > .thumbnail-container { | |
| 407 color: hsl(213, 27%, 68%); | |
| 408 text-decoration: underline; | |
| 409 } | |
| 410 | |
| 411 .list > .thumbnail-container > .title > div { | |
| 412 text-decoration: none; | |
| 413 color: rgb(6, 45, 117); | |
| 414 } | |
| 415 | |
| 416 .item { | 129 .item { |
| 417 background: no-repeat 0% 50%; | 130 background: no-repeat 0% 50%; |
| 418 padding: 2px; | 131 padding: 2px; |
| 419 padding-left: 18px; | 132 padding-left: 18px; |
| 420 background-size: 16px; | 133 background-size: 16px; |
| 421 background-color: hsla(213, 63%, 93%, 0); | 134 background-color: hsla(213, 63%, 93%, 0); |
| 422 display: block; | 135 display: block; |
| 423 line-height: 20px; | 136 line-height: 20px; |
| 424 -webkit-box-sizing: border-box; | 137 -webkit-box-sizing: border-box; |
| 425 white-space: nowrap; | 138 white-space: nowrap; |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 } | 357 } |
| 645 | 358 |
| 646 #option-menu > [command=hide]:before { | 359 #option-menu > [command=hide]:before { |
| 647 background-image: url(chrome://theme/newtab_checkbox_black); | 360 background-image: url(chrome://theme/newtab_checkbox_black); |
| 648 } | 361 } |
| 649 | 362 |
| 650 #option-menu > [selected][command=hide]:before { | 363 #option-menu > [selected][command=hide]:before { |
| 651 background-image: url(chrome://theme/newtab_checkbox_white); | 364 background-image: url(chrome://theme/newtab_checkbox_white); |
| 652 } | 365 } |
| 653 | 366 |
| 654 #most-visited.list { | |
| 655 height: 294px; | |
| 656 } | |
| 657 | |
| 658 .list > .thumbnail-container { | |
| 659 max-width: 920px; | |
| 660 } | |
| 661 | |
| 662 #attribution { | 367 #attribution { |
| 663 margin: 10px 0; | 368 margin: 10px 0; |
| 664 } | 369 } |
| 665 | 370 |
| 666 /* promotions line and image */ | 371 /* promotions line and image */ |
| 667 #bottom-right-promo { | 372 #bottom-right-promo { |
| 668 position: absolute; | 373 position: absolute; |
| 669 bottom: 0; | 374 bottom: 0; |
| 670 right: 0; | 375 right: 0; |
| 671 display: block; | 376 display: block; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 #promo-close:active { | 456 #promo-close:active { |
| 752 background-image: url(chrome://theme/close_bar_p); | 457 background-image: url(chrome://theme/close_bar_p); |
| 753 } | 458 } |
| 754 | 459 |
| 755 #apps-section { | 460 #apps-section { |
| 756 padding: 10px 0px; | 461 padding: 10px 0px; |
| 757 border-top: 0; | 462 border-top: 0; |
| 758 } | 463 } |
| 759 | 464 |
| 760 #apps-launch-control { | 465 #apps-launch-control { |
| 761 margin-top: 0.5em; | 466 margin-top: 10px; |
| 762 } | 467 } |
| 763 | 468 |
| 764 #apps-launch-control input { | 469 #apps-launch-control input { |
| 765 position:relative; | 470 position: relative; |
| 766 top: 1px; | 471 top: 1px; |
| 767 margin-right: 0.2em; | 472 margin-right: 0.2em; |
| 768 margin-left: 1em; | 473 margin-left: 1em; |
| 769 } | 474 } |
| 770 | 475 |
| 771 #apps-section a { | 476 #apps-section a { |
| 772 -webkit-box-sizing: border-box; | 477 -webkit-box-sizing: border-box; |
| 773 -webkit-transition: background-color .15s; | 478 -webkit-transition: background-color .15s; |
| 774 background: rgba(255, 255, 255, 0) /* transparent white */ | 479 background: rgba(255, 255, 255, 0) /* transparent white */ |
| 775 no-repeat center 5px; | 480 no-repeat center 5px; |
| 776 background-size: 98px 98px; | 481 background-size: 98px 98px; |
| 777 border-radius: 10px; | 482 border-radius: 10px; |
| 778 color: black; | 483 color: black; |
| 779 display: inline-block; | 484 display: inline-block; |
| 780 font-weight: bold; | 485 font-weight: bold; |
| 781 margin: 5px; | 486 margin: 5px; |
| 782 margin-right:5px; | 487 margin-right:5px; |
| 783 overflow: hidden; | 488 overflow: hidden; |
| 784 padding: 5px; | 489 padding: 5px; |
| 785 padding-top: 108px; /* 98 + 5 + 5 */ | 490 padding-top: 108px; /* 98 + 5 + 5 */ |
| 786 text-align: center; | 491 text-align: center; |
| 787 text-decoration: none; | 492 text-decoration: none; |
| 788 text-overflow: ellipsis; | 493 text-overflow: ellipsis; |
| 789 white-space: nowrap; | 494 white-space: nowrap; |
| 790 width: 105px; /* 920 / 8 - margin * 2 */ | 495 width: 105px; /* 920 / 8 - margin * 2 */ |
| 791 } | 496 } |
| 792 | 497 |
| 793 #debug h2 { | 498 #debug > h2 { |
| 794 color: red; | 499 color: red; |
| 795 } | 500 } |
| 796 | 501 |
| 502 #debug > div { |
| 503 margin: 0; |
| 504 } |
| 505 |
| 797 .section.disabled { | 506 .section.disabled { |
| 798 display: none!important; | 507 display: none !important; |
| 799 } | 508 } |
| 800 | 509 |
| 801 .section + :not(.hidden) { | 510 .section + :not(.hidden) { |
| 802 border-top: 0; | 511 border-top: 0; |
| 803 } | 512 } |
| 804 | 513 |
| 805 .section > div { | 514 .section > div { |
| 806 margin-bottom: 10px; | 515 margin-bottom: 10px; |
| 807 } | 516 } |
| 808 | 517 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 } | 562 } |
| 854 | 563 |
| 855 #apps { | 564 #apps { |
| 856 margin-top: 10px; | 565 margin-top: 10px; |
| 857 } | 566 } |
| 858 | 567 |
| 859 .section > * { | 568 .section > * { |
| 860 font-size: 13px; | 569 font-size: 13px; |
| 861 } | 570 } |
| 862 | 571 |
| 863 #recently-closed { | |
| 864 border-bottom: 0; | |
| 865 } | |
| 866 | |
| 867 /* small */ | 572 /* small */ |
| 868 | 573 |
| 869 @media (max-width: 920px) { | 574 @media (max-width: 920px) { |
| 870 | 575 |
| 871 #main { | 576 #main { |
| 872 width: 692px; | 577 width: 692px; |
| 873 } | 578 } |
| 874 | 579 |
| 875 #most-visited { | |
| 876 height: 294px; | |
| 877 } | |
| 878 | |
| 879 .thumbnail, | |
| 880 .thumbnail-container > .title { | |
| 881 width: 150px; | |
| 882 height: 93px; | |
| 883 } | |
| 884 | |
| 885 .thumbnail-container > .title { | |
| 886 height: auto; | |
| 887 } | |
| 888 | |
| 889 .thumbnail-wrapper { | |
| 890 background-size: 150px 93px; | |
| 891 } | |
| 892 | |
| 893 .list > .thumbnail-container { | |
| 894 max-width: 692px; | |
| 895 } | |
| 896 | |
| 897 #notification > * { | 580 #notification > * { |
| 898 max-width: 300px; | 581 max-width: 300px; |
| 899 } | 582 } |
| 900 | 583 |
| 901 #notification > span > .blacklist-title { | 584 #notification > span > .blacklist-title { |
| 902 max-width: 15ex; | 585 max-width: 15ex; |
| 903 } | 586 } |
| 904 } | 587 } |
| OLD | NEW |