Exemplo n.º 1
0
 public function normalizeDebugPaths($css)
 {
     $importPath = str_replace('\\', '/', dirname(__FILE__) . '/_fixtures/less.js/less/debug/import/');
     $lessPath = str_replace('\\', '/', dirname(__FILE__) . '/_fixtures/less.js/less/debug/');
     return str_replace(array($importPath, ILess_DebugInfo::escapeFilenameForMediaQuery($importPath), $lessPath, ILess_DebugInfo::escapeFilenameForMediaQuery($lessPath)), array('{pathimport}', '{pathimportesc}', '{path}', '{pathesc}'), $css);
 }
Exemplo n.º 2
0
 /**
  * Sets the media query format
  *
  * @param string $format
  */
 public static function setMediaQueryFormat($format)
 {
     self::$mediaQueryFormat = $format;
 }