SASS Flashcards
1
Q
- Nested rules
A
main p {
color: #00ff00;
width: 97%;
.redbox { background-color: #ff0000; color: #000000; } }
2
Q
Variable declaration
A
$var : #FFF
$count : 4
$size : 12px
3
Q
Parent element
A
Parent element in scss means the element of current rule (can be a nested rule)
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’
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.