diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-16 16:35:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 16:35:16 +0300 |
commit | 41c2d3a38e77b5a0db8ff9d8d3f49730355f554c (patch) | |
tree | 92a82ec8f17bf17a32a08af9cb2826e833ce097d /assets | |
parent | 9a7189c2a3f52792dfa5bbd96aaa7c8626ed457c (diff) |
feat: add detection of the theme version and Hugo version (#173)
* feat: add detection of the theme version and Hugo version
* fix: hugo.IsProduction is incompatible in Hugo v0.62.0
Diffstat (limited to 'assets')
-rw-r--r-- | assets/css/_page/_single.scss | 10 | ||||
-rw-r--r-- | assets/css/_variables.scss | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/assets/css/_page/_single.scss b/assets/css/_page/_single.scss index fa588f8..ff554cd 100644 --- a/assets/css/_page/_single.scss +++ b/assets/css/_page/_single.scss @@ -314,6 +314,16 @@ word-break: break-all; } } + + .version { + font-weight: bold; + font-style: normal; + color: $global-highlight-color; + + .dark-theme & { + color: $global-highlight-color-dark; + } + } } @import "../_partial/_single/footer"; diff --git a/assets/css/_variables.scss b/assets/css/_variables.scss index 2bfe303..980949f 100644 --- a/assets/css/_variables.scss +++ b/assets/css/_variables.scss @@ -32,6 +32,10 @@ $global-link-hover-color-dark: #fff !default; // Color of the border $global-border-color: #dcdcdc !default; $global-border-color-dark: #4a4b50 !default; + +// Color of the highlight +$global-highlight-color: #df1a08 !default; +$global-highlight-color-dark: #fff !default; // ========== Global ========== // // ========== Scrollbar ========== // |