sass: Update sass.md (#1481)

This commit is contained in:
Ye-Chan Kang 2020-07-03 21:48:49 +09:00 committed by GitHub
parent 05e2dabc76
commit 32fa7a6898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 6 deletions

21
sass.md
View File

@ -34,14 +34,21 @@ body {
```scss
.markdown-body {
p {
a {
color: blue;
}
&:hover {
color: red;
}
}
}
```
#### to properties
```scss
text: {
align: center; // like text-align: center
transform: uppercase; // like text-transform: uppercase
}
```
### Comments
@ -130,7 +137,7 @@ body {
### Composing
```scss
@import './other_sass_file`;
@import './other_sass_file';
```
The `.scss` or `.sass` extension is optional.
@ -189,7 +196,7 @@ alpha($color) // → 0..1 (aka opacity())
#### RGB
```
```scss
red($color) // → 0..255
green($color)
blue($color)
@ -354,6 +361,10 @@ $i: 6;
position: absolute;
left: 0;
}
@else if $position == 'right' {
position: absolute;
right: 0;
}
@else {
position: static;
}