Skip to content

Commit 5eefa6e

Browse files
committed
Reset styling for GEO results and split from USE
1 parent 91426d3 commit 5eefa6e

File tree

2 files changed

+95
-8
lines changed

2 files changed

+95
-8
lines changed

app/assets/stylesheets/partials/_results.scss

Lines changed: 94 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,19 @@
3232
margin-top: 0;
3333
}
3434
}
35+
36+
.results-list {
37+
@media (max-width: $bp-screen-md) {
38+
.result {
39+
padding-left: 0;
40+
padding-right: 0;
41+
margin-left: 3rem;
42+
}
43+
}
44+
}
3545
}
3646

37-
.results-list {
47+
.results-list.use {
3848
list-style-type: none;
3949
padding: 0;
4050
}
@@ -43,13 +53,92 @@
4353
// Individual Results for GeoData & USE
4454
// --------------------------------------
4555

56+
.result {
57+
padding: 2rem;
58+
border-top: 1px solid $brand-primary;
59+
font-size: $fs-small;
60+
line-height: 0; /* line height needs to be reset so iOS doesn't act weird */
61+
62+
&::marker {
63+
font-size: 2.5rem;
64+
font-weight: $fw-bold;
65+
}
66+
67+
&:hover,
68+
&:focus {
69+
background-color: $gray-l4;
70+
}
71+
72+
.result-content {
73+
line-height: 1.2;
74+
75+
.record-title {
76+
font-size: 2.5rem;
77+
line-height: 1.1;
78+
}
79+
80+
a:visited {
81+
color: $brand-secondary;
82+
}
83+
84+
.pub-info {
85+
font-size: $fs-base;
86+
color: $gray-d1;
87+
span:first-child:after {
88+
content: " | ";
89+
}
90+
margin: 1em 0;
91+
}
92+
93+
.result-summary {
94+
margin-bottom: 2.4em;
95+
}
96+
97+
.result-highlights {
98+
margin-top: 1.4em;
99+
ul {
100+
list-style: none;
101+
li {
102+
margin-left: 2rem;
103+
}
104+
}
105+
}
106+
}
107+
108+
.result-get,
109+
.result-record {
110+
padding-top: 5px;
111+
a:visited {
112+
color: $white;
113+
}
114+
}
115+
116+
.result-get {
117+
a:visited {
118+
background-color: $brand-secondary;
119+
}
120+
}
121+
122+
.truncate-list {
123+
overflow: hidden;
124+
display: -webkit-box;
125+
-webkit-line-clamp: 3;
126+
-webkit-box-orient: vertical;
127+
text-overflow: ellipsis;
128+
}
129+
130+
.inner-heading {
131+
font-size: 1.8rem;
132+
line-height: 1.1;
133+
}
134+
}
46135

47136

48137
// --------------------------------------
49138
// Individual Results overrides for USE
50139
// --------------------------------------
51140

52-
li.result {
141+
li.result.use {
53142
margin-bottom: 48px;
54143

55144
.eyebrow {
@@ -184,11 +273,9 @@ li.result {
184273
}
185274
}
186275

187-
/* Start USE specific overrides */
188-
189-
// ----------------------------
190-
// Result list and Sidebar
191-
// ----------------------------
276+
// -----------------------------
277+
// Result list and Sidebar - USE
278+
// -----------------------------
192279

193280
#content-wrapper {
194281
padding-top: 12px;

app/views/search/results.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<p class="results-context-description">From all MIT Libraries sources</p>
2323
<div id="results-layout-wrapper">
2424
<main id="results">
25-
<ol class="results-list" start="<%= @pagination[:start] %>">
25+
<ol class="results-list use" start="<%= @pagination[:start] %>">
2626
<% case @active_tab %>
2727
<% when 'primo' %>
2828
<%= render(partial: 'search/result_primo', collection: @results, as: :result) %>

0 commit comments

Comments
 (0)