X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8a078a30db08afb680c48ce94d6e576236febeed..16c39b15d9a1516d9cbfa99288747260493cbb15:/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_lightness.scss diff --git a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_lightness.scss b/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_lightness.scss deleted file mode 100644 index a2929044b..000000000 --- a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_lightness.scss +++ /dev/null @@ -1,24 +0,0 @@ -@charset "UTF-8"; - -/// Programatically determines the lightness of a color. -/// -/// @argument {color (hex)} $hex-color -/// -/// @return {number (0-1)} -/// -/// @example scss -/// _lightness($color) -/// -/// @access private - -@function _lightness($hex-color) { - $-local-red-raw: red(rgba($hex-color, 1)); - $-local-green-raw: green(rgba($hex-color, 1)); - $-local-blue-raw: blue(rgba($hex-color, 1)); - - $-local-red: _gamma($-local-red-raw / 255); - $-local-green: _gamma($-local-green-raw / 255); - $-local-blue: _gamma($-local-blue-raw / 255); - - @return $-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722; -}