Skip to content

Commit e8486ac

Browse files
committed
Reduce size and overlap of result titles
Why these changes are being introduced: This was suggested by UXWS as a visual design improvement. Relevant ticket(s): * [GDT-238](https://mitlibraries.atlassian.net/browse/GDT-238) * [GDT-215](https://mitlibraries.atlassian.net/browse/GDT-215) How this addresses that need: This changes the result titles, authors, and highlights heading to the suggested sizes. Side effects of this change: None.
1 parent 83d99c1 commit e8486ac

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

app/assets/stylesheets/partials/_results.scss

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@
2525
border-top: 1px solid $brand-primary;
2626
font-size: $fs-small;
2727

28-
/* Adding hd-2 styling for order markers to match result titles */
2928
&::marker {
30-
font-size: $fs-xxlarge;
31-
line-height: $lh-tight;
29+
font-size: 2.5rem;
30+
line-height: 1.1;
3231
font-weight: $fw-bold;
3332
}
3433

3534
.record-title {
3635
display: inline;
36+
font-size: 2.5rem;
37+
line-height: 1.1;
3738
}
3839

3940
&:hover,
@@ -84,4 +85,9 @@
8485
-webkit-line-clamp: 3;
8586
-webkit-box-orient: vertical;
8687
}
88+
89+
.inner-heading {
90+
font-size: 1.8rem;
91+
line-height: 1.1;
92+
}
8793
}

app/assets/stylesheets/partials/_shared.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.result,
22
.full-record {
33
.authors {
4-
font-size: $fs-large;
4+
font-size: 1.8rem;
55
font-weight: $fw-bold;
66
margin-bottom: 0.6em;
77
}

app/views/search/_highlights.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<% highlights = trim_highlights(result) %>
22
<% return unless highlights&.any? %>
33

4-
<h3 class="hd-6">Other fields matching your search:</h3>
4+
<h3 class="inner-heading">Other fields matching your search:</h3>
55
<ul class="list-unbulleted truncate-list">
66
<% highlights.each do |h| %>
77
<% h['matchedPhrases'].each do |phrase| %>

0 commit comments

Comments
 (0)