From 4942c71cbccd383a1779851fd774b7341f331ddf Mon Sep 17 00:00:00 2001 From: Diab Neiroukh Date: Tue, 9 Feb 2021 23:14:21 +0000 Subject: [PATCH 1/2] assets: scss: Improve hyperlink formatting. Signed-off-by: Diab Neiroukh --- assets/scss/pages/post.scss | 18 ++++++++++++++++++ assets/scss/pages/posts.scss | 2 +- assets/scss/partials/_nav.scss | 6 +----- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/assets/scss/pages/post.scss b/assets/scss/pages/post.scss index 13c84c14..3605d5a2 100644 --- a/assets/scss/pages/post.scss +++ b/assets/scss/pages/post.scss @@ -239,3 +239,21 @@ table { border: 1px double $greyTableBorder; } } + +p { + a { + text-decoration: none; + + &:link { + color: #2196f3; + } + + &:visited { + color: #673ab7; + } + } + + a:active { + color: #f44336; + } +} diff --git a/assets/scss/pages/posts.scss b/assets/scss/pages/posts.scss index 4a89154a..14fb371f 100644 --- a/assets/scss/pages/posts.scss +++ b/assets/scss/pages/posts.scss @@ -46,7 +46,7 @@ } &:hover { - color: $darkGrey; + color: $primary; } } diff --git a/assets/scss/partials/_nav.scss b/assets/scss/partials/_nav.scss index e323283d..4ffbe7e4 100644 --- a/assets/scss/partials/_nav.scss +++ b/assets/scss/partials/_nav.scss @@ -69,11 +69,7 @@ font-size: 2em; &.active { - color: $black; - } - - &:hover { - color: $black; + color: $primary; } @media screen and (min-width: $medium) { From b2985ce86f257c3d10d04817d6cf464bba0e979a Mon Sep 17 00:00:00 2001 From: Diab Neiroukh Date: Tue, 9 Feb 2021 15:46:42 +0000 Subject: [PATCH 2/2] assets: scss: Mark with a softer tone of yellow. This allows marking to look good on both light and dark themes. --- assets/scss/pages/post.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/scss/pages/post.scss b/assets/scss/pages/post.scss index 3605d5a2..f4b9815e 100644 --- a/assets/scss/pages/post.scss +++ b/assets/scss/pages/post.scss @@ -257,3 +257,7 @@ p { color: #f44336; } } + +mark { + background-color: #ffee58; +}