Skip to content

Commit ad5c422

Browse files
authored
Merge pull request #142 from MITLibraries/gdt-238-record-title-styling
Reduce size and overlap of result titles
2 parents a8119de + e8486ac commit ad5c422

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,
@@ -82,4 +83,9 @@
8283
-webkit-line-clamp: 3;
8384
-webkit-box-orient: vertical;
8485
}
86+
87+
.inner-heading {
88+
font-size: 1.8rem;
89+
line-height: 1.1;
90+
}
8591
}

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)