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

client: re-add styles to content #1221

Merged
merged 1 commit into from
Oct 4, 2020
Merged

client: re-add styles to content #1221

merged 1 commit into from
Oct 4, 2020

Conversation

jtojnar
Copy link
Member

@jtojnar jtojnar commented Sep 21, 2020

Reset.css removes all styling including from elements like <em> or <strong>. Let’s reapply it in entry contents.

I had to switch to SASS to be able to use scoped @import.

The unreset library contains stuff we do not need (semantic layout elements) but it is still nicer than writing it from scratch.

Alternately, we could switch to something like normalize.css and remove stuff we do not want (e.g. list styling for <ul> in the sidebar) ourselves but that is more work and I am not sure how much sense it makes for us. https://css-tricks.com/reboot-resets-reasoning/

Fixes: #1220

@jtojnar jtojnar requested a review from niol September 21, 2020 16:12
@jtojnar jtojnar added this to the 2.19 milestone Sep 21, 2020
@niol
Copy link
Collaborator

niol commented Oct 4, 2020

I do not understand why we import some unreset stuff instead of styling em etc. elements like you suggested in the bug report.

@jtojnar
Copy link
Member Author

jtojnar commented Oct 4, 2020

The reset.css removes styling for all elements so we would need to add most of https://github.com/ixkaito/unreset.css/blob/master/_unreset.scss.

@jtojnar jtojnar force-pushed the css-unreset branch 2 times, most recently from 2ac683a to 0b644cc Compare October 4, 2020 12:05
Reset.css removes all styling including from elements like `<em>`
or `<strong>`. Let’s reapply it in entry contents.

I had to switch to SASS to be able to use scoped @import.

The unreset library contains stuff we do not need (semantic layout elements)
but it is still nicer than writing it from scratch.
@jtojnar jtojnar merged commit d5cf055 into master Oct 4, 2020
@jtojnar jtojnar deleted the css-unreset branch October 4, 2020 12:27
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.

Formatted text
2 participants