From d3226008011aee42bdc961d344e0345f82e8ab02 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Tue, 22 Mar 2016 12:47:24 -0400 Subject: [PATCH] Adjust amp-social-share CSS so that SVG logo backgrounds are centered in amp-social-share elements of any width/height (other than 60x44) (Issue #2628) --- extensions/amp-social-share/0.1/amp-social-share.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extensions/amp-social-share/0.1/amp-social-share.css b/extensions/amp-social-share/0.1/amp-social-share.css index d92314290866..fb35691242e7 100644 --- a/extensions/amp-social-share/0.1/amp-social-share.css +++ b/extensions/amp-social-share/0.1/amp-social-share.css @@ -24,15 +24,17 @@ amp-social-share { amp-social-share span { display: block; border-radius: 5px; - height: 44px; - width: 60px; + height: 100%; + width: 100%; } amp-social-share a { display: block; - padding: 12px; + width: 100%; + height: 100%; background-repeat: no-repeat; background-position: center; + background-size: contain; text-decoration: none; }