Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incompatible units: 'rem' and 'px' with bootstrap 4 alpha 6

I am trying to implement a bootstrap 4 template (I use bootstrap 4 alpha 6) and see such an error:

Incompatible units: 'rem' and 'px'.

in line

$input-height: (($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2)) !default;

Did somebody experience similar issue? Thanks!

like image 833
Neon_10 Avatar asked Dec 13 '22 22:12

Neon_10


1 Answers

Bootstrap moved from pixels (px) in version 3 to rem in version 4.

In resources/assets/sass/_variables.scss replace:

$font-size-base: 14px; with $font-size-base: 1rem;

In general, Bootstrap 4 uses 'rem' instead of 'px'. For reference, look at https://github.com/twbs/bootstrap/issues/17070

like image 155
Juan Carlos Pulido Suarez Avatar answered Dec 30 '22 10:12

Juan Carlos Pulido Suarez