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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -