Bug 1330611 - [compact layout] position thumbnails more towards the top in default tiles. r=Gijs a=lizzard
authorDão Gottwald <dao@mozilla.com>
Thu, 12 Jan 2017 13:08:55 +0100
changeset 462184 39644d68fc6dfae3c22b948d8edacdd1a0bd7b9f
parent 462183 24aa31d493ed8cdfcf77d4d39693ec8f83ef29d7
child 462185 31ebd0e871c54c2e212d2fcc30adaf986bcae367
push id41678
push userfelipc@gmail.com
push dateMon, 16 Jan 2017 20:19:38 +0000
reviewersGijs, lizzard
bugs1330611
milestone51.0
Bug 1330611 - [compact layout] position thumbnails more towards the top in default tiles. r=Gijs a=lizzard
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 */