After upgrading to the latest dev-release I have noticed that contextual.css is still present in css list on non-admin pages, though contextual.js is off. Can you make a patch to handle this issue? It would be great to find this option in next release of this theme.

Comments

flamez-b’s picture

Issue summary: View changes
flamez-b’s picture

Issue summary: View changes

Ended up with the following code in template.php:

function theme_css_alter(&$css) {
    if (!(bool)$GLOBALS['user']->uid){
      unset($css[drupal_get_path('theme', 'mothership') . '/css-drupalcore/contextual.css']);
    }
}

I have checked through the latest releases - the bug is still present.

realityloop’s picture

Status: Active » Fixed

Fixed in 3.x, Overiding of contextual links css and JS is now optional in CSS Reset section of theme settings

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.