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

Extract normalize.css dependency #2875

Merged
merged 6 commits into from
Aug 28, 2022
Merged

Extract normalize.css dependency #2875

merged 6 commits into from
Aug 28, 2022

Conversation

AlecRust
Copy link
Contributor

@AlecRust AlecRust commented Aug 27, 2022

Current problem

Within default.css I see a pasted copy of a very old version of normalize.css. The pasted copy includes styles for IE 6/7 so is one of the first versions of this CSS reset.

Having this dependency pasted in the custom CSS is not ideal, we should be able to update it like other CSS dependencies.

Proposed solution

  • Extract pasted normalize.css version from custom CSS
  • Load normalize.css as separate stylesheet

I have used a slightly newer version 3.0.3 of normalize.css with no IE 6/7 styles, but it's very similar and won't impact styles.

There were a couple modifications to the original pasted normalize.css which have been retained.

Screenshots

No visual change, but feel free to test!

@AlecRust
Copy link
Contributor Author

AlecRust commented Aug 28, 2022

This PR also removes rel="preload" from the stylesheets which do nothing but produce invalid HTML.

@jaapmarcus jaapmarcus merged commit dada22b into hestiacp:main Aug 28, 2022
@AlecRust AlecRust deleted the normalize-dependency branch August 28, 2022 16:07
jaapmarcus added a commit that referenced this pull request Aug 28, 2022
* Commit whitespace changes

* Extract normalize.css dependency

* Remove repeated normalize.css styles

* More consistent attribute order

* Tidy

* Remove invalid rel="preload" from stylesheets

This isn't doing anything, it's just duplicating the `rel` attribute producing invalid HTML.

See appropriate usage: https://3perf.com/blog/link-rels/
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.

None yet

3 participants