Add multiple Sass tests

This commit is contained in:
Jeremy Thomas
2020-03-16 13:29:44 +11:00
parent 4b2bc0018a
commit f75ae3db01
17 changed files with 18757 additions and 71 deletions

View File

@@ -62,6 +62,8 @@
@return $value
@function colorLuminance($color)
@if type-of($color) != 'color'
@return 0.55
$color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
@each $name, $value in $color-rgb
$adjusted: 0
@@ -98,6 +100,11 @@
@return $text-strong
@function bulmaRgba($color, $alpha)
@if type-of($color) == 'color'
@return rgba($color, $alpha)
@return $color
@if type-of($color) != 'color'
@return $color
@return rgba($color, $alpha)
@function bulmaDarken($color, $amount)
@if type-of($color) != 'color'
@return $color
@return darken($color, $amount)