diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 8afc2f3..44ac0bd 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -292,8 +292,12 @@ function seven_preprocess_install_page(&$variables) { * Implements hook_preprocess_maintenance_page(). */ function seven_preprocess_maintenance_page(&$variables) { - $variables['styles'] = new RenderWrapper('drupal_get_css'); - $variables['scripts'] = new RenderWrapper('drupal_get_js'); + $page_object = $variables['page']['#page']; + $attributes = $page_object->getHtmlAttributes(); + $classes = $attributes['class']; + $classes[] = 'maintenance-background'; + $attributes['class'] = $classes; + // // Normally we could attach libraries via hook_page_alter(), but when the // // database is inactive it's not called so we add them here. $libraries = array(