Lines Matching refs:css
68 $css="";
75 $css .= '@media screen {';
76 css_ckg_interwiki($css);
77 css_ckg_filetypes($css);
78 $css .= '}';
95 …$css .= NL.'@media screen { /* START screen styles */'.NL.$css_ckg_content.NL.'} /* /@media END s…
99 … $css .= NL.'/* START rest styles */ '.NL.$css_ckg_content.NL.'/* END rest styles */'.NL;
105 $css = css_ckg_applystyle($css, $styleini['replacements']);
107 $css = css_ckg_parseless($css);
112 …$css = preg_replace_callback('#(url\([ \'"]*)('.$base.')(.*?(?:\.(png|gif)))#i','css_ckg_datauri',…
115 $css = preg_replace("/(\#?|\.?|div\.)dokuwiki\.?/", '', $css);
117 …$css = "@import 'additional.css';\n/* template: $tpl */\n@media screen {\n.$tpl{color:#ccc;}\n}\n"…
118 $css .= '
132 if( io_saveFile($path . 'Styles/_style.css' ,$css)) {
134 $retv = io_saveFile($copy_path,$css);
153 function css_ckg_parseless($css) { argument
158 return $less->compile($css);
169 $lines = explode("\n", $css);
199 function css_ckg_applystyle($css, $replacements) { argument
212 $css = strtr($css, $replacements);
215 $css = $less.$css;
216 return $css;
298 function css_ckg_interwiki(&$css){ argument
301 $css .= 'a.interwiki {';
302 … $css .= ' background: transparent url('.DOKU_BASE.'lib/images/interwiki.png) 0px 1px no-repeat;';
303 $css .= ' padding: 1px 0px 1px 16px;';
304 $css .= '}';
311 $css .= "a.iw_$class {";
312 $css .= ' background-image: url('.DOKU_BASE.'lib/images/interwiki/'.$iw.'.png)';
313 $css .= '}';
315 $css .= "a.iw_$class {";
316 $css .= ' background-image: url('.DOKU_BASE.'lib/images/interwiki/'.$iw.'.gif)';
317 $css .= '}';
327 function css_ckg_filetypes(&$css){ argument
330 $css .= '.mediafile {';
331 …$css .= ' background: transparent url('.DOKU_BASE.'lib/images/fileicons/file.png) 0px 1px no-repea…
332 $css .= ' padding-left: 18px;';
333 $css .= ' padding-bottom: 1px;';
334 $css .= '}';
353 $css .= ".mf_$class {";
354 $css .= ' background-image: url('.DOKU_BASE.'lib/images/fileicons/'.$ext.$type.')';
355 $css .= '}';
394 $css = io_readFile($this->filepath);
395 if (!$location) return $css;
399 …$css = preg_replace_callback('#(url\( *)([\'"]?)(.*?)(\2)( *\))#',array($this,'replacements'),$css…
400 … $css = preg_replace_callback('#(@import\s+)([\'"])(.*?)(\2)#',array($this,'replacements'),$css);
402 return $css;
484 function css_ckg_compress($css){ argument
486 $css = preg_replace_callback('#(/\*)(.*?)(\*/)#s','css_ckg_comment_cb',$css);
489 $css = preg_replace('/(?<!:)\/\/.*$/m','',$css);
492 $css = preg_replace('![\r\n\t ]+!',' ',$css);
493 $css = preg_replace('/ ?([;,{}\/]) ?/','\\1',$css);
494 $css = preg_replace('/ ?: /',':',$css);
497 …$css = preg_replace('/([: ])0+(\.\d+?)0*((?:pt|pc|in|mm|cm|em|ex|px)\b|%)(?=[^\{]*[;\}])/', '$1$2$…
498 …$css = preg_replace('/([: ])\.(0)+((?:pt|pc|in|mm|cm|em|ex|px)\b|%)(?=[^\{]*[;\}])/', '$1$2', $css…
499 …$css = preg_replace('/([: ]0)0*(\.0*)?((?:pt|pc|in|mm|cm|em|ex|px)(?=[^\{]*[;\}])\b|%)/', '$1', $c…
500 …$css = preg_replace('/([: ]\d+)(\.0*)((?:pt|pc|in|mm|cm|em|ex|px)(?=[^\{]*[;\}])\b|%)/', '$1$3', $…
501 …$css = preg_replace('/([: ])0+(\d+|\d*\.\d+)((?:pt|pc|in|mm|cm|em|ex|px)(?=[^\{]*[;\}])\b|%)/', '$…
504 …$css = preg_replace('/(?<![\w\-])((?:margin|padding|border|border-(?:width|radius)):)([\w\.]+)( \2…
505 …$css = preg_replace('/(?<![\w\-])((?:margin|padding|border|border-(?:width)):)([\w\.]+) ([\w\.]+) …
508 …$css = preg_replace("/#([0-9a-fA-F]{1})\\1([0-9a-fA-F]{1})\\2([0-9a-fA-F]{1})\\3(?=[^\{]*[;\}])/",…
510 return $css;