SASS Flashcards

1
Q
  1. Nested rules
A

main p {

color: #00ff00;
width: 97%;

  .redbox {
    background-color: #ff0000;
    color: #000000;
  }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Variable declaration

A

$var : #FFF
$count : 4
$size : 12px

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

Parent element

A

Parent element in scss means the element of current rule (can be a nested rule)

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

& selector

A

Select the current parent element. Usually is used to apply properties for different states of the element, for example ‘hover’, ‘focus’

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

Interpolation

A

{$variableName}

The objective of interpolation is to inject a variable into a string. For example in bootstrap
$list: “.col-xs-#{$i}, .col-sm-#{i}, .col-lg-#{i}”

If a variable is a string, interpolation will remove the quotes from it.

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