Skip to content

Commit

Permalink
Merge pull request #1568 from ubyssey/1567-style-hyperlinks-in-header…
Browse files Browse the repository at this point in the history
…-elements

style heading hyperlinks
  • Loading branch information
SamuelmdLow authored Nov 26, 2024
2 parents 009c004 + 8a10416 commit 81bfecd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ubyssey/static_src/src/styles/modules/article/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,25 @@ div.article-content {
text-align: right;
}

h1, h2, h3, h4 {
> a {
text-decoration: none;
background-image: linear-gradient($color-ubyssey-blue, $color-ubyssey-blue);
background-position: 0 calc(100% - 0.1em);
background-repeat: no-repeat;
background-size: 100% 0.25em;
transition: background-size 0.3s ease;
color: inherit;
position: relative;
z-index: 1;

&:hover {
background-size: 100% 100%;
color: #fff;
}
}
}

> p,
> h1,
> h2 {
Expand Down

0 comments on commit 81bfecd

Please sign in to comment.