sass: update with red green and blue()
This commit is contained in:
parent
ea611d2c15
commit
e523293706
22
sass.md
22
sass.md
|
|
@ -135,15 +135,27 @@ fade-out($color, .5) // aka transparentize() - halves the opacity
|
|||
rgba($color, .5) // sets alpha to .5
|
||||
```
|
||||
|
||||
### Getting HSL values
|
||||
### Getting individual values
|
||||
|
||||
#### HSLA
|
||||
|
||||
```scss
|
||||
hue($color)
|
||||
saturation($color)
|
||||
lightness($color)
|
||||
alpha($color) // aka opacity()
|
||||
hue($color) // → 0deg..360deg
|
||||
saturation($color) // → 0%..100%
|
||||
lightness($color) // → 0%..100%
|
||||
alpha($color) // → 0..1 (aka opacity())
|
||||
```
|
||||
|
||||
#### RGB
|
||||
|
||||
```
|
||||
red($color) // → 0..255
|
||||
green($color)
|
||||
blue($color)
|
||||
```
|
||||
|
||||
See: [hue()](http://sass-lang.com/documentation/Sass/Script/Functions.html#hue-instance_method), [red()](http://sass-lang.com/documentation/Sass/Script/Functions.html#red-instance_method)
|
||||
|
||||
### Adjustments
|
||||
|
||||
```scss
|
||||
|
|
|
|||
Loading…
Reference in New Issue