Advanced Concepts Flashcards

1
Q

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

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The correct syntax for Sass comments is as follows:

A

//Comment for Sass-only, /* Comment */ for CSS output comments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The @warn function is used to:

A

Print an error to the terminal showing a defined error message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

To insert line numbers into your CSS output, you run the Sass command with what flag?

A

-l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.
A

@media screen and (orientation: landscape) {
img {
width: 360px;
}
}

ul#menu {
li {
@media screen and (max-width: 500px) {
text-align: center;
}
}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly