From 56c680d7a7dcb8971c63e3d38f8f775012b8381a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 20 Feb 2022 17:32:37 +0100 Subject: [PATCH] theme: make relearn color neutral --- static/css/theme-relearn-dark.css | 2 +- static/css/theme-relearn-light.css | 6 +++--- static/css/theme.css | 8 ++++---- static/css/variant.css | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/static/css/theme-relearn-dark.css b/static/css/theme-relearn-dark.css index d33027fbc6..440d9c70ea 100644 --- a/static/css/theme-relearn-dark.css +++ b/static/css/theme-relearn-dark.css @@ -19,7 +19,7 @@ --CODE-BLOCK-BORDER-color: #2b2b2b; /* color of block code border */ --CODE-INLINE-color: #82e550; /* color for inline code text */ - --CODE-INLINE-BG-color: #282a36; /* color for inline code background */ + --CODE-INLINE-BG-color: #2d2d2d; /* color for inline code background */ --CODE-INLINE-BORDER-color: #464646; /* color of inline code border */ --MENU-HOME-LINK-color: #323232; /* Color of the home button text */ diff --git a/static/css/theme-relearn-light.css b/static/css/theme-relearn-light.css index 1d8ba07899..1aa0096b4c 100644 --- a/static/css/theme-relearn-light.css +++ b/static/css/theme-relearn-light.css @@ -7,7 +7,7 @@ :root { --MAIN-TEXT-color: #101010; /* Color of text by default */ - --MAIN-TITLES-TEXT-color: #444753; /* Color of titles h2-h3-h4-h5-h6 */ + --MAIN-TITLES-TEXT-color: #4a4a4a; /* Color of titles h2-h3-h4-h5-h6 */ --MAIN-LINK-color: #486ac9; /* Color of links */ --MAIN-LINK-HOVER-color: #134fbf; /* Color of hovered links */ --MAIN-ANCHOR-color: #486ac9; /* color of anchors on titles */ @@ -32,8 +32,8 @@ --MENU-SEARCH-BG-color: #323232; /* Search field background color (by default borders + icons) */ --MENU-SEARCH-BOX-color: #e0e0e0; /* Override search field border color */ - --MENU-SECTIONS-ACTIVE-BG-color: #202028; /* Background color of the active section and its children */ - --MENU-SECTIONS-BG-color: #282830; /* Background color of other sections */ + --MENU-SECTIONS-ACTIVE-BG-color: rgba( 0, 0, 0, .166 ); /* Background color of the active section and its children */ + --MENU-SECTIONS-BG-color: #282828; /* Background color of other sections */ --MENU-SECTIONS-LINK-color: #bababa; /* Color of links in menu */ --MENU-SECTIONS-LINK-HOVER-color: #ffffff; /* Color of links in menu, when hovered */ --MENU-SECTION-ACTIVE-CATEGORY-color: #444444; /* Color of active category text */ diff --git a/static/css/theme.css b/static/css/theme.css index 7d4a135dec..497e966561 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -87,7 +87,7 @@ th { } #sidebar { - background: #282830; /* var(--MENU-SECTIONS-BG-color) */ + background: #282828; /* var(--MENU-SECTIONS-BG-color) */ bottom: 0; display: flex; flex-direction: column; @@ -224,7 +224,7 @@ th { } #sidebar ul.topics > li.parent { - background-color: #202028; /* var(--MENU-SECTIONS-ACTIVE-BG-color) */ + background-color: rgba( 0, 0, 0, .166 ); /* var(--MENU-SECTIONS-ACTIVE-BG-color) */ margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; @@ -421,7 +421,7 @@ h1 { } h2, h3, h4, h5, h6 { - color: #444753; /* var(--MAIN-TITLES-TEXT-color) */ + color: #4a4a4a; /* var(--MAIN-TITLES-TEXT-color) */ font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; letter-spacing: -1px; text-rendering: optimizeLegibility; @@ -585,7 +585,7 @@ div.box.transparent { } div.box.transparent > .box-label { - color: #444753; /* var(--MAIN-TITLES-TEXT-color) */ + color: #4a4a4a; /* var(--MAIN-TITLES-TEXT-color) */ } div.box.transparent > .box-content { diff --git a/static/css/variant.css b/static/css/variant.css index f0ecf3ee08..47c954bbc7 100644 --- a/static/css/variant.css +++ b/static/css/variant.css @@ -32,7 +32,8 @@ --INTERNAL-MENU-SEARCH-color: var(--MENU-SEARCH-color, #e0e0e0); --INTERNAL-MENU-SEARCH-BG-color: var(--MENU-SEARCH-BG-color, #323232); --INTERNAL-MENU-SEARCH-BOX-color: var(--MENU-SEARCH-BOX-color, var(--INTERNAL-MENU-SEARCH-BG-color)); - --INTERNAL-MENU-SECTIONS-ACTIVE-BG-color: var(--MENU-SECTIONS-ACTIVE-BG-color, #202028); + + --INTERNAL-MENU-SECTIONS-ACTIVE-BG-color: var(--MENU-SECTIONS-ACTIVE-BG-color, rgba( 0, 0, 0, .166 )); --INTERNAL-MENU-SECTIONS-BG-color: var(--MENU-SECTIONS-BG-color, #282830); --INTERNAL-MENU-SECTIONS-LINK-color: var(--MENU-SECTIONS-LINK-color, #bababa); --INTERNAL-MENU-SECTIONS-LINK-HOVER-color: var(--MENU-SECTIONS-LINK-HOVER-color, var(--INTERNAL-MENU-SECTIONS-LINK-color));