Change variable SASS depending on platform


Hi everyone,
I used Ionic2 RC3 for my application. I want to change the value of varible SASS depending on Platform. For example, I have a variable $statusbar-height which has value 0px if the device is Windows or Android, but 20px if the device is on IOS.
Thanks for any help.


You could do…

$my-ios-variable: 20px
$my-md-variable: 10px
$my-wp-variable: 15px

And then consume it like so:

.md div{
   height: $my-md-variable

.ios div{
   height: $my-ios-variable

.wp div{
   height: $my-wp-variable