JGonera has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/65329


Change subject: Fix white gaps around the photo CTA image in article lists
......................................................................

Fix white gaps around the photo CTA image in article lists

This fixes the gaps in watchlist and nearby.

Change-Id: Idc55346b6376b1b4717bfa030c4654ce3732b233
---
M less/specials/watchlist.less
M stylesheets/specials/images/camera.png
M stylesheets/specials/watchlist.css
3 files changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/29/65329/1

diff --git a/less/specials/watchlist.less b/less/specials/watchlist.less
index 234bcb9..a6247b0 100644
--- a/less/specials/watchlist.less
+++ b/less/specials/watchlist.less
@@ -33,6 +33,7 @@
        background-repeat: no-repeat;
        background-position: center center;
        &.needsPhoto {
+               .background-size(100%, auto);
                background-image: url(images/camera.png);
        }
 }
diff --git a/stylesheets/specials/images/camera.png 
b/stylesheets/specials/images/camera.png
index bbeba03..4e34726 100644
--- a/stylesheets/specials/images/camera.png
+++ b/stylesheets/specials/images/camera.png
Binary files differ
diff --git a/stylesheets/specials/watchlist.css 
b/stylesheets/specials/watchlist.css
index 3e27574..3379f09 100644
--- a/stylesheets/specials/watchlist.css
+++ b/stylesheets/specials/watchlist.css
@@ -24,6 +24,12 @@
   background-position: center center;
 }
 .listThumb.needsPhoto {
+  /* use -webkit prefix for older android browsers eg. nexus 1 */
+
+  -moz-background-size: 100% auto;
+  -o-background-size: 100% auto;
+  -webkit-background-size: 100% auto;
+  background-size: 100% auto;
   background-image: url(images/camera.png);
 }
 .listThumbH {

-- 
To view, visit https://gerrit.wikimedia.org/r/65329
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc55346b6376b1b4717bfa030c4654ce3732b233
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to