twbs / bootstrap-rubygem

Bootstrap rubygem for Rails / Sprockets / Hanami / etc
https://rubygems.org/gems/bootstrap
MIT License
2.01k stars 447 forks source link

Incompatible units: 'rem' and 'px'. #136

Open Deekor opened 6 years ago

Deekor commented 6 years ago

Trying to override the $font-size-base variable to $font-size-base: 12px

is there any workaround to this in the gem?

bombergio commented 6 years ago

You can recalculate in rem based on calculation table i.e. here http://www.standardista.com/px-to-rem-conversion-if-root-font-size-is-16px/

So for your case $font-size-base: 12px would be $font-size-base: 0.75rem