From ffd457716e6b9ec0d01020c7ba024c89dc1dde99 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Sat, 10 Jul 2021 08:13:51 +0530 Subject: [PATCH] Improve syntax highlighting and add accent color --- themes/gokarna/static/css/dark.css | 9 ++------- themes/gokarna/static/css/main.css | 11 ++++++----- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/themes/gokarna/static/css/dark.css b/themes/gokarna/static/css/dark.css index a95d169..e1484ff 100644 --- a/themes/gokarna/static/css/dark.css +++ b/themes/gokarna/static/css/dark.css @@ -1,6 +1,6 @@ html { background: #121212 !important; - color: #e2e2e2 !important; + color: white !important; } a { @@ -9,13 +9,8 @@ a { .header { box-shadow: rgba(102, 102, 102, 0.5) 0px 1px 2px 0px; -} - -.header, -code, -pre { background-color: #1f1f1f !important; - color: #e2e2e2 !important; + color: white !important; } .nav-links .nav-icons-divider { diff --git a/themes/gokarna/static/css/main.css b/themes/gokarna/static/css/main.css index c16c9ca..143d503 100644 --- a/themes/gokarna/static/css/main.css +++ b/themes/gokarna/static/css/main.css @@ -1,5 +1,5 @@ :root { - --color-blue: #0058b5; + --accent-color: #ff4d4d; --content-width: 810px; } @@ -22,7 +22,7 @@ a { } a:hover { - color: var(--color-blue) !important; + color: var(--accent-color) !important; } main#content { @@ -153,8 +153,8 @@ img { padding: 0; } .post-tags .post-tag { - background-color: var(--color-blue); - border: 1px solid var(--color-blue); + background-color: var(--accent-color); + border: 1px solid var(--accent-color); border-radius: 4px; box-sizing: border-box; color: white; @@ -174,8 +174,9 @@ img { /* CODE BLOCKS */ code, pre { - background-color: #eee !important; + background-color: #1f1f1f !important; box-sizing: border-box; + color: white; } pre {