Doesn't work with css watch module

Comments

danielhonrade’s picture

Hi,

You can turn off css aggregation of OM D6 to make this work, template.php line 311

Comment it out, clear cache, refresh.

  /*

  $preprocess_css = variable_get('preprocess_css', 0);

  $query_string = '?' . substr(variable_get('css_js_query_string', '0'), 0, 1);

  if (!$preprocess_css) {

    $styles = '';

    foreach ($vars['css'] as $media => $types) {

      $import = '';

      $counter = 0;

      foreach ($types as $files) {

        foreach ($files as $css => $preprocess) {

          $import .= '@import "'. base_path() . $css . $query_string .'";'."\n";

          $counter++;

          if ($counter == 15) {

            $styles .= "\n".'<style type="text/css" media="'. $media .'">'."\n". $import .'</style>';

            $import = '';

            $counter = 0;

          }

        }

      }

      if ($import) $styles .= "\n".'<style type="text/css" media="'. $media .'">'."\n". $import .'</style>';

    }

    if ($styles) $vars['styles'] = $styles;

  }

  */
danielhonrade’s picture

Status: Active » Closed (fixed)

fixed on version 2.8, this can be configured on theme.info