ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

commit 0e7086bca053999eb7a0b845345b97d4d84ae5f9
parent 4f9bb8bb4a07248510040bbd4bd7e10b9d8ce2fc
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Tue, 19 May 2020 14:32:06 +0700

style: change blue in light mode, and fix codeblock background

Diffstat:
Massets/styles.scss | 23+++++++++++------------
Massets/variables.scss | 2+-

2 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/assets/styles.scss b/assets/styles.scss
@@ -32,13 +32,21 @@ hr {
   }
 }
 
+pre {
+  overflow: auto;
+  padding: 0.5em;
+}
+
+:not(pre) > code {
+  @include themify($themes) {
+    background-color: themed('color-background-hover');
+  }
+}
+
 code {
   padding: 0.1em;
   font-family: $font-mono;
   font-size: 0.9em;
-  @include themify($themes) {
-    background-color: themed('color-background-hover');
-  }
   &.language-bash {
     &:before {
       content: "$ ";
@@ -46,15 +54,6 @@ code {
   }
 }
 
-div.highlight > pre {
-  @include themify($themes) {
-    background-color: themed('color-background-hover') !important;
-  }
-  overflow: auto;
-  padding: 0.5em;
-}
-
-
 @media (max-width: 599px) {
   html {
     font-size: 15px;
diff --git a/assets/variables.scss b/assets/variables.scss
@@ -26,7 +26,7 @@ $themes: (
     color-background-hover: #D4D1C7,
     color-border: #555555,
     color-red: #C31B00,
-    color-blue: #2585FF,
+    color-blue: #2263b6,
     color-green: #257933,
   ),
   dark: (