javascript - sass set width as variable if its not known -
i'm using sass in project , want set variable equal 0.1*width
of content element. width in sass not declare, mean width set in js (window).height * x
(it example), in css file there no declaration of content{width: x;}
to more specyfic have 1 content, have width , height generated in js other things in sass:
.content{background:red; padding:10px;}
and want create variable 10% of width of .content, , variable 12% of height of element make flexible layout in (i want make grid on .content
), , can see there no declaration of elements in sass mean width , height.
is there possibility create variables ($widthcell = .content.width
) ?
Comments
Post a Comment