Skip to content

Commit bc1f1c2

Browse files
committed
Added more search options link and styled accordingly
1 parent 3f1acf8 commit bc1f1c2

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

app/assets/stylesheets/partials/_search.scss

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
// #SEARCH BITS
33
// ------------------------
44

5+
/* Shared link styling */
6+
@mixin searchUnderlinedLinks {
7+
color: $color-text-oncolor;
8+
font-weight: $fw-medium;
9+
text-decoration: underline;
10+
text-decoration-color: $color-red-500;
11+
text-underline-offset: 0.5rem;
12+
}
13+
514
/* New USE UI search styles */
615
#search-form {
716
margin: 0;
@@ -219,16 +228,11 @@
219228
a {
220229
padding: 12px 20px 16px;
221230
background-color: transparent;
222-
color: $color-text-oncolor;
223231
display: inline-block;
224-
font-weight: $fw-medium;
225-
226232
border: 2px solid transparent;
227-
border-bottom: 0;
233+
border-bottom: 0;
228234

229-
text-decoration: underline;
230-
text-decoration-color: $color-red-500;
231-
text-underline-offset: 0.5rem;
235+
@include searchUnderlinedLinks;
232236

233237
&:hover {
234238
border-color: $color-gray-700;
@@ -249,4 +253,19 @@
249253

250254
}
251255

256+
}
257+
258+
/* ============== */
259+
/* Search Actions */
260+
/* ============== */
261+
262+
.search-actions {
263+
padding-top: 16px;
264+
padding-bottom: 8px;
265+
display: flex;
266+
gap: 24px;
267+
268+
a {
269+
@include searchUnderlinedLinks();
270+
}
252271
}

app/views/search/_form.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<input id="tab-to-target" type="hidden" name="tab" value="<%= @active_tab %>">
66
<button type="submit" class="btn button-primary">Search</button>
77
</div>
8+
<div class="search-actions">
9+
<a href="https://libraries.mit.edu/search/">More search options</a>
10+
</div>
811
</form>
912

1013
<% if Feature.enabled?(:boolean_picker) %>

0 commit comments

Comments
 (0)