Skip to content

Commit

Permalink
Fix styles for existing links with '.link-pretty'
Browse files Browse the repository at this point in the history
  • Loading branch information
alinekeller committed Jul 27, 2023
1 parent cdfc4f8 commit bad2c97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
14 changes: 13 additions & 1 deletion assets/components/atoms/link/link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,19 @@ a:active {
}
*/

// Fix for existing pretty links on dark background
// Fix for existing links with class '.link-pretty'

.link-pretty.nav-link {
text-decoration: underline;
text-decoration-color: $link-hover-color;
text-decoration-thickness: 0.08em;
text-decoration-thickness: min(0.08em, 0.1rem);
text-underline-offset: 0.14em;

@include hover-focus-active {
text-decoration-color: $link-color;
}
}

.bg-dark .link-pretty,
.bg-gray-600 .link-pretty{
Expand Down
13 changes: 0 additions & 13 deletions assets/components/molecules/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,19 +202,6 @@ a.card-img-top {
}
}

a.card-title,
.card-title a {
transition: color 0.3s;

@include link-pretty($red, $body-bg, $body-color);

background-position: 0 90%;

.card-gray & {
@include link-pretty($red, gray('100'), $body-color);
}
}

// Whole card as a link
a.card {
text-decoration: none;
Expand Down
2 changes: 1 addition & 1 deletion assets/components/molecules/list-group/list-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
background: var(--card-bg);

.card-title a {
@include link-pretty($red, var(--card-bg), $body-color);
//@include link-pretty($red, var(--card-bg), $body-color);
transition: color 0.3s, text-shadow 0.25s;
}

Expand Down

0 comments on commit bad2c97

Please sign in to comment.