Home » SASS media

Sass @media Directive

Sass @media directive is used to set style rules to different media types. Sass both supports and extends the @media rules.

The Sass @media directive can be nested inside the selector SASS but the main impact is displayed to the top level of the stylesheet.


Sass @media Directive Example

Let’s take an example to demonstrate the usage of Sass @media directive with multiple assignments and maps. We have an HTML file named “simple.html”, having the following data.

HTML file: simple.html

You may also like