Skip to content

Commit bb40ff4

Browse files
committed
new secondary link mixin and applying to result metadata
1 parent aeefa53 commit bb40ff4

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

app/assets/stylesheets/partials/_results.scss

Lines changed: 10 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,23 @@
281285
line-clamp: 1;
282286
-webkit-line-clamp: 1;
283287
margin-bottom: 4px;
288+
padding-bottom: 4px;
284289

285290
li {
286291
font-weight: $fw-normal;
287292

288293
a {
289-
text-decoration: none;
290-
291-
&:hover {
292-
text-decoration: underline;
293-
}
294+
@include underlinedSecondaryLinks;
294295
}
295296
}
296297
}
297298

298299
.result-source {
299300
font-size: $fs-base;
301+
302+
a {
303+
@include underlinedSecondaryLinks;
304+
}
300305
}
301306

302307
.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)