Skip to content

Commit d24806e

Browse files
authored
Merge pull request #273 from MITLibraries/use-61-morelink
Added more search options link below search box
2 parents 3f1acf8 + 0ad2306 commit d24806e

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

app/assets/stylesheets/partials/_search.scss

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
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+
&:hover {
14+
color: $color-red-400;
15+
}
16+
}
17+
518
/* New USE UI search styles */
619
#search-form {
720
margin: 0;
@@ -219,20 +232,16 @@
219232
a {
220233
padding: 12px 20px 16px;
221234
background-color: transparent;
222-
color: $color-text-oncolor;
223235
display: inline-block;
224-
font-weight: $fw-medium;
225-
226236
border: 2px solid transparent;
227-
border-bottom: 0;
237+
border-bottom: 0;
228238

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

233241
&:hover {
234242
border-color: $color-gray-700;
235243
background-color: $color-gray-900;
244+
color: $color-text-oncolor;
236245
}
237246

238247
&.active {
@@ -249,4 +258,19 @@
249258

250259
}
251260

261+
}
262+
263+
/* ============== */
264+
/* Search Actions */
265+
/* ============== */
266+
267+
.search-actions {
268+
padding-top: 16px;
269+
padding-bottom: 8px;
270+
display: flex;
271+
gap: 24px;
272+
273+
a {
274+
@include searchUnderlinedLinks();
275+
}
252276
}

app/assets/stylesheets/partials/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ $color-gray-950: #1a1a1a;
1616
$color-gray-975: #191919;
1717

1818
// RED
19+
$color-red-300: #FF6666;
20+
$color-red-400: #FF3333;
1921
$color-red-500: #ff0000;
2022
$color-red-600: #e50000;
2123

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)