I would like get the device width and height in SASS. Because I want create function for convert vw / vh in pixel for ncompatible platforms.
I already write this function in LESS
@w_device:`$(window).width()/100`;
@h_device:`$(window).height()/100`;
.vh(@v){
@val:round(@h_device*@v*1px);
}
.vw(@v){
@val:round(@w_device*@v*1px);
}
Anyone have an idea how to do this in SASS ?
Thanks