From c90900ae96dc04a3625e6ed1f6a57df9b5c7be5e Mon Sep 17 00:00:00 2001 From: apolakipso Date: Thu, 12 May 2016 13:38:02 +0200 Subject: [PATCH 1/2] * Disabled hex color short notation --- src/Compiler.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Compiler.php b/src/Compiler.php index 19623e6a..3917fe4b 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -2518,9 +2518,11 @@ public function compileValue($value) $h = sprintf('#%02x%02x%02x', $r, $g, $b); // Converting hex color to short notation (e.g. #003399 to #039) - if ($h[1] === $h[2] && $h[3] === $h[4] && $h[5] === $h[6]) { - $h = '#' . $h[1] . $h[3] . $h[5]; - } + // NOTE: Removed support for short notation + // TODO: Add option to enable short notation + // if ($h[1] === $h[2] && $h[3] === $h[4] && $h[5] === $h[6]) { + // $h = '#' . $h[1] . $h[3] . $h[5]; + // } return $h; From b8bbcace341d0d00ab7838ce2a56d2bdae19d147 Mon Sep 17 00:00:00 2001 From: apolakipso Date: Thu, 12 May 2016 16:13:13 +0200 Subject: [PATCH 2/2] * Updated package.son --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 112a6bde..0daaa089 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "leafo/scssphp", + "name": "apolakipso/scssphp", "type": "library", "description": "scssphp is a compiler for SCSS written in PHP.", "keywords": ["css", "stylesheet", "scss", "sass", "less"],