Complete the code to set the output style to compressed in Sass.
sass --style [1] input.scss output.cssSetting --style to compressed tells Sass to minimize the CSS output by removing spaces and new lines.
Complete the code to import a partial Sass file named '_variables.scss'.
@import '[1]';
When importing partials in Sass, you omit the underscore and file extension. So @import 'variables'; imports _variables.scss.
Fix the error in the Sass code to correctly nest styles for a button hover state.
button {
color: blue;
&:[1] {
color: red;
}
}The &:hover selector applies styles when the mouse is over the button.
Fill both blanks to create a Sass map of colors and access the primary color.
$colors: ([1]: #ff0000, secondary: #00ff00); .primary-color { color: map-get($colors, '[2]'); }
The map key is primary. To get the primary color, use map-get($colors, 'primary').
Fill all three blanks to create a mixin that sets font size and color, then use it.
@mixin [1]($size, $color) { font-size: $size; color: $color; } h1 { @include [2](2rem, [3]); }
The mixin name is text-style. We include it with font size 2rem and color red.