Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust amp-social-share CSS so that SVG logo backgrounds are centered #2666

Merged
merged 1 commit into from
Mar 25, 2016

Conversation

jsit
Copy link
Contributor

@jsit jsit commented Mar 22, 2016

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)

@jsit
Copy link
Contributor Author

jsit commented Mar 23, 2016

Result (with Twitter SVG PR #2667), with Pinterest <span> set to width 30 height 30 to show size flexibility:

screen shot 2016-03-23 at 9 51 20 am

@jsit
Copy link
Contributor Author

jsit commented Mar 23, 2016

Example at different sizes:

screen shot 2016-03-23 at 1 20 20 pm

We may also want to re-draw these SVGs so that they have adequate padding inside them, since it would be harder to pad the HTML elements.

@dvoytenko
Copy link
Contributor

@jsit this also looks good. Please squash commits.

… in amp-social-share elements of any width/height (other than 60x44) (Issue ampproject#2628)
@jsit
Copy link
Contributor Author

jsit commented Mar 25, 2016

All set, thanks.

@dvoytenko
Copy link
Contributor

LGTM

@dvoytenko dvoytenko merged commit f19f30a into ampproject:master Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants