-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-rustdoc-themesArea: Themes for HTML pages generated by rustdocArea: Themes for HTML pages generated by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
In RustCrypto crates we use SVG logo which changes style depending on preferred theme using @media(prefers-color-scheme:dark) { .. }
CSS rules. You can see the sha2
docs for an example which uses it.
But the problem is how the logo gets rendered on dark themes:
The reason for such horrible result is the white shadow filter applied to the logo. I understand why it was added, but I think it's a wrong approach, especially for projects which aim to properly support dark themes in their media files.
Metadata
Metadata
Assignees
Labels
A-rustdoc-themesArea: Themes for HTML pages generated by rustdocArea: Themes for HTML pages generated by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)Area: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.