How many syntax's that sass support?

Ebîñ Râykãr
Ebîñ Râykãr

Posted On: Feb 22, 2018

 

The Sass has supported two syntaxes which are Indented (sass) and scss.

  • Indented (sass) syntax:

The semicolon and curly bracket remove and add a colon before every property tag.

classname 
:color pink 
:font-size 12px
  • scss syntax:

The scss syntax is the same as a CSS syntax with its own modification.

classname{
Color: pink;
font-size:  12px;
}

Example:- how to convert the SASS file and SCSS file

  • To convert the SASS file to the SCSS file.
sass-convert filename.sass filename.scss
  • To convert the SCSS file to the SASS file.
sass-convert filename.scss filename.sass

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    SASS Interview Questions

    What is SASS?

    The sass is the acronym of synthetically Awesome Style Sheet. This is a CSS pre-processor. The sass used to minimize the repetition of CSS style tags and save time. This is a more stable extension ...

    SASS Interview Questions

    Who is the father of SASS?

    The SASS language primarily designed by Hampton Catlin and developed by Natalie Weizenbaum. After the primary version, Natalie Weizenbaum and Chris Eppstein are continuing for SASS with a scripting...

    SASS Interview Questions

    Enlist few features of SASS?

    The Sass is time-saving and minimizes the coding language. Some basic features of SASS which come daily basis is below. List and @each directive together. The list is an initial feature of sass but...