Skip to content

Commit b06d206

Browse files
authored
Merge pull request #399 from MITLibraries/use-551
USE-551: Applying secondary link styling to purple visited links
2 parents 55cf25a + da84f01 commit b06d206

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

app/assets/stylesheets/partials/_results.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@
161161
border-bottom: 1px solid $color-gray-400;
162162
border-top: none;
163163

164+
a:link, a:visited {
165+
color: $color-text-primary;
166+
}
167+
164168
&:first-child {
165169
padding-top: 0;
166170
}
@@ -281,22 +285,24 @@
281285
line-clamp: 1;
282286
-webkit-line-clamp: 1;
283287
margin-bottom: 4px;
288+
padding-bottom: 4px;
289+
line-height: 1.3;
284290

285291
li {
286292
font-weight: $fw-normal;
287293

288294
a {
289-
text-decoration: none;
290-
291-
&:hover {
292-
text-decoration: underline;
293-
}
295+
@include underlinedSecondaryLinks;
294296
}
295297
}
296298
}
297299

298300
.result-source {
299301
font-size: $fs-base;
302+
303+
a {
304+
@include underlinedSecondaryLinks;
305+
}
300306
}
301307

302308
.inner-heading {

app/assets/stylesheets/partials/_typography.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
}
1212
}
1313

14+
@mixin underlinedSecondaryLinks {
15+
@include underlinedLinks;
16+
text-decoration-color: $color-gray-400;
17+
text-underline-offset: 0.4rem;
18+
19+
&:hover {
20+
color: $color-blue-500;
21+
text-decoration-color: $color-blue-500;
22+
}
23+
}
24+
1425
// Override fonts from the theme gem, done temporarily for USE UI
1526
body {
1627
font-family: $base-font;

0 commit comments

Comments
 (0)