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 @@

{{title}}

Calibre-Web Automated User Settings


{% if cwa_settings['auto_backup_imports'] %} - + {% else %} - + {% endif %}

When active, a copy of all imported files will be stored in /config/processed_books/imported

{% if cwa_settings['auto_backup_conversions'] %} - + {% else %} - + {% endif %}

When active, the originals of ingested files that undergo conversion will be stored in /config/processed_books/converted

{% if cwa_settings['auto_zip_backups'] %} - + {% else %} - + {% endif %}

When active, just before midnight each day, the cwa-auto-zipper service will make zip archives of all the backed up converted, imported and failed files from that day. This is to help keep the subdirectories of /config/processed_books organised and to minimise disk space usage

{% if cwa_settings['cwa_update_notifications'] %} - + {% else %} - + {% endif %}

When active, you will no longer receive notifications in the Web UI when a new version of CWA is released

{% if cwa_settings['auto_convert'] %} - + {% else %} - + {% endif %}

On by default, when active all ingested books will automatically be converted to the target format specified below (epub by default)

CWA Auto-Convert - Choose Target Format for CWA Functions (epub by default)

-

When the Auto-Convert feature is active, all ingested books will be automatically converted to the format chosen here (except those formats selected in the ignore list below)

+

When the Auto-Convert feature is active, all ingested books will be automatically converted to the format chosen here (except those formats selected in the ignore list below)

- {% for format in target_formats -%} {% if cwa_settings['auto_convert_target_format'] == format %} @@ -68,29 +62,24 @@

CWA Auto-Convert - Choose Target Format for CWA Functions (epub by defaul {% endif %} {% endfor %} -

* CWA's metadata enforcement is only supported for epub and azw3 as target formats

+

* CWA's metadata enforcement is only supported for epub and azw3 as target formats

CWA Auto-Convert - Ignored Formats

-

The formats selected here will be ignored by CWA's Auto-Conversion feature when it's active

+

The formats selected here will be ignored by CWA's Auto-Conversion feature when it's active

{% for format in ignorable_formats -%}

CWA Auto-Ingest - Ignored Formats

-

The formats selected here will be ignored by CWA's Auto-Ingest feature

+

The formats selected here will be ignored by CWA's Auto-Ingest feature

{% for format in ignorable_formats -%}