Init mixin docs

This commit is contained in:
Jeremy Thomas
2021-09-19 01:23:53 +01:00
parent 67ab02b289
commit 90189e0a68
15 changed files with 986 additions and 474 deletions

View File

@@ -82,7 +82,7 @@
@else
@return #fff
@function findLightColor($color)
@function findLightColor($color, $l: 96%)
@if type-of($color) == 'color'
$l: 96%
@if lightness($color) > 96%
@@ -90,9 +90,8 @@
@return change-color($color, $lightness: $l)
@return $background
@function findDarkColor($color)
@function findDarkColor($color, $base-l: 29%)
@if type-of($color) == 'color'
$base-l: 29%
$luminance: colorLuminance($color)
$luminance-delta: (0.53 - $luminance)
$target-l: round($base-l + ($luminance-delta * 53))

View File

@@ -25,6 +25,11 @@
width: $dimensions
=hamburger($dimensions)
-moz-appearance: none
-webkit-appearance: none
appearance: none
background: none
border: none
cursor: pointer
display: block
height: $dimensions