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:
authorDjordje Atlialp <djordje@atlialp.com>2022-02-05 01:02:39 +0300
committerGitHub <noreply@github.com>2022-02-05 01:02:39 +0300
commitfff3cc7bcd46476834e5a975e13dce0766c813bd (patch)
treea98e00a6524e1c08ccc7a25f96cf324976fae109
parente95892c9892ecdc39eb455026bf237fe491eef78 (diff)
parentc56f03dbcadb01f8b93b8db92e3cad588b9ef57e (diff)
Merge pull request #354 from undergroundwires/hardcoded
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;