mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
variant: add zen variant in light and dark #613
This commit is contained in:
parent
574b7d3be6
commit
3dce59264e
4 changed files with 108 additions and 1 deletions
|
@ -220,7 +220,7 @@ title = "Hugo Relearn Documentation"
|
||||||
disableLandingPageButton = true
|
disableLandingPageButton = true
|
||||||
breadcrumbSeparator = ">"
|
breadcrumbSeparator = ">"
|
||||||
titleSeparator = "::"
|
titleSeparator = "::"
|
||||||
themeVariant = [ "auto", "relearn-bright", "relearn-light", "relearn-dark", "learn", "neon", "blue", "green", "red" ]
|
themeVariant = [ "auto", "relearn-bright", "relearn-light", "relearn-dark", "zen-light", "zen-dark", "neon", "learn", "blue", "green", "red" ]
|
||||||
themeVariantAuto = [ "relearn-light", "relearn-dark" ]
|
themeVariantAuto = [ "relearn-light", "relearn-dark" ]
|
||||||
disableSeoHiddenPages = true
|
disableSeoHiddenPages = true
|
||||||
# this is to index search for your native language in other languages, too (eg.
|
# this is to index search for your native language in other languages, too (eg.
|
||||||
|
|
|
@ -20,6 +20,8 @@ This document shows you what's new in the latest release. For a detailed list of
|
||||||
|
|
||||||
## 5.19.0 (0000-00-00) {#000}
|
## 5.19.0 (0000-00-00) {#000}
|
||||||
|
|
||||||
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has added two new color variants `zen-light` and `zen-dark`.
|
||||||
|
|
||||||
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 10.3.1. This adds support for the [sankey diagram type]({{% relref "shortcodes/mermaid#sankey" %}}) and now comes with full support for YAML inside Mermaid graphs (previously, the theme ignored explicit Mermaid theme settings in YAML).
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The theme has updated its Mermaid dependency to 10.3.1. This adds support for the [sankey diagram type]({{% relref "shortcodes/mermaid#sankey" %}}) and now comes with full support for YAML inside Mermaid graphs (previously, the theme ignored explicit Mermaid theme settings in YAML).
|
||||||
|
|
||||||
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Translation into Hungarian.
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} Translation into Hungarian.
|
||||||
|
|
53
static/css/theme-zen-dark.css
Normal file
53
static/css/theme-zen-dark.css
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
/* here in this showcase we use our own modified chroma syntax highlightning style;
|
||||||
|
if you want to use a predefined style instead:
|
||||||
|
- remove `markup.highlight.noClasses` from your config.toml
|
||||||
|
- set `markup.highlight.style` to a predefined style name in your config.toml
|
||||||
|
- remove the following `@import` of the self-defined chroma stylesheet */
|
||||||
|
@import "chroma-relearn-dark.css";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--PRIMARY-color: rgba( 131, 201, 50, 1 ); /* brand primary color */
|
||||||
|
--SECONDARY-color: rgba( 47, 129, 235, 1 ); /* brand secondary color */
|
||||||
|
--ACCENT-color: rgba( 255, 136, 255, 1 ); /* brand accent color, used for search highlights */
|
||||||
|
--MAIN-TEXT-color: rgba( 224, 224, 224, 1 ); /* text color of content and h1 titles */
|
||||||
|
--MAIN-LINK-HOVER-color: rgb(112, 174, 245); /* hovered link color of content */
|
||||||
|
--MAIN-BG-color: rgba( 32, 32, 32, 1 ); /* background color of content */
|
||||||
|
--MAIN-TITLES-TEXT-color: rgba( 255, 255, 255, 1 ); /* text color of h2-h6 titles and transparent box tles */
|
||||||
|
/* adjusted to relearn-dark chroma style */
|
||||||
|
--CODE-BLOCK-color: rgba( 248, 248, 248, 1 ); /* fallback text color of block code; should be adjusted your selected chroma style */
|
||||||
|
--CODE-BLOCK-BG-color: rgba( 43, 43, 43, 1 ); /* fallback background color of block code; should be justed to your selected chroma style */
|
||||||
|
--CODE-BLOCK-BORDER-color: rgba( 71, 71, 71, 1 ); /* border color of block code */
|
||||||
|
--CODE-INLINE-color: rgba( 130, 229, 80, 1 ); /* text color of inline code */
|
||||||
|
--CODE-INLINE-BG-color: rgba( 45, 45, 45, 1 ); /* background color of inline code */
|
||||||
|
--CODE-INLINE-BORDER-color: rgba( 71, 71, 71, 1 ); /* border color of inline code */
|
||||||
|
--BROWSER-theme: dark; /* name of the theme for browser scrollbars of the main section */
|
||||||
|
--MERMAID-theme: dark; /* name of the default Mermaid theme for this variant, can be overridden in nfig.toml */
|
||||||
|
--OPENAPI-theme: dark; /* name of the default OpenAPI theme for this variant, can be overridden in nfig.toml */
|
||||||
|
--OPENAPI-CODE-theme: obsidian; /* name of the default OpenAPI code theme for this variant, can be erridden in config.toml */
|
||||||
|
--MENU-HEADER-BG-color: transparent; /* background color of menu header */
|
||||||
|
--MENU-HEADER-BORDER-color: transparent; /* separator color of menu header */
|
||||||
|
--MENU-HOME-LINK-color: rgba( 224, 224, 224, 1 ); /* home button color if configured */
|
||||||
|
--MENU-HOME-LINK-HOVER-color: rgba( 0, 0, 0, 1 ); /* hovered home button color if configured */
|
||||||
|
--MENU-SEARCH-color: rgba( 47, 129, 235, 1 ); /* text and icon color of search box */
|
||||||
|
--MENU-SEARCH-BG-color: rgba( 32, 32, 32, 1 ); /* background color of search box */
|
||||||
|
--MENU-SEARCH-BORDER-color: rgba( 71, 71, 71, .66 ); /* border color of search box */
|
||||||
|
--MENU-SECTIONS-BG-color: rgba( 39, 39, 39, 1 ); /* background of the menu; this is NOT just a color lue but can be a complete CSS background definition including gradients, etc. */
|
||||||
|
--MENU-SECTIONS-ACTIVE-BG-color: transparent; /* background color of the active menu section */
|
||||||
|
--MENU-SECTIONS-LINK-color: rgba( 224, 224, 224, .75 ); /* link color of menu topics */
|
||||||
|
--MENU-SECTIONS-LINK-HOVER-color: rgba( 47, 129, 235, 1 ); /* hoverd link color of menu topics */
|
||||||
|
--MENU-SECTION-ACTIVE-CATEGORY-color: rgba( 47, 129, 235, 1 ); /* text color of the displayed menu topic */
|
||||||
|
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: rgba( 32, 32, 32, 1 ); /* background color of the displayed menu topic */
|
||||||
|
--MENU-SECTION-HR-color: rgba( 71, 71, 71, 1 ); /* separator color of menu footer */
|
||||||
|
--BOX-CAPTION-color: rgba( 240, 240, 240, 1 ); /* text color of colored box titles */
|
||||||
|
--BOX-BG-color: rgba( 20, 20, 20, 1 ); /* background color of colored boxes */
|
||||||
|
--BOX-TEXT-color: rgba( 224, 224, 224, 1 ); /* text color of colored box content */
|
||||||
|
--BOX-GREY-color: rgba( 71, 71, 71, 1 ); /* background color of grey boxes */
|
||||||
|
}
|
||||||
|
|
||||||
|
body a#logo,
|
||||||
|
body a#logo:hover,
|
||||||
|
body #logo svg,
|
||||||
|
body #logo svg * {
|
||||||
|
color: var(--MENU-HOME-LINK-color);
|
||||||
|
fill: var(--MENU-HOME-LINK-color) !important;
|
||||||
|
}
|
52
static/css/theme-zen-light.css
Normal file
52
static/css/theme-zen-light.css
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
/* here in this showcase we use our own modified chroma syntax highlightning style;
|
||||||
|
if you want to use a predefined style instead:
|
||||||
|
- remove `markup.highlight.noClasses` from your config.toml
|
||||||
|
- set `markup.highlight.style` to a predefined style name in your config.toml
|
||||||
|
- remove the following `@import` of the self-defined chroma stylesheet */
|
||||||
|
@import "chroma-relearn-light.css";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--PRIMARY-color: rgba( 131, 201, 50, 1 ); /* brand primary color */
|
||||||
|
--SECONDARY-color: rgba( 26, 115, 232, 1 ); /* brand secondary color */
|
||||||
|
--ACCENT-color: rgba( 255, 136, 255, 1 ); /* brand accent color, used for search highlights */
|
||||||
|
--MAIN-LINK-HOVER-color: rgba( 32, 40, 145, 1 ); /* hoverd link color of content */
|
||||||
|
--MAIN-BG-color: /* background color of content */
|
||||||
|
--MAIN-TEXT-color: rgba( 16, 16, 16, 1 ); /* text color of content and h1 titles */
|
||||||
|
--MAIN-TITLES-TEXT-color: rgba( 74, 74, 74, 1 ); /* text color of h2-h6 titles and transparent box titles */
|
||||||
|
--CODE-BLOCK-color: rgba( 0, 0, 0, 1 ); /* fallback text color of block code; should be adjusted to your selected chroma style */
|
||||||
|
--CODE-BLOCK-BG-color: rgba( 248, 248, 248, 1 ); /* fallback background color of block code; should be adjusted to your selected chroma style */
|
||||||
|
--CODE-BLOCK-BORDER-color: rgba( 210, 210, 210, 1 ); /* border color of block code */
|
||||||
|
--CODE-INLINE-color: rgba( 94, 94, 94, 1 ); /* text color of inline code */
|
||||||
|
--CODE-INLINE-BG-color: rgba( 255, 250, 233, 1 ); /* background color of inline code */
|
||||||
|
--CODE-INLINE-BORDER-color: rgba( 248, 232, 200, 1 ); /* border color of inline code */
|
||||||
|
--BROWSER-theme: light; /* name of the theme for browser scrollbars of the main section */
|
||||||
|
--MERMAID-theme: default; /* name of the default Mermaid theme for this variant, can be overridden in config.toml */
|
||||||
|
--OPENAPI-theme: light; /* name of the default OpenAPI theme for this variant, can be overridden in config.toml */
|
||||||
|
--OPENAPI-CODE-theme: obsidian; /* name of the default OpenAPI coee theme for this variant, can be overridden in config.toml */
|
||||||
|
--MENU-HEADER-BG-color: transparent; /* background color of menu header */
|
||||||
|
--MENU-HEADER-BORDER-color: transparent; /* separator color of menu header */
|
||||||
|
--MENU-HOME-LINK-color: rgba( 64, 64, 64, 1 ); /* home button color if configured */
|
||||||
|
--MENU-HOME-LINK-HOVER-color: rgba( 0, 0, 0, 1 ); /* hoverd home button color if configured */
|
||||||
|
--MENU-SEARCH-color: rgba( 26, 115, 232, 1 ); /* text and icon color of search box */
|
||||||
|
--MENU-SEARCH-BG-color: rgba( 255, 255, 255, 1 ); /* background color of search box */
|
||||||
|
--MENU-SEARCH-BORDER-color: rgba( 210, 210, 210, .66 ); /* border color of search box */
|
||||||
|
--MENU-SECTIONS-BG-color: rgba( 134, 134, 134, .066 ); /* background of the menu; this is NOT just a color value but can be a complete CSS background definition including gradients, etc. */
|
||||||
|
--MENU-SECTIONS-ACTIVE-BG-color: transparent; /* background color of the active menu section */
|
||||||
|
--MENU-SECTIONS-LINK-color: rgba( 16, 16, 16, 1 ); /* link color of menu topics */
|
||||||
|
--MENU-SECTIONS-LINK-HOVER-color: rgba( 26, 115, 232, 1 ); /* hoverd link color of menu topics */
|
||||||
|
--MENU-SECTION-ACTIVE-CATEGORY-color: rgba( 26, 115, 232, 1 ); /* text color of the displayed menu topic */
|
||||||
|
--MENU-SECTION-ACTIVE-CATEGORY-BG-color: rgba( 255, 255, 255, 1 ); /* background color of the displayed menu topic */
|
||||||
|
--MENU-SECTION-HR-color: rgba( 210, 210, 210, 1 ); /* separator color of menu footer */
|
||||||
|
--BOX-CAPTION-color: rgba( 255, 255, 255, 1 ); /* text color of colored box titles */
|
||||||
|
--BOX-BG-color: rgba( 255, 255, 255, .833 ); /* background color of colored boxes */
|
||||||
|
--BOX-TEXT-color: rgba( 16, 16, 16, 1 ); /* text color of colored box content */
|
||||||
|
--BOX-GREY-color: rgba( 210, 210, 210, 1 ); /* background color of grey boxes */
|
||||||
|
}
|
||||||
|
|
||||||
|
body a#logo,
|
||||||
|
body a#logo:hover,
|
||||||
|
body #logo svg,
|
||||||
|
body #logo svg * {
|
||||||
|
color: var(--MENU-HOME-LINK-color);
|
||||||
|
fill: var(--MENU-HOME-LINK-color) !important;
|
||||||
|
}
|
Loading…
Reference in a new issue