summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-07-27 13:16:44 (GMT)
committerAlex Pott2015-07-27 13:16:44 (GMT)
commit42ff057e0a9d473ee150c63794c27f303d9834fd (patch)
tree9b6f4af35ca5ba56288f7f1bebb7febebd544a07
parentae85191918a26e337023933d1f51666c143b1cdc (diff)
Issue #2489578 by Manjit.Singh, saki007ster, pjbaert, Cottser, jhodgdon, epophoto: Move search.theme.css to classy
-rw-r--r--core/modules/search/search.libraries.yml5
-rw-r--r--core/modules/search/src/Controller/SearchController.php2
-rw-r--r--core/themes/classy/classy.libraries.yml6
-rw-r--r--core/themes/classy/css/search/search.theme.css (renamed from core/modules/search/css/search.theme.css)0
-rw-r--r--core/themes/classy/templates/content/search-result.html.twig1
5 files changed, 7 insertions, 7 deletions
diff --git a/core/modules/search/search.libraries.yml b/core/modules/search/search.libraries.yml
deleted file mode 100644
index 624fc93..0000000
--- a/core/modules/search/search.libraries.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-drupal.search.results:
- version: VERSION
- css:
- theme:
- css/search.theme.css: {}
diff --git a/core/modules/search/src/Controller/SearchController.php b/core/modules/search/src/Controller/SearchController.php
index 08983c2..e775531 100644
--- a/core/modules/search/src/Controller/SearchController.php
+++ b/core/modules/search/src/Controller/SearchController.php
@@ -137,8 +137,6 @@ class SearchController extends ControllerBase {
'#type' => 'pager',
);
- $build['#attached']['library'][] = 'search/drupal.search.results';
-
return $build;
}
diff --git a/core/themes/classy/classy.libraries.yml b/core/themes/classy/classy.libraries.yml
index 4603ff1..a5bde77 100644
--- a/core/themes/classy/classy.libraries.yml
+++ b/core/themes/classy/classy.libraries.yml
@@ -15,3 +15,9 @@ drupal.comment.threaded:
css:
theme:
css/comment/comment.theme.css: {}
+
+search.results:
+ version: VERSION
+ css:
+ theme:
+ css/search/search.theme.css: {}
diff --git a/core/modules/search/css/search.theme.css b/core/themes/classy/css/search/search.theme.css
index 7d9980a..7d9980a 100644
--- a/core/modules/search/css/search.theme.css
+++ b/core/themes/classy/css/search/search.theme.css
diff --git a/core/themes/classy/templates/content/search-result.html.twig b/core/themes/classy/templates/content/search-result.html.twig
index bdf5434..714b005 100644
--- a/core/themes/classy/templates/content/search-result.html.twig
+++ b/core/themes/classy/templates/content/search-result.html.twig
@@ -56,6 +56,7 @@
* @see template_preprocess_search_result()
*/
#}
+{{ attach_library('classy/search.results') }}
{{ title_prefix }}
<h3{{ title_attributes.addClass('search-result__title') }}>
<a href="{{ url }}">{{ title }}</a>