X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8a078a30db08afb680c48ce94d6e576236febeed..16c39b15d9a1516d9cbfa99288747260493cbb15:/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_gamma.scss diff --git a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_gamma.scss b/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_gamma.scss deleted file mode 100644 index 2314f5a9a..000000000 --- a/src/wolnelektury/static/2021/css/utils/bourbon/utilities/_gamma.scss +++ /dev/null @@ -1,21 +0,0 @@ -@charset "UTF-8"; - -/// Performs gamma correction on a single color channel. -/// -/// Note that Sass does not have a `pow()` function, so the calculation -/// is approximate. -/// -/// @argument {number (0-1)} $channel -/// -/// @return {number (0-1)} -/// -/// @access private - -@function _gamma($channel) { - @if $channel < 0.03928 { - @return $channel / 12.92; - } @else { - $c: ($channel + 0.055) / 1.055; - @return (133 * $c * $c * $c + 155 * $c * $c) / 288; - } -}