You can use the Galen Framework for this, see an introduction here: http://holisticon.github.io/presentations/jsunconf_galen/#/
Basically you define you're specs in a DSL:
@ Overall layout | *
--------------------------
content
visible
navbar
visible
content
below: navbar 370 to 410 px
@ navigation hidden on mobile | mobile
--------------------------
navbar-item-*
absent
@ navigation shown on desktop | desktop
--------------------------
navbar-item-*
visible
@ Content should fit to screen size | mobile
--------------------------
content
width: 100% of screen/width
@ Content should fit to screen size | desktop
--------------------------
content
width: 80 to 90% of screen/width
You can find more sample code here: https://github.com/hypery2k/galen_samples