summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-10-12 18:56:40 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-10-12 18:56:40 +0200
commit9c7a681b5de7bebb468569a1a416000935b3b3d7 (patch)
treee5804a0fdc28e13a187d003faa45d8ba800df455 /lib/exe
parent16ec3e37ba61fe0c3d045ed3922f46257b392517 (diff)
downloadrpg-9c7a681b5de7bebb468569a1a416000935b3b3d7.tar.gz
rpg-9c7a681b5de7bebb468569a1a416000935b3b3d7.tar.bz2
removed css_moveimports() this is now done by lessphp
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/css.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index 60e17ae82..afba5fc02 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -148,9 +148,6 @@ function css_out(){
// parse less
$css = css_parseless($css);
- // place all remaining @import statements at the top of the file
- $css = css_moveimports($css);
-
// compress whitespace and comments
if($conf['compress']){
$css = css_compress($css);
@@ -460,28 +457,6 @@ function css_pluginstyles($mediatype='screen'){
}
/**
- * Move all @import statements in a combined stylesheet to the top so they
- * aren't ignored by the browser.
- *
- * @author Gabriel Birke <birke@d-scribe.de>
- */
-function css_moveimports($css) {
- if(!preg_match_all('/@import\s+(?:url\([^)]+\)|"[^"]+")\s*[^;]*;\s*/', $css, $matches, PREG_OFFSET_CAPTURE)) {
- return $css;
- }
- $newCss = "";
- $imports = "";
- $offset = 0;
- foreach($matches[0] as $match) {
- $newCss .= substr($css, $offset, $match[1] - $offset);
- $imports .= $match[0];
- $offset = $match[1] + strlen($match[0]);
- }
- $newCss .= substr($css, $offset);
- return $imports.$newCss;
-}
-
-/**
* Very simple CSS optimizer
*
* @author Andreas Gohr <andi@splitbrain.org>