Issue #2489474 by mortendk, LewisNyman, Manjit.Singh, davidhernandez: Move book.theme.css to Classy

8.0.x
Alex Pott 2015-05-28 12:35:00 +01:00
parent c680d33dc3
commit f6b2354f71
5 changed files with 7 additions and 10 deletions

View File

@ -7,8 +7,3 @@ drupal.book:
- core/drupal - core/drupal
- core/drupal.form - core/drupal.form
navigation:
version: VERSION
css:
theme:
css/book.theme.css: {}

View File

@ -243,11 +243,6 @@ function book_node_view(array &$build, EntityInterface $node, EntityViewDisplayI
$build['book_navigation'] = array( $build['book_navigation'] = array(
'#markup' => drupal_render($book_navigation), '#markup' => drupal_render($book_navigation),
'#weight' => 100, '#weight' => 100,
'#attached' => [
'library' => [
'book/navigation',
],
],
// The book navigation is a listing of Node entities, so associate its // The book navigation is a listing of Node entities, so associate its
// list cache tag for correct invalidation. // list cache tag for correct invalidation.
'#cache' => [ '#cache' => [

View File

@ -3,3 +3,9 @@ base:
css: css:
theme: theme:
css/layout.css: {} css/layout.css: {}
book-navigation:
version: VERSION
css:
theme:
css/navigation/book.theme.css: {}

View File

@ -28,6 +28,7 @@
* @see template_preprocess_book_navigation() * @see template_preprocess_book_navigation()
*/ */
#} #}
{{ attach_library('classy/book-navigation') }}
{% if tree or has_links %} {% if tree or has_links %}
<nav id="book-navigation-{{ book_id }}" class="book-navigation" role="navigation" aria-labelledby="book-label-{{ book_id }}"> <nav id="book-navigation-{{ book_id }}" class="book-navigation" role="navigation" aria-labelledby="book-label-{{ book_id }}">
{{ tree }} {{ tree }}