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 353554 41f18ace160f8aa99ecb68a243d836ece87342b9
parent 353553 d51ff865f7da04783da5431d287ed24d57ee5a0e
child 353555 8d0ece73d3278ee81807f7d5dcdd402f994954dc
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lizzard
bugs1330611
milestone52.0a2
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 */