summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2011-10-15 16:09:02 +0100
committerChristopher Smith <chris@jalakai.co.uk>2011-10-15 16:09:02 +0100
commitf53795891c8f08acc7ad03adf236f82d6e108c38 (patch)
tree0570e2996651f71c3c483e6b19f82014182e2b3a /lib/exe
parentd98986013f4cf837203b8c4e18bb4d4ef106edc7 (diff)
downloadrpg-f53795891c8f08acc7ad03adf236f82d6e108c38.tar.gz
rpg-f53795891c8f08acc7ad03adf236f82d6e108c38.tar.bz2
FS#2317 fix CSS compress for generic pseudo classes/pseudo elements
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/css.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 81f47d8fa..d54e2e46c 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -319,7 +319,8 @@ function css_compress($css){
// strip whitespaces
$css = preg_replace('![\r\n\t ]+!',' ',$css);
- $css = preg_replace('/ ?([:;,{}\/]) ?/','\\1',$css);
+ $css = preg_replace('/ ?([;,{}\/]) ?/','\\1',$css);
+ $css = preg_replace('/ ?: /',':',$css);
// shorten colors
$css = preg_replace("/#([0-9a-fA-F]{1})\\1([0-9a-fA-F]{1})\\2([0-9a-fA-F]{1})\\3/", "#\\1\\2\\3",$css);