diff --git a/core/modules/taxonomy/taxonomy.libraries.yml b/core/modules/taxonomy/taxonomy.libraries.yml index 3a7904f..1119cf1 100644 --- a/core/modules/taxonomy/taxonomy.libraries.yml +++ b/core/modules/taxonomy/taxonomy.libraries.yml @@ -2,9 +2,6 @@ drupal.taxonomy: version: VERSION js: taxonomy.js: {} - css: - component: - css/taxonomy.theme.css: {} dependencies: - core/jquery - core/drupal diff --git a/core/themes/classy/classy.libraries.yml b/core/themes/classy/classy.libraries.yml index 15d8266..eb01b06 100644 --- a/core/themes/classy/classy.libraries.yml +++ b/core/themes/classy/classy.libraries.yml @@ -31,3 +31,5 @@ search.results: css: theme: css/search/search.theme.css: {} + component: + css/taxonomy/taxonomy.theme.css: {} diff --git a/core/themes/classy/templates/content/taxonomy-term.html.twig b/core/themes/classy/templates/content/taxonomy-term.html.twig index 7e0446e..9fcea9a 100644 --- a/core/themes/classy/templates/content/taxonomy-term.html.twig +++ b/core/themes/classy/templates/content/taxonomy-term.html.twig @@ -23,6 +23,7 @@ * @see template_preprocess_taxonomy_term() */ #} +{{ attach_library('classy/drupal.taxonomy') }} {% set classes = [ 'taxonomy-term', diff --git a/core/modules/taxonomy/css/taxonomy.theme.css b/core/themes/seven/css/components/taxonomy-term.css similarity index 72% rename from core/modules/taxonomy/css/taxonomy.theme.css rename to core/themes/seven/css/components/taxonomy-term.css index 543666a..23b95d4 100644 --- a/core/modules/taxonomy/css/taxonomy.theme.css +++ b/core/themes/seven/css/components/taxonomy-term.css @@ -1,3 +1,7 @@ +/** + * @file + * Visual styles for taxonomy term admin page. + */ .taxonomy-term-preview { background-color: #eee; diff --git a/core/themes/seven/seven.libraries.yml b/core/themes/seven/seven.libraries.yml index 0b814b5..6902281 100644 --- a/core/themes/seven/seven.libraries.yml +++ b/core/themes/seven/seven.libraries.yml @@ -92,3 +92,8 @@ seven.drupal.dialog: css: theme: css/components/dialog.theme.css: {} + +taxonomy-term: + css: + component: + css/components/taxonomy-term.css: {} diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 1a44bc4..6e4b6b6 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -202,4 +202,8 @@ function seven_library_info_alter(&$libraries, $extension) { unset($libraries['drupal.dialog']['css']['theme']['misc/dialog.theme.css']); $libraries['drupal.dialog']['dependencies'][] = 'seven/seven.drupal.dialog'; } + if ($extension == 'taxonomy' && isset($libraries['drupal.taxonomy'])) { + $libraries['drupal.taxonomy']['dependencies'][] = 'seven/taxonomy-term'; + } } +