Skip to content

Commit 860d71d

Browse files
committed
Second batch of styling tweaks
1 parent 3383ac8 commit 860d71d

File tree

1 file changed

+60
-55
lines changed

1 file changed

+60
-55
lines changed

app/assets/stylesheets/partials/_results.scss

Lines changed: 60 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@
175175

176176
.pub-info {
177177
font-size: $fs-base;
178-
color: $color-text-secondary;
179178

180179
span {
181180
&::after, &:first-child::after {
@@ -194,33 +193,39 @@
194193
}
195194

196195
.result-subjects, .result-summary {
197-
font-size: 1.6rem;
196+
font-size: 1.4rem;
198197
margin-bottom: 8px;
198+
color: $color-text-secondary;
199199
}
200200

201201
.result-subjects {
202202
color: $color-text-secondary;
203203

204-
li {
205-
margin-bottom: 0;
204+
ul {
205+
line-clamp: 1;
206+
-webkit-line-clamp: 1;
206207

207-
&::after {
208-
content: "";
209-
color: $color-text-disabled;
210-
}
208+
li {
209+
margin-bottom: 0;
211210

212-
&:last-child::after {
213-
content: " ";
214-
}
211+
&::after {
212+
content: "";
213+
color: $color-text-disabled;
214+
}
215+
216+
&:last-child::after {
217+
content: " ";
218+
}
215219

220+
}
216221
}
217222

218223
}
219224

220225
.result-highlights.use {
221226
margin-top: 0;
222227

223-
h4, strong {font-weight: $fw-semibold;}
228+
h4, strong {font-weight: $fw-medium;}
224229

225230
ul {
226231
list-style: disc outside;
@@ -229,7 +234,7 @@
229234

230235
li {
231236
margin-left: 0.6rem;
232-
font-size: 1.6rem;
237+
font-size: 1.4rem;
233238
}
234239
}
235240
}
@@ -238,62 +243,62 @@
238243
background-color: $color-highlight;
239244
}
240245

241-
&.use, &.primo {
242-
.result-metadata {
243-
margin-bottom: 16px;
244-
}
246+
.result-metadata {
247+
margin-bottom: 16px;
248+
}
245249

246-
.pub-info {
247-
margin-bottom: 4px;
248-
}
250+
.pub-info {
251+
margin-bottom: 4px;
252+
}
249253

250-
ul.contributors {
251-
li {
252-
font-weight: $fw-normal;
254+
ul.contributors {
255+
line-clamp: 1;
256+
-webkit-line-clamp: 1;
257+
margin-bottom: 12px;
258+
259+
li {
260+
font-weight: $fw-normal;
253261

254-
a {
255-
color: $color-text-secondary;
256-
text-decoration: none;
262+
a {
263+
text-decoration: none;
257264

258-
&:hover {
259-
text-decoration: underline;
260-
}
265+
&:hover {
266+
text-decoration: underline;
261267
}
262268
}
263269
}
270+
}
264271

265-
.inner-heading {
266-
font-size: 1.6rem;
267-
font-family: $base-font; // Since we're using 16px, override to use body font
268-
}
269-
270-
.result-get {
271-
display: flex;
272-
align-items: center;
273-
gap: 24px;
274-
}
275-
276-
// Make result buttons present as underlined links
277-
a.button {
278-
@include underlinedLinks;
279-
font-weight: $fw-medium;
280-
font-size: 1.6rem;
281-
}
272+
.inner-heading {
273+
font-size: 1.6rem;
274+
font-family: $base-font; // Since we're using 16px, override to use body font
275+
}
282276

283-
// Except the first button, which should present as a secondary button
284-
.result-get > a.button:first-child {
285-
@include buttonSecondary;
286-
}
277+
.result-get {
278+
display: flex;
279+
align-items: center;
280+
gap: 24px;
281+
}
287282

288-
// Loading skeleton when a button isn't available
289-
span.skeleton-loader {
290-
@include skeleton-loader(112px);
291-
}
283+
// Make result buttons present as underlined links
284+
a.button {
285+
@include underlinedLinks;
286+
font-weight: $fw-medium;
287+
font-size: 1.6rem;
288+
}
292289

293-
.truncate-list li:last-child {margin-bottom: 0;}
290+
// Except the first button, which should present as a secondary button
291+
.result-get > a.button:first-child {
292+
@include buttonSecondary;
293+
}
294294

295+
// Loading skeleton when a button isn't available
296+
span.skeleton-loader {
297+
@include skeleton-loader(112px);
295298
}
296299

300+
.truncate-list li:last-child {margin-bottom: 0;}
301+
297302
.availability {
298303
color: $color-text-secondary;
299304

0 commit comments

Comments
 (0)