From b4fe46eba36246fa587cf6527191bbd93dd0f942 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 22 Oct 2025 19:41:49 +0300 Subject: [PATCH 001/106] style: tweak the appearance of option cards --- apps/client/src/stylesheets/theme-next-dark.css | 4 ++-- apps/client/src/stylesheets/theme-next-light.css | 6 +++--- apps/client/src/stylesheets/theme-next/pages.css | 16 +++++++++++----- .../src/widgets/type_widgets/options/etapi.tsx | 2 +- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css index 5b012996e..0afc80576 100644 --- a/apps/client/src/stylesheets/theme-next-dark.css +++ b/apps/client/src/stylesheets/theme-next-dark.css @@ -227,8 +227,8 @@ --card-background-color: #ffffff12; --card-background-hover-color: #3c3c3c; --card-background-press-color: #464646; - --card-border-color: #222222; - --card-box-shadow: 0 0 12px rgba(0, 0, 0, 0.15); + --card-border-color: transparent; + --card-box-shadow: none; --calendar-color: var(--menu-text-color); --calendar-weekday-labels-color: var(--muted-text-color); diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css index 30f4e1c3a..4711a2a1b 100644 --- a/apps/client/src/stylesheets/theme-next-light.css +++ b/apps/client/src/stylesheets/theme-next-light.css @@ -223,12 +223,12 @@ --code-block-box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.2); - --card-background-color: var(--accented-background-color); + --card-background-color: #0000000d; --card-background-hover-color: #f9f9f9; --card-background-press-color: #efefef; - --card-border-color: #eaeaea; + --card-border-color: transparent; --card-shadow-color: rgba(0, 0, 0, 0.1); - --card-box-shadow: 0 0 12px var(--card-shadow-color); + --card-box-shadow: none; --calendar-color: var(--menu-text-color); --calendar-weekday-labels-color: var(--muted-text-color); diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css index d0c092321..9e6c98651 100644 --- a/apps/client/src/stylesheets/theme-next/pages.css +++ b/apps/client/src/stylesheets/theme-next/pages.css @@ -148,7 +148,7 @@ div.note-detail-empty { --options-card-min-width: 500px; --options-card-max-width: 900px; --options-card-padding: 17px; - --options-title-font-size: 1rem; + --options-title-font-size: .75rem; --options-title-offset: 13px; } /* Create a gap at the top of the option pages */ @@ -173,8 +173,7 @@ div.note-detail-empty { } .options-section:not(.tn-no-card) { - margin: auto; - border-radius: 12px; + border-radius: 8px; border: 1px solid var(--card-border-color) !important; box-shadow: var(--card-box-shadow); background: var(--card-background-color); @@ -182,7 +181,7 @@ div.note-detail-empty { margin-bottom: calc(var(--options-title-offset) + 26px) !important; } -body.desktop .option-section:not(.tn-no-card) { +body.desktop .options-section:not(.tn-no-card) { min-width: var(--options-card-min-width); max-width: var(--options-card-max-width); } @@ -193,9 +192,16 @@ body.desktop .option-section:not(.tn-no-card) { padding-bottom: var(--default-padding); } +.options-section:not(.tn-no-card) h4, +.options-section:not(.tn-no-card) h5 { + text-transform: uppercase; + letter-spacing: .4pt; +} + + .options-section:not(.tn-no-card) h4 { font-size: var(--options-title-font-size); - font-weight: bold; + font-weight: 600; color: var(--launcher-pane-text-color); margin-top: calc(-1 * var(--options-card-padding) - var(--options-title-font-size) - var(--options-title-offset)) !important; margin-bottom: calc(var(--options-title-offset) + var(--options-card-padding)) !important; diff --git a/apps/client/src/widgets/type_widgets/options/etapi.tsx b/apps/client/src/widgets/type_widgets/options/etapi.tsx index 3ee7c7e19..eff8283df 100644 --- a/apps/client/src/widgets/type_widgets/options/etapi.tsx +++ b/apps/client/src/widgets/type_widgets/options/etapi.tsx @@ -101,7 +101,7 @@ function TokenList({ tokens }: { tokens: EtapiToken[] }) { return ( tokens.length ? ( -
+
From 4344687303424b8a2883040943e00160905b2532 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 22 Oct 2025 19:58:42 +0300 Subject: [PATCH 002/106] style: tweak the appearance of the promoted attributes cards --- apps/client/src/stylesheets/theme-next-dark.css | 6 +++--- apps/client/src/stylesheets/theme-next-light.css | 4 ++-- apps/client/src/stylesheets/theme-next/shell.css | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next-dark.css b/apps/client/src/stylesheets/theme-next-dark.css index 0afc80576..ca0d818e6 100644 --- a/apps/client/src/stylesheets/theme-next-dark.css +++ b/apps/client/src/stylesheets/theme-next-dark.css @@ -192,9 +192,9 @@ --badge-background-color: #ffffff1a; --badge-text-color: var(--muted-text-color); - --promoted-attribute-card-background-color: var(--card-background-color); - --promoted-attribute-card-shadow-color: #000000b3; - + --promoted-attribute-card-background-color: #ffffff21; + --promoted-attribute-card-shadow: none; + --floating-button-shadow-color: #00000080; --floating-button-background-color: #494949d2; --floating-button-color: var(--button-text-color); diff --git a/apps/client/src/stylesheets/theme-next-light.css b/apps/client/src/stylesheets/theme-next-light.css index 4711a2a1b..631d443b1 100644 --- a/apps/client/src/stylesheets/theme-next-light.css +++ b/apps/client/src/stylesheets/theme-next-light.css @@ -185,8 +185,8 @@ --badge-background-color: #00000011; --badge-text-color: var(--muted-text-color); - --promoted-attribute-card-background-color: var(--card-background-color); - --promoted-attribute-card-shadow-color: #00000033; + --promoted-attribute-card-background-color: #00000014; + --promoted-attribute-card-shadow: none; --floating-button-shadow-color: #00000042; --floating-button-background-color: #eaeaeacc; diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css index b6bd38789..8a382af89 100644 --- a/apps/client/src/stylesheets/theme-next/shell.css +++ b/apps/client/src/stylesheets/theme-next/shell.css @@ -1328,8 +1328,7 @@ div.promoted-attribute-cell { --pa-card-padding-inline-end: 2px; --input-background-color: transparent; - box-shadow: 1px 1px 2px var(--promoted-attribute-card-shadow-color); - + box-shadow: var(--promoted-attribute-card-shadow); display: inline-flex; margin: 0; border-radius: 8px; From 2470b0b334b029a3023ff95f39e53d67a63ebfa1 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 22 Oct 2025 20:06:06 +0300 Subject: [PATCH 003/106] style: tweak the appearance of the promoted attributes cards --- apps/client/src/stylesheets/theme-next/ribbon.css | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/client/src/stylesheets/theme-next/ribbon.css b/apps/client/src/stylesheets/theme-next/ribbon.css index 192cfa6f4..dc1465d17 100644 --- a/apps/client/src/stylesheets/theme-next/ribbon.css +++ b/apps/client/src/stylesheets/theme-next/ribbon.css @@ -34,6 +34,7 @@ div.promoted-attributes-container { margin-top: 8px; margin-bottom: 8px; + margin-inline-start: 12px; } /* From a01fb3959957d707cec37378c1c5649668dfd8dd Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Thu, 23 Oct 2025 10:16:18 +0300 Subject: [PATCH 004/106] client/quick edit dialog: make available the CSS variables with the custom color of the edited note --- .../src/widgets/dialogs/popup_editor.ts | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.ts index 1deb584d9..9b4e70c32 100644 --- a/apps/client/src/widgets/dialogs/popup_editor.ts +++ b/apps/client/src/widgets/dialogs/popup_editor.ts @@ -57,17 +57,19 @@ const TPL = /*html*/`\ } -