updated theme Twenty Nineteen version 1.8

This commit is contained in:
2020-12-10 10:43:51 +00:00
committed by Gitium
parent 9aa90fc14e
commit ce61d112f5
13 changed files with 274 additions and 44 deletions

View File

@ -94,15 +94,8 @@ function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
$g = $l;
$b = $l;
$v = ( $l <= 0.5 ) ? ( $l * ( 1.0 + $s ) ) : ( $l + $s - $l * $s );
if ( $v > 0 ) {
$m;
$sv;
$sextant;
$fract;
$vsf;
$mid1;
$mid2;
if ( $v > 0 ) {
$m = $l + $l - $v;
$sv = ( $v - $m ) / $v;
$h *= 6.0;
@ -145,6 +138,7 @@ function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
break;
}
}
$r = round( $r * 255, 0 );
$g = round( $g * 255, 0 );
$b = round( $b * 255, 0 );