From 8555cf72dec9321fa010296ce6988cf7b7cf602b Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 26 Dec 2021 00:30:09 -0500 Subject: convert theme from submodule to regular files --- themes/hugo-coder | 1 - themes/hugo-coder/assets/scss/_base_dark.scss | 66 +++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) delete mode 160000 themes/hugo-coder create mode 100644 themes/hugo-coder/assets/scss/_base_dark.scss (limited to 'themes/hugo-coder/assets/scss/_base_dark.scss') diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 index 55b2a15..0000000 --- a/themes/hugo-coder +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 55b2a150f990bc56364dba347bc9acc6aab07be3 diff --git a/themes/hugo-coder/assets/scss/_base_dark.scss b/themes/hugo-coder/assets/scss/_base_dark.scss new file mode 100644 index 0000000..b6f4093 --- /dev/null +++ b/themes/hugo-coder/assets/scss/_base_dark.scss @@ -0,0 +1,66 @@ +@mixin base_dark { + color: $fg-color-dark; + background-color: $bg-color-dark; + + a { + color: $link-color-dark; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + color: $alt-fg-color-dark; + + &:hover .heading-link { + visibility: visible; + } + + .heading-link { + color: $link-color-dark; + font-weight: inherit; + text-decoration: none; + font-size: 80%; + visibility: hidden; + } + + .title-link { + color: inherit; + font-weight: inherit; + text-decoration: none; + } + } + + code { + background-color: $alt-bg-color-dark; + color: $fg-color-dark; + } + + pre { + code { + background-color: inherit; + color: inherit; + } + } + + blockquote { + border-left: 2px solid $alt-bg-color-dark; + } + + table td, + table th { + border: 2px solid $alt-fg-color-dark; + } +} + +body.colorscheme-dark { + @include base_dark(); +} + +body.colorscheme-auto { + @media (prefers-color-scheme: dark) { + @include base_dark(); + } +} -- cgit v1.2.3