X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8a078a30db08afb680c48ce94d6e576236febeed..16c39b15d9a1516d9cbfa99288747260493cbb15:/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_contrast-ratio.scss diff --git a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_contrast-ratio.scss b/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_contrast-ratio.scss deleted file mode 100644 index 1ba65ce15..000000000 --- a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_contrast-ratio.scss +++ /dev/null @@ -1,31 +0,0 @@ -@charset "UTF-8"; - -/// Programatically determines the contrast ratio between two colors. -/// -/// Note that the alpha channel is ignored. -/// -/// @link https://goo.gl/54htLV -/// -/// @argument {color (hex)} $color-1 -/// -/// @argument {color (hex)} $color-2 -/// -/// @return {number (1-21)} -/// -/// @example scss -/// _contrast-ratio(black, white) -/// -/// @require {function} _lightness -/// -/// @access private - -@function _contrast-ratio($color-1, $color-2) { - $-local-lightness-1: _lightness($color-1) + 0.05; - $-local-lightness-2: _lightness($color-2) + 0.05; - - @if $-local-lightness-1 > $-local-lightness-2 { - @return $-local-lightness-1 / $-local-lightness-2; - } @else { - @return $-local-lightness-2 / $-local-lightness-1; - } -}