Skip to content
Snippets Groups Projects
Commit 89586bac authored by Angie Byron's avatar Angie Byron
Browse files

#672130 by Rob Loach: Only include Seven's vertical-tabs.css when vertical tabs are shown.

parent c2ccd28f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -7,7 +7,6 @@ core = 7.x
engine = phptemplate
stylesheets[screen][] = reset.css
stylesheets[screen][] = style.css
stylesheets[all][] = vertical-tabs.css
regions[content] = Content
regions[help] = Help
regions[page_top] = Page top
......
......@@ -92,3 +92,13 @@ function seven_fieldset($variables) {
$output .= "</fieldset>\n";
return $output;
}
/**
* Implements hook_css_alter().
*/
function seven_css_alter(&$css) {
// Use Seven's vertical tabs style instead of the default one.
if (isset($css['misc/vertical-tabs.css'])) {
$css['misc/vertical-tabs.css']['data'] = drupal_get_path('theme', 'seven') . '/vertical-tabs.css';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment