Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(options): space and tint the cards under the legacy theme
Elian Doranfd1a8d9490e0
diff --git a/apps/client/src/stylesheets/theme-light.css b/apps/client/src/stylesheets/theme-light.cssindex d9bab80d30..48bee946c3 100644--- a/apps/client/src/stylesheets/theme-light.css+++ b/apps/client/src/stylesheets/theme-light.css@@ -88,6 +88,9 @@ html {--scrollbar-thumb-color: color-mix(in srgb, var(--main-text-color) 36%, transparent);--scrollbar-thumb-hover-color: color-mix(in srgb, var(--main-text-color) 40%, transparent);--scrollbar-background-color: transparent;++ --card-background-color: color-mix(in srgb, var(--main-text-color) 6%, transparent);+ --card-background-hover-color: color-mix(in srgb, var(--main-text-color) 11%, transparent);--selection-background-color: #3399FF70;--tooltip-background-color: #f8f8f8;--link-color: blue;diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.cssindex 4491fa866d..809c3b062e 100644--- a/apps/client/src/stylesheets/theme-next/pages.css+++ b/apps/client/src/stylesheets/theme-next/pages.css@@ -100,47 +100,6 @@* OPTIONS PAGES*/- :root {- --options-card-max-width: 900px;- --options-card-padding: 17px;- --options-title-font-size: .75rem;- --options-title-offset: 13px;-}--.note-split.options {- --preferred-max-content-width: var(--options-card-max-width);-}--.note-split.options .collection-properties {- visibility: hidden;-}--/* Create a gap at the bottom of option pages */-.note-detail-content-widget-content.options::after {- display: block;- content: "";- height: 1em;-}--/* Add a gap between consecutive buttons */-.note-detail-content-widget-content.options *:not(.btn-group) > button.btn + button.btn {- margin-inline-start: 8px;-}--.note-detail-content-widget-content.options:has(.shortcuts-options-section)::after {- height: 0;-}--/* Every top-level block of an options page is a section of it; only the header spans the full pane. */-.note-detail-content-widget-content.options > *:not(.options-page-header) {- margin-bottom: 26px;-}--body.desktop .note-detail-content-widget-content.options > *:not(.options-page-header) {- max-width: var(--options-card-max-width);- margin-inline: auto;-}-.options-section:not(.tn-no-card) {margin-bottom: 26px;}@@ -158,13 +117,6 @@ body.desktop .options-section:not(.tn-no-card) {padding: var(--options-card-padding);}-.note-detail-content-widget-content.options {- --default-padding: 15px;- padding-top: var(--default-padding);- padding-bottom: var(--default-padding);- padding-inline: 25px;-}-.options-section h4 {text-transform: uppercase;letter-spacing: .4pt;diff --git a/apps/client/src/widgets/type_widgets/ContentWidget.css b/apps/client/src/widgets/type_widgets/ContentWidget.cssindex d5a0aa8b7b..c1d54fe20f 100644--- a/apps/client/src/widgets/type_widgets/ContentWidget.css+++ b/apps/client/src/widgets/type_widgets/ContentWidget.css@@ -6,3 +6,55 @@padding: 0;height: 100%;}++/*+ * OPTIONS PAGES+ */++:root {+ --options-card-max-width: 900px;+ --options-card-padding: 17px;+ --options-title-font-size: .75rem;+ --options-title-offset: 13px;+}++.note-split.options {+ --preferred-max-content-width: var(--options-card-max-width);+}++.note-split.options .collection-properties {+ visibility: hidden;+}++/* Create a gap at the bottom of option pages */+.note-detail-content-widget-content.options::after {+ display: block;+ content: "";+ height: 1em;+}++/* Add a gap between consecutive buttons */+.note-detail-content-widget-content.options *:not(.btn-group) > button.btn + button.btn {+ margin-inline-start: 8px;+}++.note-detail-content-widget-content.options:has(.shortcuts-options-section)::after {+ height: 0;+}++/* Every top-level block of an options page is a section of it; only the header spans the full pane. */+.note-detail-content-widget-content.options > *:not(.options-page-header) {+ margin-bottom: 26px;+}++body.desktop .note-detail-content-widget-content.options > *:not(.options-page-header) {+ max-width: var(--options-card-max-width);+ margin-inline: auto;+}++.note-detail-content-widget-content.options {+ --default-padding: 15px;+ padding-top: var(--default-padding);+ padding-bottom: var(--default-padding);+ padding-inline: 25px;+}