| 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 18 matching lines...) Expand all Loading... |
| 29 -webkit-transition: none !important; | 29 -webkit-transition: none !important; |
| 30 -webkit-animation: none !important; | 30 -webkit-animation: none !important; |
| 31 } | 31 } |
| 32 | 32 |
| 33 /* Most Visited */ | 33 /* Most Visited */ |
| 34 | 34 |
| 35 #most-visited { | 35 #most-visited { |
| 36 position: relative; | 36 position: relative; |
| 37 padding: 0; | 37 padding: 0; |
| 38 margin-bottom: 34px; | 38 margin-bottom: 34px; |
| 39 height: 372px; |
| 39 -webkit-user-select: none; | 40 -webkit-user-select: none; |
| 40 -webkit-transition: height .5s, opacity .5s; | 41 -webkit-transition: height .5s, opacity .5s; |
| 41 } | 42 } |
| 42 | 43 |
| 44 .small #most-visited { |
| 45 height: 294px; |
| 46 } |
| 47 |
| 43 @-webkit-keyframes 'thumbnail-enter' { | 48 @-webkit-keyframes 'thumbnail-enter' { |
| 44 /* 2.5s */ | 49 /* 2.5s */ |
| 45 0%, 20% { | 50 0%, 20% { |
| 46 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); | 51 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); |
| 47 -webkit-border-radius: 4px; | 52 -webkit-border-radius: 4px; |
| 48 } | 53 } |
| 49 | 54 |
| 50 100% { | 55 100% { |
| 51 -webkit-border-top-left-radius: 0; | 56 -webkit-border-top-left-radius: 0; |
| 52 -webkit-border-top-right-radius: 0; | 57 -webkit-border-top-right-radius: 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 82 | 87 |
| 83 .thumbnail-container { | 88 .thumbnail-container { |
| 84 position: absolute; | 89 position: absolute; |
| 85 -webkit-transition: top .5s, left .5s; | 90 -webkit-transition: top .5s, left .5s; |
| 86 color: black; | 91 color: black; |
| 87 text-decoration: none; | 92 text-decoration: none; |
| 88 -webkit-transition: left .5s, top .5s; | 93 -webkit-transition: left .5s, top .5s; |
| 89 } | 94 } |
| 90 | 95 |
| 91 .thumbnail, | 96 .thumbnail, |
| 92 .thumbnail-container .title { | 97 .thumbnail-container > .title { |
| 93 width: 212px; /* natural size is 196 */ | 98 width: 212px; /* natural size is 196 */ |
| 94 height: 132px; /* 136 */ | 99 height: 132px; /* 136 */ |
| 95 -webkit-transition: width .5s, height .5s; | 100 -webkit-transition: width .5s, height .5s; |
| 96 } | 101 } |
| 97 | 102 |
| 98 .small .thumbnail, | 103 .small .thumbnail, |
| 99 .small .thumbnail-container .title { | 104 .small .thumbnail-container > .title { |
| 100 width: 150px; | 105 width: 150px; |
| 101 height: 93px; | 106 height: 93px; |
| 102 } | 107 } |
| 103 | 108 |
| 104 .thumbnail-wrapper { | 109 .thumbnail-wrapper { |
| 105 display: block; | 110 display: block; |
| 106 -webkit-background-size: 212px 132px; | 111 -webkit-background-size: 212px 132px; |
| 107 background: no-repeat 4px 4px; | 112 background: no-repeat 4px 4px; |
| 108 background-color: white; | 113 background-color: white; |
| 109 -webkit-border-radius: 5px; | 114 -webkit-border-radius: 5px; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 123 } | 128 } |
| 124 | 129 |
| 125 .filler .thumbnail-wrapper { | 130 .filler .thumbnail-wrapper { |
| 126 visibility: inherit; | 131 visibility: inherit; |
| 127 border: 1px solid hsl(0, 0%, 90%); | 132 border: 1px solid hsl(0, 0%, 90%); |
| 128 background-color: hsl(0, 0%, 95%); | 133 background-color: hsl(0, 0%, 95%); |
| 129 -webkit-border-radius: 2px; | 134 -webkit-border-radius: 2px; |
| 130 display: block; | 135 display: block; |
| 131 } | 136 } |
| 132 | 137 |
| 133 .filler .thumbnail-wrapper .thumbnail { | 138 .filler .thumbnail { |
| 134 visibility: visible; | 139 visibility: visible; |
| 135 border-color: hsl(0, 0%, 90%); | 140 border-color: hsl(0, 0%, 90%); |
| 136 background-color: hsl(0, 0%, 95%); | 141 background-color: hsl(0, 0%, 95%); |
| 137 } | 142 } |
| 138 | 143 |
| 139 .edit-bar { | 144 .edit-bar { |
| 140 opacity: 0; | 145 opacity: 0; |
| 141 pointer-events: none; | 146 pointer-events: none; |
| 142 display: -webkit-box; | 147 display: -webkit-box; |
| 143 -webkit-box-orient: horizontal; | 148 -webkit-box-orient: horizontal; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 .edit-bar > .remove:hover { | 215 .edit-bar > .remove:hover { |
| 211 background-image: url(chrome://theme/newtab_close_h); | 216 background-image: url(chrome://theme/newtab_close_h); |
| 212 } | 217 } |
| 213 | 218 |
| 214 .edit-bar > .remove:active { | 219 .edit-bar > .remove:active { |
| 215 background-image: url(chrome://theme/newtab_close_p); | 220 background-image: url(chrome://theme/newtab_close_p); |
| 216 } | 221 } |
| 217 | 222 |
| 218 :link, | 223 :link, |
| 219 :visited, | 224 :visited, |
| 220 .link, | 225 .link { |
| 221 .thumbnail-container a { | |
| 222 cursor: pointer; | 226 cursor: pointer; |
| 223 text-decoration: underline; | 227 text-decoration: underline; |
| 224 color: hsl(213, 90%, 24%); | 228 color: hsl(213, 90%, 24%); |
| 225 } | 229 } |
| 226 | 230 |
| 227 .thumbnail-container .title, | 231 .thumbnail-container > .title, |
| 228 .small .thumbnail-container .title { | 232 .small .thumbnail-container > .title { |
| 229 line-height: 16px; | 233 line-height: 16px; |
| 230 height: 16px; | 234 height: 16px; |
| 231 margin: 0; | 235 margin: 0; |
| 232 margin-top: 4px; | 236 margin-top: 4px; |
| 233 font-size: 100%; | 237 font-size: 100%; |
| 234 font-weight:normal; | 238 font-weight:normal; |
| 235 padding: 0 3px; | 239 padding: 0 3px; |
| 236 opacity: 1; | 240 opacity: 1; |
| 237 -webkit-transition: opacity .5s; | 241 -webkit-transition: opacity .5s; |
| 238 color: black; | 242 color: black; |
| 239 } | 243 } |
| 240 | 244 |
| 241 .thumbnail-container .title div { | 245 .thumbnail-container > .title > div { |
| 242 white-space: nowrap; | 246 white-space: nowrap; |
| 243 overflow: hidden; | 247 overflow: hidden; |
| 244 text-overflow: ellipsis; | 248 text-overflow: ellipsis; |
| 245 | 249 |
| 246 background: no-repeat 0 50%; | 250 background: no-repeat 0 50%; |
| 247 -webkit-background-size: 16px; | 251 -webkit-background-size: 16px; |
| 248 padding-left: 20px; /* we cannot use padding start here because even if we set | 252 padding-left: 20px; /* we cannot use padding start here because even if we set |
| 249 the direction we always want the icon on the same side | 253 the direction we always want the icon on the same side |
| 250 */ | 254 */ |
| 251 padding-right: 0; | 255 padding-right: 0; |
| 252 } | 256 } |
| 253 | 257 |
| 254 html[dir=rtl] .thumbnail-container .title div { | 258 html[dir=rtl] .thumbnail-container > .title > div { |
| 255 background-position-x: 100%; | 259 background-position-x: 100%; |
| 256 padding-left: 0; | 260 padding-left: 0; |
| 257 padding-right: 20px; | 261 padding-right: 20px; |
| 258 text-align: right; | 262 text-align: right; |
| 259 } | 263 } |
| 260 | 264 |
| 261 .thumbnail { | 265 .thumbnail { |
| 262 border: 3px solid hsla(213, 63%, 93%, 1); | 266 border: 3px solid hsla(213, 63%, 93%, 1); |
| 263 padding: 1px; | 267 padding: 1px; |
| 264 -webkit-border-radius: 5px; | 268 -webkit-border-radius: 5px; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 280 -webkit-border-top-left-radius: 0; | 284 -webkit-border-top-left-radius: 0; |
| 281 -webkit-border-top-right-radius: 0; | 285 -webkit-border-top-right-radius: 0; |
| 282 | 286 |
| 283 background-image: -webkit-gradient(linear, left top, left bottom, | 287 background-image: -webkit-gradient(linear, left top, left bottom, |
| 284 from(hsla(0, 0%, 0%, 0)), | 288 from(hsla(0, 0%, 0%, 0)), |
| 285 color-stop(0.85, hsla(0, 0%, 47%, 0)), | 289 color-stop(0.85, hsla(0, 0%, 47%, 0)), |
| 286 to(hsla(0, 0%, 47%, 0.2)) | 290 to(hsla(0, 0%, 47%, 0.2)) |
| 287 ); | 291 ); |
| 288 } | 292 } |
| 289 | 293 |
| 290 .thumbnail-container:hover .edit-mode-border { | 294 .thumbnail-container:hover > .edit-mode-border { |
| 291 -webkit-animation: 'edit-mode-border-enter' 2.5s; | 295 -webkit-animation: 'edit-mode-border-enter' 2.5s; |
| 292 background-color: hsla(213, 66%, 57%, 1); | 296 background-color: hsla(213, 66%, 57%, 1); |
| 293 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); | 297 -webkit-box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5); |
| 294 } | 298 } |
| 295 | 299 |
| 296 .dragging { | 300 .dragging { |
| 297 -webkit-transition: none; | 301 -webkit-transition: none; |
| 298 } | 302 } |
| 299 | 303 |
| 300 .dragging .title { | 304 .dragging > .title { |
| 301 opacity: 0; | 305 opacity: 0 !important; |
| 302 } | 306 } |
| 303 | 307 |
| 304 .list .dragging .title { | 308 .list > .dragging > .title { |
| 305 opacity: 1; | 309 opacity: 1; |
| 306 } | 310 } |
| 307 | 311 |
| 308 .hide { | 312 .hide { |
| 309 opacity: 0 !important; | 313 opacity: 0 !important; |
| 310 visibility: hidden !important; | 314 visibility: hidden !important; |
| 311 } | 315 } |
| 312 | 316 |
| 313 @-webkit-keyframes 'fade-in' { | 317 @-webkit-keyframes 'fade-in' { |
| 314 0% { | 318 0% { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 .list .thumbnail, | 371 .list .thumbnail, |
| 368 .list .edit-bar { | 372 .list .edit-bar { |
| 369 display: none; | 373 display: none; |
| 370 } | 374 } |
| 371 | 375 |
| 372 .list .title, | 376 .list .title, |
| 373 .small .list .title { | 377 .small .list .title { |
| 374 width: auto; | 378 width: auto; |
| 375 } | 379 } |
| 376 | 380 |
| 377 .list .thumbnail-container { | 381 .list > .thumbnail-container { |
| 378 -webkit-box-sizing: border-box; | 382 -webkit-box-sizing: border-box; |
| 379 } | 383 } |
| 380 | 384 |
| 381 .list .title, | 385 .list .title, |
| 382 .small .list .title { | 386 .small .list .title { |
| 383 font-size: 140%; | 387 font-size: 140%; |
| 384 line-height: 40px; | 388 line-height: 40px; |
| 385 height: 40px; | 389 height: 40px; |
| 386 color: hsl(213, 27%, 68%); | 390 color: hsl(213, 27%, 68%); |
| 387 text-decoration: underline; | 391 text-decoration: underline; |
| 388 } | 392 } |
| 389 | 393 |
| 390 .list .title div { | 394 .list .title > div { |
| 391 color: rgb(6, 45, 117); | 395 color: rgb(6, 45, 117); |
| 392 } | 396 } |
| 393 | 397 |
| 394 .section { | 398 .section { |
| 395 background: white; | 399 background: white; |
| 396 -webkit-border-radius: 4px; | 400 -webkit-border-radius: 4px; |
| 397 white-space: nowrap; | 401 white-space: nowrap; |
| 398 text-overflow: ellipsis; | 402 text-overflow: ellipsis; |
| 399 border: 1px solid hsl(213, 65%, 92%); | 403 border: 1px solid hsl(213, 65%, 92%); |
| 400 padding-bottom: 5px; | 404 padding-bottom: 5px; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 -webkit-user-select: none; | 526 -webkit-user-select: none; |
| 523 text-align: right; | 527 text-align: right; |
| 524 position: relative; | 528 position: relative; |
| 525 top: 35px; | 529 top: 35px; |
| 526 } | 530 } |
| 527 | 531 |
| 528 html[dir='rtl'] #view-toolbar { | 532 html[dir='rtl'] #view-toolbar { |
| 529 text-align: left; | 533 text-align: left; |
| 530 } | 534 } |
| 531 | 535 |
| 532 #view-toolbar input { | 536 #view-toolbar > input { |
| 533 -webkit-appearance: none; | 537 -webkit-appearance: none; |
| 534 background-color: transparent; | 538 background-color: transparent; |
| 535 width: 19px; | 539 width: 19px; |
| 536 height: 17px; | 540 height: 17px; |
| 537 margin: 0; | 541 margin: 0; |
| 538 border: 0; | 542 border: 0; |
| 539 padding: 0; | 543 padding: 0; |
| 540 vertical-align: top; | 544 vertical-align: top; |
| 541 -webkit-margin-start: 5px; | 545 -webkit-margin-start: 5px; |
| 542 } | 546 } |
| 543 | 547 |
| 544 #lower-sections { | 548 #lower-sections { |
| 545 position: relative; | 549 position: relative; |
| 546 overflow: hidden; | 550 overflow: hidden; |
| 547 -webkit-transition: height .5s, width .5s, opacity .5s; | 551 -webkit-transition: height .5s, width .5s, opacity .5s; |
| 548 white-space: nowrap; | 552 white-space: nowrap; |
| 549 } | 553 } |
| 550 | 554 |
| 551 #lower-sections .section { | 555 #lower-sections > .section { |
| 552 -webkit-transition: width .5s, opacity .5s, left .5s; | 556 -webkit-transition: width .5s, opacity .5s, left .5s; |
| 553 -webkit-box-sizing: border-box; | 557 -webkit-box-sizing: border-box; |
| 554 width: 460px; /* Set default size so we don't have to do a js layout at | 558 width: 460px; /* Set default size so we don't have to do a js layout at |
| 555 load */ | 559 load */ |
| 556 } | 560 } |
| 557 | 561 |
| 558 .small #lower-sections .section { | 562 .small #lower-sections > .section { |
| 559 width: 336px; /* Same here, see above */ | 563 width: 336px; /* Same here, see above */ |
| 560 } | 564 } |
| 561 | 565 |
| 562 #lower-sections .spacer { | 566 #lower-sections .spacer { |
| 563 width: 20px; | 567 width: 20px; |
| 564 -webkit-transition: width .5s; | 568 -webkit-transition: width .5s; |
| 565 display: inline-block; | 569 display: inline-block; |
| 566 } | 570 } |
| 567 | 571 |
| 568 #thumb-checkbox { | 572 #thumb-checkbox { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 #option-menu > div { | 650 #option-menu > div { |
| 647 padding: 3px 8px; | 651 padding: 3px 8px; |
| 648 overflow: hidden; | 652 overflow: hidden; |
| 649 text-overflow: ellipsis; | 653 text-overflow: ellipsis; |
| 650 } | 654 } |
| 651 | 655 |
| 652 #option-menu > [selected] { | 656 #option-menu > [selected] { |
| 653 background-color: hsla(213, 66%, 57%, 1); | 657 background-color: hsla(213, 66%, 57%, 1); |
| 654 color: white; | 658 color: white; |
| 655 } | 659 } |
| OLD | NEW |