css - Foundation gem Incompatible units: 'rem' and 'px' -
i've installed foundation gem version 5.5.2.1. when start application receive error:
showing /home/user/scrivania/sites/store/app/views/layouts/application.html.erb line #9 raised: incompatible units: 'rem' , 'px'.
following other case on internet tried change file _settings.scss on gem folder:
../../var/lib/gems/2.1.0/gems/foundation-rails-5.5.2.1/vendor/assets/stylesheets/foundation/_settings.css
i've commented these lines:
$row-width: rem-calc(1000); $column-gutter: rem-calc(30); $total-columns: 12;
and i've set custom $base-font-size:
$base-font-size: 14px; $rem-base: $base-font-size;
i don't want downgrade gems, can me error?
the problem occurring somewhere in scss because mixing rem-calc
, px
in function, thrown error. ran same problem , fixed changing custom styles , overrides rem-calc
. overriding variable conflicting default foundation style.
here's example of how error might occur:
$my-font-size: rem-calc(18); .my-class { font-size: ($rem-number - 5px); }
however, can still occur when override variable px value foundation uses in function rem-calc.
i recommend going through foundations_and_overrides.scss
and see if have overriden variables px
value, change rem-calc
. overriding $topbar
variables issue in case.
Comments
Post a Comment