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

blocks.css "clashes" with tailwindcss #11

Closed
vinliao opened this issue Feb 8, 2021 · 1 comment · Fixed by #12
Closed

blocks.css "clashes" with tailwindcss #11

vinliao opened this issue Feb 8, 2021 · 1 comment · Fixed by #12
Labels
bug Something isn't working

Comments

@vinliao
Copy link
Contributor

vinliao commented Feb 8, 2021

If you combine this with tailwindcss, the blocks looks weird.

There's a .block class in tailwind's css. I thought this is the culprit, but removing this class didn't do anything. I also tried importing blocks.css before and after tailwind, but both leads to the same outcome.

Screenshot from 2021-02-08 14-38-38

Screenshot from 2021-02-08 14-35-11

@vinliao
Copy link
Contributor Author

vinliao commented Feb 8, 2021

Found the culprit: if box-sizing: border-box; is removed from tailwind, blocks.css works fine.

Screenshot from 2021-02-08 16-27-02

The good ol' box model problem.

Edit: another way to replicate.

  1. Pull blocks.css locally, add this line at the very top.
*::after,
*::before {
  box-sizing: border-box;
}
  1. Load blocks.css on html
  2. Try out the .block class; it breaks.

@thesephist thesephist added the bug Something isn't working label Feb 9, 2021
@thesephist thesephist linked a pull request Feb 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants