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

add modernizr svg class manually to utilize SVGs in CSS #173 #174

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

stroebjo
Copy link
Contributor

@stroebjo stroebjo commented Feb 5, 2024

Modernizr JavaScript library was removed in 43d9616 due to the fact that the CSS class mdzr-svg is missing from the markup and the SVG images defined in the output.css are no longer used. This leads to visual regression compared to other parts of the djangoproject.com website on high-dpi devices (blurry images), i.e. header/footer logos.

Other Modernizr classes used in code.djangoproject.com seem to be .mdzr-borderradius, .mdzr-cssanimations but those appear only in the output.css and seem to be used on the djangoproject.com home page and not here. .mdzr-no-borderradius is used as well, but that seems irrelevant, since all browsers should support border-radius.

Modernizr JavaScript library was removed in 43d9616 due to the fact that the CSS class `mdzr-svg` is missing from the markup and the SVG images defined in the output.css are no longer used. This leads to visual regression compared to other parts of the djangoproject.com website on high-dpi devices (blurry images), i.e. header/footer logos.

Other Modernizr classes used in code.djangoproject.com seem to be `.mdzr-borderradius`, `.mdzr-cssanimations` but those appear only in the output.css and seem to be used on the djangoproject.com home page and not here. `.mdzr-no-borderradius` is used as well, but that seems irrelevant, since all browsers should support border-radius.
@bmispelon bmispelon linked an issue Feb 6, 2024 that may be closed by this pull request
@bmispelon bmispelon merged commit 1a366c8 into django:main Feb 6, 2024
3 checks passed
@bmispelon
Copy link
Member

Thanks so much for your PR and your thorough analysis! I took the liberty of tweaking the commit message before merging.

This change will be deployed within a few days hopefully, and the website will be pretty again thanks to you 🤩

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.

Not using SVGs due to missing Modernizr class
2 participants