diff --git a/app/assets/stylesheets/partials/_results.scss b/app/assets/stylesheets/partials/_results.scss index 6fe33897..b768179e 100644 --- a/app/assets/stylesheets/partials/_results.scss +++ b/app/assets/stylesheets/partials/_results.scss @@ -156,10 +156,12 @@ // -------------------------------------- .result.use, .result.primo { - padding: 32px 0 32px; + padding: 28px 0 28px; margin: 0; - border-bottom: 1px solid $color-gray-200; border-top: none; + border-bottom: 1px solid $color-gray-200; + + @media (max-width: $bp-screen-sm2) { padding: 24px 0 24px; } a:link, a:visited { color: $color-text-primary; @@ -178,6 +180,12 @@ background-color: transparent; } + // Trim bottom margin on last div to ensure consistent visual spacing between results + .result-content > div:last-child, + .result-metadata > div:last-child { + margin-bottom: 0; + } + .eyebrow { color: $color-text-secondary; font-size: 1.3rem; @@ -415,8 +423,11 @@ padding-top: 12px; padding-bottom: 44px; + @media (max-width: $bp-screen-sm2) { padding-top: 0; } + + .results-header { - margin-bottom: 40px; + margin-bottom: 20px; } .results-context { @@ -426,7 +437,7 @@ } #results-section { - padding: 16px 0 0 0; + padding: 8px 0 0 0; } #results-layout-wrapper { @@ -580,7 +591,6 @@ // RESULTS LIST NLS ALERT aside.nls-alert { - margin-bottom: 40px; display: flex; gap: 6px; diff --git a/app/views/search/_highlights.html.erb b/app/views/search/_highlights.html.erb index 50a5c03c..78958d56 100644 --- a/app/views/search/_highlights.html.erb +++ b/app/views/search/_highlights.html.erb @@ -1,11 +1,13 @@ <% highlights = trim_highlights(result) %> <% return unless highlights&.any? %> -

Search term found in:

- + diff --git a/app/views/search/_result.html.erb b/app/views/search/_result.html.erb index 4d21ada9..23f49898 100644 --- a/app/views/search/_result.html.erb +++ b/app/views/search/_result.html.erb @@ -59,9 +59,7 @@ <% end %> -
- <%= render partial: 'search/highlights', locals: { result: result } %> -
+ <%= render partial: 'search/highlights', locals: { result: result } %> <% if Feature.enabled?(:record_link) %>