Home / Interview / Sass :: General Questions

Interview :: Sass

21) What are the requirements of SASS system?

These are the requirements for Sass system:-

22) What is the use of @extend directive in SASS?

The SASS @extend directive is used to share a set of CSS properties from one selector to another. It is a very important and useful feature of Sass. It allows classes to share a set of properties with one another. It makes your code less and facilitates you to rewrite it repeatedly. For example:

23) What is the role of @media directive in SASS?

The Sass @media directive is used to set style rules to different media types. It supports and extends the @media rules. This directive can be nested inside the selector SASS but the main impact is displayed to the top level of the style sheet. For example:-

24) What is the use of at-root directive in SASS?

The Sass @at-root directive is a collection of nested rules that are used to style block at the root of the document. For example:-