Lines Matching defs:css

23     header('Content-Type: text/css; charset=utf-8');
77 $files[DOKU_INC . 'lib/styles/' . $mediatype . '.css'] = DOKU_BASE . 'lib/styles/';
81 $files[DOKU_INC . 'lib/scripts/jquery/jquery-ui-theme/smoothness.css'] =
122 '.css'
173 $css = ob_get_contents();
177 stripsourcemaps($css);
180 $css = css_applystyle($css, $styleini['replacements']);
183 $css = css_parseless($css);
187 $css = css_compress($css);
193 $css = preg_replace_callback('#(url\([ \'"]*)(' . $base . ')(.*?(?:\.(png|gif)))#i', 'css_datauri', $css);
196 http_cached_finish($cache->cache, $css);
205 * @param string $css
208 function css_parseless($css)
221 return $less->compile($css);
232 $lines = explode("\n", $css);
268 * @param string $css
274 function css_applystyle($css, $replacements)
288 $css = strtr($css, $replacements);
291 $css = $less . $css;
292 return $css;
419 * Helper class to abstract loading of css/less files
435 * Load the contents of the css/less file and adjust any relative paths/urls (relative to this file) to be
446 $css = io_readFile($this->filepath);
447 if (!$location) return $css;
451 $css = preg_replace_callback('#(url\( *)([\'"]?)(.*?)(\2)( *\))#', [$this, 'replacements'], $css);
452 $css = preg_replace_callback('#(@import\s+)([\'"])(.*?)(\2)#', [$this, 'replacements'], $css);
454 return $css;
549 $list[DOKU_PLUGIN . "$p/$mediatype.css"] = DOKU_BASE . "lib/plugins/$p/";
551 // alternative for screen.css
553 $list[DOKU_PLUGIN . "$p/style.css"] = DOKU_BASE . "lib/plugins/$p/";
563 * @param string $css
568 function css_compress($css)
578 $css = preg_replace_callback('/(([\'"]).*?(?<!\\\\)\2)/', $quote_cb, $css);
581 $css = preg_replace_callback('#(/\*)(.*?)(\*/)#s', 'css_comment_cb', $css);
584 $css = preg_replace_callback('/^.*\/\/.*$/m', 'css_onelinecomment_cb', $css);
587 $css = preg_replace('![\r\n\t ]+!', ' ', $css);
588 $css = preg_replace('/ ?([;,{}\/]) ?/', '\\1', $css);
589 $css = preg_replace('/ ?: /', ':', $css);
592 $css = preg_replace(
595 $css
597 $css = preg_replace(
600 $css
602 $css = preg_replace(
605 $css
607 $css = preg_replace(
610 $css
612 $css = preg_replace(
615 $css
619 $css = preg_replace(
622 $css
624 $css = preg_replace(
627 $css
631 $css = preg_replace(
634 $css
642 $css = preg_replace_callback('/"STR(\d+)"/', $quote_back_cb, $css);
643 $css = trim($css);
645 return $css;