Sass add % and em -



Sass add % and em -

this question has reply here:

sass calculate percent minus px 5 answers

i have margin that's defined in em.

i want

width: 100% + 3em;

but units won't play nice.

in local development environment, got work interpolation so

width: #{100%} + #{$code-padding-h};

but when seek precompile, precompiling fails error

sass::unitconversionerror: incompatible units: 'em' , '%'

you can trick calc method in css:

width: calc(100% + 3em);

sass

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -