Answers for "sass set variable if not defined"

C++
0

sass set variable if not defined

$content: "First content";
$content: "Second content?" !default;
$new_content: "First time reference" !default;

#main {
  content: $content;
  new-content: $new_content;
}

/* 
 * Compiles to
 * #main {
 *   content: "First content";
 *   new-content: "First time reference"; }
 */
Posted by: Guest on November-02-2020

Code answers related to "sass set variable if not defined"

Browse Popular Code Answers by Language