Advanced Concepts Flashcards
Based on the following error, where is the problem in your Sass?
Syntax error: Invalid CSS after “ color blue”: expected “{“, was “;” on line 6 of home.scss
The correct syntax for Sass comments is as follows:
//Comment for Sass-only, /* Comment */ for CSS output comments
The @warn function is used to:
Print an error to the terminal showing a defined error message
To insert line numbers into your CSS output, you run the Sass command with what flag?
-l
Write a media directive for screen media with orientation landscape. Within the directive, set thewidth attribute for all image tags to 360px.
Open a scope on an
with the ID menu. Inside that, open a scope on a * element. Using Sass nesting, add a media query so that the
- elements will have an attribute of text-align: center when the media is screen and the
- has a max-width of 500px.
@media screen and (orientation: landscape) {
img {
width: 360px;
}
}
ul#menu {
li {
@media screen and (max-width: 500px) {
text-align: center;
}
}
}