Getting Started Flashcards

1
Q

Sass is a compiler, which means that it:

A

turns an input into an output

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

What is the output for Sass?

A

CSS

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

You need an output for Sass because:

A

browsers don’t understand Sass, but can understand CSS

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

Using what flag automatically refreshes your CSS output files?

A

Watch

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

The command we use to install Sass is:

A

gem install sass

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

Is Scout an app that helps you avoid the command line?

A

Yes

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

What computer programming language was Sass originally written in?

A

Ruby

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

Libsass is a variant of Sass that:

A

can be ported to other programming languages

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

Add some nested Sass that makes all tags within

tags red.

A

p {
color: blue;
a {
color: red;
}
}

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

Use a nested selector to say all tags within

tags are red.

Add another nested selector which makes all tags that are direct children of

tags blue.

We want to add a style to our previous Sass code declaring that on hover, all direct children have an opacity of 0.5. Use the ampersand selector to achieve this, rather than repeating the > adirect child selector.

We want to add an exception for  tags that are in the 
 with a class of .footer: those links should be purple. Use the post-selector ampersand to achieve this.
A

p {
a {
color: red;
div.footer & {
color: purple;
}
}

> a {
color: blue;
&:hover {
opacity: 0.5;
}
}
}

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