Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

what is !default in sass

!default is a Sass flag that indicates conditional assignment 
to a variable — it assigns a value only if the variable 
was previously undefined or null. Example:

$variable: 'test' !default;

To the Sass compiler, this line says:

Assign $variable to value 'test', but only if $variable 
is not already assigned.
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #sass
ADD COMMENT
Topic
Name
1+5 =