You are here

function bear_necessities_css_alter in Bear 7.2

Implements hook_css_alter().

The semantic UI module includes its library in the admin theme as well. We want to prevent altering the admin theme as the library introduces a couple theming bugs.

File

modules/bear_necessities/bear_necessities.module, line 118

Code

function bear_necessities_css_alter(&$css) {
  global $theme;
  if ($theme == 'seven') {
    unset($css[libraries_get_path('semantic_ui') . '/semantic.css']);
  }
}