Skip to content
Snippets Groups Projects
Commit 07f92ed7 authored by Jess's avatar Jess
Browse files

Issue #2489394 by cr0ss, jhodgdon, Cottser: Refactor the Search module markup...

Issue #2489394 by cr0ss, jhodgdon, Cottser: Refactor the Search module markup to be inline with our standards
parent 9cdd22cb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -20,9 +20,12 @@ ol.search-results {
padding-bottom: 0;
margin-bottom: 1em;
}
.search-results .search-snippet-info {
.search-result__title {
font-weight: bold;
}
.search-result__snippet-info {
padding-left: 0; /* LTR */
}
[dir="rtl"] .search-results .search-snippet-info {
[dir="rtl"] .search-result__snippet-info {
padding-right: 0;
}
......@@ -57,15 +57,15 @@
*/
#}
{{ title_prefix }}
<h3{{ title_attributes.addClass('title') }}>
<h3{{ title_attributes.addClass('search-result__title') }}>
<a href="{{ url }}">{{ title }}</a>
</h3>
{{ title_suffix }}
<div class="search-snippet-info">
<div class="search-result__snippet-info">
{% if snippet %}
<p{{ content_attributes.addClass('search-snippet') }}>{{ snippet }}</p>
<p{{ content_attributes.addClass('search-result__snippet') }}>{{ snippet }}</p>
{% endif %}
{% if info %}
<p class="search-info">{{ info }}</p>
<p class="search-result__info">{{ info }}</p>
{% endif %}
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment