From fbb27336f608a18f7e999e09ad4e68c9f5438230 Mon Sep 17 00:00:00 2001 From: crocodilestick <105450872+crocodilestick@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:40:15 +0000 Subject: [PATCH] Fixed CSS for both themes on CWA Settings page --- .../calibre-web/cps/static/css/caliBlur.css | 25 +++++++- root/app/calibre-web/cps/static/css/style.css | 33 ++++++++-- .../cps/templates/cwa_settings.html | 62 +++++++------------ 3 files changed, 76 insertions(+), 44 deletions(-) diff --git a/root/app/calibre-web/cps/static/css/caliBlur.css b/root/app/calibre-web/cps/static/css/caliBlur.css index c1fc4aa..d589d2d 100644 --- a/root/app/calibre-web/cps/static/css/caliBlur.css +++ b/root/app/calibre-web/cps/static/css/caliBlur.css @@ -8316,7 +8316,7 @@ body h2 { color: #e9e9e9; max-width: 90rem; font-family: 'Open Sans Regular'; - } + } p:after { margin: 1px 4px 16px 32px; padding: 5px 10px; @@ -8326,4 +8326,27 @@ body h2 { line-height: normal; background-color: #373737; } +} + +p.cwa-settings-explanation { + color: #e9e9e9; + font-style: italic; + font-size: inherit; + line-height: normal; + padding-left: 10px; + max-width: 90rem; +} + +p.cwa-settings-disclaimer { + font-size: small; + font-style: italic; + color: #e9e9e9; + padding-left: 10px; +} + +select.cwa-settings-select { + background-color: rgba(0, 0, 0, 0.3); + color: #e9e9e9; + text-align: center; + border-radius: 6px; } \ No newline at end of file diff --git a/root/app/calibre-web/cps/static/css/style.css b/root/app/calibre-web/cps/static/css/style.css index 70eda51..2b3dd18 100644 --- a/root/app/calibre-web/cps/static/css/style.css +++ b/root/app/calibre-web/cps/static/css/style.css @@ -436,14 +436,39 @@ #detailcover:fullscreen { cursor:zoom-out; border: 0; } .error-list { - margin-top: 5px; - } - - + margin-top: 5px; + } + + :root { + --color-secondary: #45b29d; + } + p.cwa-settings-tooltip { margin: 1px 4px 16px 32px; padding: 5px 10px; line-height: normal; color: #444444; max-width: 100rem; + } + + p.cwa-settings-explanation { + color: #444444; + font-style: italic; + font-size: inherit; + line-height: normal; + padding-left: 10px; + max-width: 90rem; + } + p.cwa-settings-disclaimer { + font-size: small; + font-style: italic; + color: #444444; + padding-left: 10px; + } + + select.cwa-settings-select { + background-color: white; + color: #444444; + text-align: center; + border-radius: 6px; } \ No newline at end of file diff --git a/root/app/calibre-web/cps/templates/cwa_settings.html b/root/app/calibre-web/cps/templates/cwa_settings.html index f524ba5..81247b6 100644 --- a/root/app/calibre-web/cps/templates/cwa_settings.html +++ b/root/app/calibre-web/cps/templates/cwa_settings.html @@ -11,55 +11,49 @@