Bug 1330611 - [compact layout] position thumbnails more towards the top in default tiles. r?gijs draft
authorDão Gottwald <dao@mozilla.com>
Thu, 12 Jan 2017 13:08:55 +0100
changeset 459657 363cc914961a0db81a69da6b743a1582274a7ec4
parent 459611 97d6f73643940256c0eb61e384c49bf6f6c49847
child 541958 750552a1e38fca5f16b9ca663d37d8b463ac2528
push id41289
push userdgottwald@mozilla.com
push dateThu, 12 Jan 2017 12:09:40 +0000
reviewersgijs
bugs1330611
milestone53.0a1
Bug 1330611 - [compact layout] position thumbnails more towards the top in default tiles. r?gijs MozReview-Commit-ID: 8l8EyfBWpWw
browser/themes/shared/newtab/newTab.inc.css
--- a/browser/themes/shared/newtab/newTab.inc.css
+++ b/browser/themes/shared/newtab/newTab.inc.css
@@ -183,16 +183,20 @@ body.compact .newtab-thumbnail.placehold
 
 .newtab-site[type=affiliate] .newtab-thumbnail,
 .newtab-site[type=enhanced] .newtab-thumbnail,
 .newtab-site[type=organic] .newtab-thumbnail,
 .newtab-site[type=sponsored] .newtab-thumbnail {
   background-position: center center;
 }
 
+body.compact .newtab-site[type=affiliate] .newtab-thumbnail {
+  background-position: center 30%;
+}
+
 .newtab-site[type=affiliate] .newtab-thumbnail,
 body:not(.compact) .newtab-site[type=enhanced] .newtab-thumbnail,
 body:not(.compact) .newtab-site[type=organic] .newtab-thumbnail,
 body:not(.compact) .newtab-site[type=sponsored] .newtab-thumbnail {
   background-size: auto;
 }
 
 /* TITLES */