-
Notifications
You must be signed in to change notification settings - Fork 656
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
Transparent images in issue texts makes them unreadable #983
Comments
Hi @HolgerJeromin! Hmm, I thought we had the background change to white on hover: .markdown-body img:hover {
background-color: #fff !important;
} But I don't see it any more. |
@Mottie the white background on hover was only when viewing an image in a repo such as this https://github.com/StylishThemes/logos/blob/master/github.dark/githubdark.svg |
Seems like that background effect could be done to all images inside |
If I remember this right, the only effect was for jupyter notebooks images #846 and a page https://github.com/sujitpal/statlearning-notebooks/blob/master/src/chapter2.ipynb None of the issue reported here are encompassed in that.
Edit Ah, seems by default all images have a white bg. .markdown-body img {
background-color: #fff;
box-sizing: content-box;
max-width: 100%;
} Though this stuff is woven into the generator also its interesting that the images in gravitystorm/openstreetmap-carto#120 (comment) are dark and many other similar images posted in that topic are not. Why are we exactly changing this? I reverted this to white as per default and cant see any ill effects |
The others are PNG without transparency but white background in the image itself.
Fine with me. |
Thats a question more for @Mottie @silverwind @xt0rted cause I cant remember why this was changed, there has to be some reason that escapes me right now. As is it seems to me that it was just caught up in the generator rule, so Im wondering some exclusion may be a better fix. |
AH I see it, all emoji and other images rendered to png are affected by this, I dont even think the hover solution is nice cause it looks nasty when hovering things around. I think we should make this optional with a toggle in style settings to restore the white bg if a user prefers it, though with the following CSS (removing the generator portions) seems to be acceptable, .markdown-body img[data-canonical-src*="svg"], .markdown-body img.emoji {
background-color: inherit !important;
}
.markdown-body img[src*="png"] {
background-color: #ccc;
} The top handles our svg images in readme + the emoji the bottom handles the issue, |
* chore(meta): add GitHub Dark IMG Background (the-j0k3r) * chore(add): github-dark-img-bg-clr resolves StylishThemes/GitHub-Dark#983 (the-j0k3r) * More readme changes (Rob Garrison) * Organize readme (Rob Garrison)
OK this is more or less handled by StylishThemes/Feature-Override-Styles@06fbdd9 See https://github.com/StylishThemes/Feature-Override-Styles#github-dark and Install the GitHub Dark IMG Background Color usercss |
Vivaldi
Windows 7
Remove rendering of natural=marsh gravitystorm/openstreetmap-carto#3829
and
Add icon for amenity=school gravitystorm/openstreetmap-carto#120 (comment)
This repo issues often have transparent images.
and
ref #463
The text was updated successfully, but these errors were encountered: