Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Added Size Class Back Into Image Tag Within Content Body #574

Merged
merged 9 commits into from
Dec 7, 2015

Conversation

joshrathke
Copy link
Contributor

Definitely up for a debate on this one, but I think the image size is worth preserving within the image tag for styling purposes. It really doesn't add very much bulk at all, and doesn't cause any responsive conflicts. I also took the liberty of simplifying the function a little bit by simply checking for the "align" and "size" prefix, rather than having a static array of entries. Should prove to be a little more dynamic that way.

Josh Rathke added 9 commits December 2, 2015 00:15
I agree with most of what this function is doing. However I needed to
apply styles to a particular image size within the body of a post and
realized that this function completely stripped out any unique
identifier that would have allowed me to apply styles to it. So I went
ahead and altered the function to include any classes prefixed by
“size”. This should allow developers to single out specific sizes
within posts and alter the accordingly.
@joshrathke joshrathke changed the title Added Size Class Back Into Image Tag Within Content Added Size Class Back Into Image Tag Within Content Body Dec 5, 2015
olefredrik added a commit that referenced this pull request Dec 7, 2015
Added Size Class Back Into Image Tag Within Content Body
@olefredrik olefredrik merged commit 2a59f61 into olefredrik:master Dec 7, 2015
@olefredrik
Copy link
Owner

I agree. Thanks, @josh-rathke 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants