From da112157cfbc7ce0f04842c6add5154679f64b10 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Wed, 9 Sep 2020 17:22:19 +0200 Subject: [PATCH] feat(scss): make hyperlink style available outside .article-content --- assets/scss/partials/layout/article.scss | 10 ---------- assets/scss/style.scss | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index 5caf8d3..23b8763 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -280,16 +280,6 @@ } } - a.link { - box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset; - - transition: all 0.3s ease; - - &:hover { - box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset; - } - } - table { margin: 0 var(--content-padding); width: 100%; diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 58cced8..44a45ce 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -30,6 +30,15 @@ a { &:hover { color: var(--accent-color-darker); } + + &.link { + box-shadow: 0px -2px 0px rgba(var(--link-background-color), var(--link-background-opacity)) inset; + transition: all 0.3s ease; + + &:hover { + box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset; + } + } } .container {