-
Notifications
You must be signed in to change notification settings - Fork 52
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
Not using SVGs due to missing Modernizr class #173
Comments
Thanks for the report! ✨ I removed We already have a hack to manually add a css class to the Would you like to try to submit a PR for it? I'd be happy to assist you if you'd like. Otherwise I'll probably pick this issue up later in the week. |
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.
The logos in the header and footer (and possible more images?) use a PNG and not the corresponding SVG file, since it is behind the Modernizr feature detection and depends on the
html.mdzr-svg
class being present.On high DPI screens the difference is visible from to the main djangoproject.com website.
The CSS file
trac-env/htdocs/css/output.css
seems to be reused from the main project, since the main site includes amodernizr.js
the SVGs are used there.Since SVG CSS backgrounds should be available anywhere I think the easiest solution would be to just add the
mdzr-svg
class to thehtml
element, or include themodernizr.js
from the main project as well if it is still needed.The text was updated successfully, but these errors were encountered: