SASS Flashcards

1
Q

Sass stands for

A

Syntactically Awesome Stylesheets

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

Sass to CSS is

A

preprocessor, it takes code written in Sass syntax and converts to basic CSS

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

What are some features of Sass?

A

create variables, nest CSS rules into others, import other Sass files

creates more compact, easier to read code

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

in Sass, variables start with

A

$ followed by the variable name

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

a mixin in Sass is

A

a group of CSS declarations that can be reused throughout the stylesheet

  • Example, display flex, justify content
  • Or box shadow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you call a mixin?

A

@include directive

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

To bring the code in the partial into another Sass file,

A

use the @import directive.

if all your mixins are saved in a partial named “_mixins.scss”, and they are needed in the “main.scss” file, this is how to use them in the main file:

// In the main.scss file

@import ‘mixins’

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

How to borrow CSS rules from one element into another

A
.new-class {
@extend .class; // note! no colon
// new rules
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly