-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
img tag gets the link underline #266
Comments
After doing some more reading, I realized that this is a CSS limitation that can't easily be solved. |
This should be reopened as it's still an issue. In ![desk](https://cloud.githubusercontent.com/assets/1424573/3378137/abac6d7c-fbe6-11e3-8e09-55745b6a8176.png) to this: [![desk](https://cloud.githubusercontent.com/assets/1424573/3378137/abac6d7c-fbe6-11e3-8e09-55745b6a8176.png)](http://pixyll.com) And the image will change from this: To this, with the blue underline: It's not that noticeable in this particular image, but becomes very noticeable on images with white backgrounds: Thanks for the otherwise excellent theme!! |
It's an issue yes, but with the way the classes are nested, I don't think it's a solvable issue without digging in Jekyll. |
On second thought, I might have a solve for it. Gonna develop it locally and see if I can get it working. |
Hmm, I think this might be a limitation of CSS and impossible to work around. Because the Applying something to the selector chain I have one more idea that might work before I give up on this though. |
Hmm a quick fix may be impossible, but perhaps the link underlining strategy needs to be rethought in light of this and #293 ? |
Nothing like inconsistent CSS selections 👎 .
|
Ah, thanks for trying anyhow. I'm terrible at CSS so unfortunately can only offer up issue observations! |
It feels like the only real solve is to change the links back to using the standard underline, rather than a custom defined background image. Every other possible solution has issues. |
FWIW, I'm patching in links.css on my site, and even without much tweaking, it's already looking pretty good, and not causing issues with images. I might have a workable fix for it in a bit. |
I ended up switching to a different theme, so no need to concern yourself for my sake (don't let me stop you though of course)! |
I believe this was introduced in #228. We could try reverting it. |
I'm trying to work through this issue on my end (so there might be a pull request for it), but if I tag an image as a link, I then get the underline under the image that I can't seem to style away, as I can't figure out what the selector would be to target the
a
if and only if it has aimg
child.The text was updated successfully, but these errors were encountered: