From a8a2872367730c343fcb2810b0379a1156aabd0d Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Fri, 9 Apr 2021 22:54:36 +0300 Subject: [PATCH] (docs) Make
 code be readable in dark mode also

This is an additional fix for #174. Without this, the text used #333 on
black (#000) background, which is rather hard to read, to say the least.

This change retains the #333 color in light mode (where it makes sense),
but changes to use `inherit` in dark mode, which looks much better.
---
 .github/workflows/website.yml               | 3 +++
 docs/templates/darkerfx/styles/main.css     | 5 +++++
 docs/templates/darkerfx/styles/main.css.map | 2 +-
 docs/templates/darkerfx/styles/main.scss    | 6 ++++++
 4 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml
index ccf3071f..db0321da 100644
--- a/.github/workflows/website.yml
+++ b/.github/workflows/website.yml
@@ -14,6 +14,9 @@ jobs:
     steps:
       - uses: actions/checkout@v1
 
+      - name: Install SASS
+        run: sudo npm install -g sass
+
       - name: Build Perlang & rebuild website
         run: make -j all docs
 
diff --git a/docs/templates/darkerfx/styles/main.css b/docs/templates/darkerfx/styles/main.css
index 2f461372..592fb5d5 100644
--- a/docs/templates/darkerfx/styles/main.css
+++ b/docs/templates/darkerfx/styles/main.css
@@ -40,6 +40,7 @@ body.theme-dark {
   --theme-inline-code: inherit;
   --theme-inline-code-background: #454545;
   --theme-code-border: #404040;
+  --theme-code-color: inherit;
   --theme-border-subnav: #404040;
   --theme-border-footer: #404040; }
 
@@ -67,6 +68,7 @@ body.theme-light {
   --theme-inline-code: #c7254e;
   --theme-inline-code-background: #f9f2f4;
   --theme-code-border: #e7e7e7;
+  --theme-code-color: #333;
   --theme-border-footer: #e7e7e7; }
 
 body {
@@ -340,6 +342,9 @@ pre {
   border: 1px solid var(--theme-code-border);
   background-color: inherit; }
 
+legend, pre {
+  color: var(--theme-code-color); }
+
 /*
  * highlight.js custom theme (dark version)
  *
diff --git a/docs/templates/darkerfx/styles/main.css.map b/docs/templates/darkerfx/styles/main.css.map
index 4cad0ea6..3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GtB,6BAAa;EACT,WAAW,EAAE,IAAI",
 "sources": ["main.scss"],
 "names": [],
 "file": "main.css"
diff --git a/docs/templates/darkerfx/styles/main.scss b/docs/templates/darkerfx/styles/main.scss
index 0665dce4..10f51882 100644
--- a/docs/templates/darkerfx/styles/main.scss
+++ b/docs/templates/darkerfx/styles/main.scss
@@ -41,6 +41,7 @@ body.theme-dark {
     --theme-inline-code: inherit;
     --theme-inline-code-background: #454545;
     --theme-code-border: #404040;
+    --theme-code-color: inherit;
     --theme-border-subnav: #404040;
     --theme-border-footer: #404040;
 }
@@ -69,6 +70,7 @@ body.theme-light {
     --theme-inline-code: #c7254e;
     --theme-inline-code-background: #f9f2f4;
     --theme-code-border: #e7e7e7;
+    --theme-code-color: #333;
     --theme-border-footer: #e7e7e7;
 }
 
@@ -428,6 +430,10 @@ pre {
     background-color: inherit;
 }
 
+legend, pre {
+    color: var(--theme-code-color);
+}
+
 /*
  * highlight.js custom theme (dark version)
  *