ackama / rails-template

Application template for Rails 7 projects; preloaded with best practices for TDD, security, deployment, and developer productivity.
Other
306 stars 17 forks source link

Set sensible box-sizing CSS in all generated apps #480

Closed eoinkelly closed 1 year ago

eoinkelly commented 1 year ago

All of our projects (as far as I am aware) set a sensible box-sizing - something like:

// Use sane box-sizing
// https://css-tricks.com/box-sizing/#aa-universal-box-sizing-with-inheritance
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

I think the SCSS generated by this template should do this because it is very annoying to fix this if a team has already built a bunch of CSS

lukeify commented 1 year ago

Resolved by #487.