diff --git a/assets/scss/_base_dark.scss b/assets/scss/_base_dark.scss
index e14e502..8f40861 100644
--- a/assets/scss/_base_dark.scss
+++ b/assets/scss/_base_dark.scss
@@ -1,5 +1,4 @@
@mixin base_dark {
-
color: $fg-color-dark;
background-color: $bg-color-dark;
@@ -32,18 +31,18 @@
border-left: 2px solid $alt-bg-color-dark;
}
- table td, table th {
+ table td,
+ table th {
border: 2px solid $alt-fg-color-dark;
}
-
}
body.colorscheme-dark {
- @include base_dark()
+ @include base_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
- @include base_dark()
+ @include base_dark();
}
}
diff --git a/assets/scss/_footer.scss b/assets/scss/_footer.scss
index 286c393..586593f 100644
--- a/assets/scss/_footer.scss
+++ b/assets/scss/_footer.scss
@@ -1,9 +1,32 @@
.footer {
width: 100%;
text-align: center;
- line-height: 2.0rem;
- margin-bottom:1.0rem;
+ font-size: 0.8em;
+ line-height: 2rem;
+ margin-bottom: 1rem;
a {
color: $link-color;
}
}
+
+.cs-mode-container {
+ margin: 0 0 0 0.3em;
+}
+
+.cs-mode-button {
+ padding: 0 0.3em;
+ border: none;
+ background: transparent;
+ font-family: $heading-font-family;
+ cursor: pointer;
+
+ &:hover {
+ color: $link-color;
+ text-decoration: underline;
+ }
+}
+
+.cs-mode-state {
+ text-transform: capitalize;
+ font-weight: $heading-font-weight--bold;
+}
diff --git a/assets/scss/_footer_dark.scss b/assets/scss/_footer_dark.scss
index 45fedb8..ac78e72 100644
--- a/assets/scss/_footer_dark.scss
+++ b/assets/scss/_footer_dark.scss
@@ -4,14 +4,23 @@
color: $link-color-dark;
}
}
+
+ .cs-mode-button {
+ color: $fg-color-dark;
+
+ &:hover {
+ color: $link-color-dark;
+ text-decoration: underline;
+ }
+ }
}
body.colorscheme-dark {
- @include footer_dark()
+ @include footer_dark();
}
body.colorscheme-auto {
@media (prefers-color-scheme: dark) {
- @include footer_dark()
+ @include footer_dark();
}
}
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b746991..2d63bad 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -51,7 +51,7 @@
{{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts }}
-
+
{{ else }}
{{ $cssOpts := (dict "targetPath" "css/coder-dark.css" ) }}
{{ $styles := resources.Get "scss/coder-dark.scss" | resources.ExecuteAsTemplate "style.coder-dark.css" . | toCSS $cssOpts | minify | fingerprint }}
@@ -108,6 +108,7 @@
{{ template "_internal/google_analytics.html" . }}
+