From 8a104161b2896aa7a8e8f9305434fd4435628402 Mon Sep 17 00:00:00 2001 From: sammi Date: Sun, 24 Nov 2024 06:47:26 +0000 Subject: [PATCH] style heading hyperlinks --- .../src/styles/modules/article/_base.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ubyssey/static_src/src/styles/modules/article/_base.scss b/ubyssey/static_src/src/styles/modules/article/_base.scss index 223859757..92617e119 100644 --- a/ubyssey/static_src/src/styles/modules/article/_base.scss +++ b/ubyssey/static_src/src/styles/modules/article/_base.scss @@ -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 {