projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/lessc.inc.php 1 location
|
@@ 869-874 (lines=6) @@
|
| 866 |
|
|
| 867 |
|
$h = sprintf("#%02x%02x%02x", $r, $g, $b); |
| 868 |
|
|
| 869 |
|
if (!empty($this->formatter->compressColors)) { |
| 870 |
|
// Converting hex color to short notation (e.g. #003399 to #039) |
| 871 |
|
if ($h[1] === $h[2] && $h[3] === $h[4] && $h[5] === $h[6]) { |
| 872 |
|
$h = '#' . $h[1] . $h[3] . $h[5]; |
| 873 |
|
} |
| 874 |
|
} |
| 875 |
|
|
| 876 |
|
return $h; |
| 877 |
|
|
projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/scss.inc.php 1 location
|
@@ 1185-1187 (lines=3) @@
|
| 1182 |
|
$h = sprintf("#%02x%02x%02x", $r, $g, $b); |
| 1183 |
|
|
| 1184 |
|
// Converting hex color to short notation (e.g. #003399 to #039) |
| 1185 |
|
if ($h[1] === $h[2] && $h[3] === $h[4] && $h[5] === $h[6]) { |
| 1186 |
|
$h = '#' . $h[1] . $h[3] . $h[5]; |
| 1187 |
|
} |
| 1188 |
|
|
| 1189 |
|
return $h; |
| 1190 |
|
case "number": |