Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rhazdon/hugo-theme-hello-friend-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorundergroundwires <git@undergroundwires.dev>2021-12-28 00:29:54 +0300
committerundergroundwires <git@undergroundwires.dev>2021-12-28 00:29:54 +0300
commitc56f03dbcadb01f8b93b8db92e3cad588b9ef57e (patch)
treea549195b84afea83c0d0b682a7ef7ea3b38e94de
parent848b6879b3a2a201510bd11dadf37826ee038616 (diff)
Fix hardcoded color
-rw-r--r--assets/scss/_main.scss6
-rw-r--r--assets/scss/_variables.scss2
2 files changed, 5 insertions, 3 deletions
diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss
index 2761611..c232825 100644
--- a/assets/scss/_main.scss
+++ b/assets/scss/_main.scss
@@ -191,14 +191,14 @@ figure {
em, i, strong {
// Default
- color: black;
+ color: $light-color-variant;
@media (prefers-color-scheme: dark) {
- color: white;
+ color: $dark-color-variant;
}
@media (prefers-color-scheme: light) {
- color: black;
+ color: $light-color-variant;
}
[data-theme=dark] & {
diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss
index c1367cd..8bd9bc0 100644
--- a/assets/scss/_variables.scss
+++ b/assets/scss/_variables.scss
@@ -5,6 +5,7 @@ $light-background: #fff;
$light-background-secondary: #eaeaea;
$light-background-header: #fafafa;
$light-color: #222;
+$light-color-variant: black;
$light-color-secondary: #999;
$light-border-color: #dcdcdc;
$light-table-color: #dcdcdc;
@@ -14,6 +15,7 @@ $dark-background: #232425;
$dark-background-secondary: #3b3d42;
$dark-background-header: #1b1c1d;
$dark-color: #a9a9b3;
+$dark-color-variant: white;
$dark-color-secondary: #b3b3bd;
$dark-border-color: #4e4e57;
$dark-table-color: #4e4e57;