Commit f6b2354f authored by alexpott's avatar alexpott

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

parent c680d33d
......@@ -7,8 +7,3 @@ drupal.book:
- core/drupal
- core/drupal.form
navigation:
version: VERSION
css:
theme:
css/book.theme.css: {}
......@@ -243,11 +243,6 @@ function book_node_view(array &$build, EntityInterface $node, EntityViewDisplayI
$build['book_navigation'] = array(
'#markup' => drupal_render($book_navigation),
'#weight' => 100,
'#attached' => [
'library' => [
'book/navigation',
],
],
// The book navigation is a listing of Node entities, so associate its
// list cache tag for correct invalidation.
'#cache' => [
......
......@@ -3,3 +3,9 @@ base:
css:
theme:
css/layout.css: {}
book-navigation:
version: VERSION
css:
theme:
css/navigation/book.theme.css: {}
......@@ -28,6 +28,7 @@
* @see template_preprocess_book_navigation()
*/
#}
{{ attach_library('classy/book-navigation') }}
{% if tree or has_links %}
<nav id="book-navigation-{{ book_id }}" class="book-navigation" role="navigation" aria-labelledby="book-label-{{ book_id }}">
{{ tree }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment