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
|
rgba($color, .5) // sets alpha to .5
|
||||||
```
|
```
|
||||||
|
|
||||||
### Getting HSL values
|
### Getting individual values
|
||||||
|
|
||||||
|
#### HSLA
|
||||||
|
|
||||||
```scss
|
```scss
|
||||||
hue($color)
|
hue($color) // → 0deg..360deg
|
||||||
saturation($color)
|
saturation($color) // → 0%..100%
|
||||||
lightness($color)
|
lightness($color) // → 0%..100%
|
||||||
alpha($color) // aka opacity()
|
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
|
### Adjustments
|
||||||
|
|
||||||
```scss
|
```scss
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue