Skip to content

Commit abb0918

Browse files
authored
Merge pull request #288 from MITLibraries/use-230
Implemented icons in sidebar and callouts in results list
2 parents dce4238 + c0cc55a commit abb0918

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

app/assets/stylesheets/partials/_results.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,16 @@
281281
flex-direction: column;
282282
gap: 32px;
283283

284+
> div {
285+
display: flex;
286+
gap: 12px;
287+
288+
i {
289+
font-size: 2rem;
290+
margin-top: 1px;
291+
}
292+
}
293+
284294
@media (max-width: 1140px) {
285295
flex-basis: 280px;
286296
}
@@ -341,8 +351,15 @@
341351

342352
aside {
343353
border: 3px solid $color-border-default;
344-
padding: 20px 24px;
354+
padding: 20px 24px;
355+
display: flex;
356+
gap: 12px;
345357

358+
i {
359+
font-size: 2rem;
360+
margin-top: 1px;
361+
}
362+
346363
p {
347364
line-height: 1.4;
348365
}

app/views/layouts/_head.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<![endif]-->
1414
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css">
1515
<%= stylesheet_link_tag 'https://use.typekit.net/ixd2vgq.css' %>
16+
<%= stylesheet_link_tag 'https://cdn.libraries.mit.edu/files/fontawesome/7.1.0/css/all.min.css' %>
1617
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
1718

1819
<!-- For all other devices -->

app/views/layouts/application.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
</div>
2323
</div>
2424

25-
<script src="https://use.fontawesome.com/38304317ff.js"></script>
26-
2725
<footer>
2826
<%= render partial: "layouts/libraries_footer" %>
2927
<%= render partial: "layouts/institute_footer" %>

app/views/search/_results_callouts.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<div id="callout-wrapper">
22
<aside class="result-callout">
3-
<i></i>
3+
<i class="fa-light fa-magnifying-glass"></i>
44
<div>
55
<h4>Refine your search</h4>
66
<p>Use advanced search features to expand or filter your search.</p>
77
<a href="#">Search Primo</a>
88
</div>
99
</aside>
1010
<aside class="result-callout">
11-
<i></i>
11+
<i class="fa-light fa-book"></i>
1212
<div>
1313
<h4>Can’t find a book?</h4>
1414
<p>If we don’t own it you can often request it from another library.</p>

app/views/search/_results_sidebar.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<aside id="results-sidebar">
22
<div>
3-
<i></i>
3+
<i class="fa-light fa-message"></i>
44
<div>
55
<h4>Were these results useful?</h4>
66
<p>Your feedback can help shape the quality and relevance of our search results.</p>
77
<a href="#">Send feedback</a>
88
</div>
99
</div>
1010
<div>
11-
<i></i>
11+
<i class="fa-light fa-user"></i>
1212
<div>
1313
<h4>Get help from expert librarians</h4>
1414
<p>From thesis research to course reserves, we can help you find what you need.</p>

0 commit comments

Comments
 (0)