ReSass
ReSass (Re
sponsiveSass
) creates responsive media queries for seven different screen sizes. These are based on min-width which means if x (x could be 240
, 320
, 480
, 768
, 1024
, 1140
, 1280
, or 1500
) is the size then your CSS will affect any device with screen width x and above.
CSS content goes inside {} brackets. These mixins should be used inside a class definition.
@include r(240) { }
@include r(320) { }
@include r(480) { }
@include r(768) { }
@include r(1024) { }
@include r(1140) { }
@include r(1280) { }
@include r(1500) { }
For example: The following CSS will hide the .header on screen width 320px and above.
.header {
@include r(320) { display: none; }
}
Getting started is very easy.
resass.scss
resass.scss
in your main .SCSS file → @import "path/to/resass";
MIT licensed. Content is copyright of AhmadAwais.com
This open source project is maintained by the help of awesome businesses listed below. What? Read more about it →
VSCode Power User Course →