sass: Update sass.md (#1481)
This commit is contained in:
parent
05e2dabc76
commit
32fa7a6898
23
sass.md
23
sass.md
|
@ -34,13 +34,20 @@ body {
|
||||||
|
|
||||||
```scss
|
```scss
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
p {
|
a {
|
||||||
color: blue;
|
color: blue;
|
||||||
|
&:hover {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
&:hover {
|
#### to properties
|
||||||
color: red;
|
```scss
|
||||||
}
|
text: {
|
||||||
|
align: center; // like text-align: center
|
||||||
|
transform: uppercase; // like text-transform: uppercase
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -130,7 +137,7 @@ body {
|
||||||
### Composing
|
### Composing
|
||||||
|
|
||||||
```scss
|
```scss
|
||||||
@import './other_sass_file`;
|
@import './other_sass_file';
|
||||||
```
|
```
|
||||||
|
|
||||||
The `.scss` or `.sass` extension is optional.
|
The `.scss` or `.sass` extension is optional.
|
||||||
|
@ -189,7 +196,7 @@ alpha($color) // → 0..1 (aka opacity())
|
||||||
|
|
||||||
#### RGB
|
#### RGB
|
||||||
|
|
||||||
```
|
```scss
|
||||||
red($color) // → 0..255
|
red($color) // → 0..255
|
||||||
green($color)
|
green($color)
|
||||||
blue($color)
|
blue($color)
|
||||||
|
@ -354,6 +361,10 @@ $i: 6;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
@else if $position == 'right' {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
@else {
|
@else {
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue