sass: update with red green and blue()

This commit is contained in:
Rico Sta. Cruz 2017-10-15 03:30:22 +08:00
parent ea611d2c15
commit e523293706
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 17 additions and 5 deletions

22
sass.md
View File

@ -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