Sunday, June 11, 2017

SASS syntax

     SASS supports two syntaxes namely SCSS and Indented syntax.
  • The SCSS (Sassy CSS) is an extension of CSS syntax. This means every valid CSS is a valid SCSS as well. SCSS makes much easier to maintain large stylesheets and can recognize vendor specific syntax, Many CSS and SCSS files use the extension .scss.

  • Indented − This is older syntax and sometimes just called as SASS. Using this form of syntax, CSS can be written concisely. SASS files use the extension .sass.

    💥How to write placeholder selector in SASS?

    SASS supports placeholder selector using class or id selector. In normal CSS, these are specified with "#" or ".", but in SASS they are replaced with "%".

    💥Mention the different types of operations on the SASS?
     
    There are 5 types of operations −
    • Number Operations
    • Color Operations
    • String Operations
    • Boolean Operations
    • List Operations

      💥What is import directive?
       
      It directly takes the filename to import and all the imported files will get combined in a single CSS file.

No comments:

Post a Comment