Complete the code to write a variable in SCSS syntax.
$primary-color: [1];In SCSS, variables start with $ and are assigned values with a colon and semicolon. Here, #333 is a valid color value.
Complete the code to write a nested style in SCSS syntax.
nav {
ul {
margin: [1];
}
}In SCSS, nested styles are written inside braces. Here, margin: 0; removes default margin.
Fix the error in this SASS syntax by completing the blank.
body
font-family: [1]In SASS syntax (indented), property values are written without quotes unless needed. Here, Arial, sans-serif is correct without quotes.
Fill both blanks to write a nested style in SASS syntax.
nav
ul
margin: [1]
padding: [2]In SASS syntax, indentation replaces braces. Here, margin: 0 removes margin and padding: 10px adds padding.
Fill all three blanks to write a variable and use it in SCSS syntax.
[1]: #ff0000; .button { background-color: [2]; border: 1px solid [3]; }
In SCSS, variables start with $. Here, $danger-color is defined and used for background and border colors.