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
client: clean up CSS
Adorian Doran601e7ec42eb5
diff --git a/apps/client/src/stylesheets/table.css b/apps/client/src/stylesheets/table.cssindex c654bfbaaf..75e1d22d18 100644--- a/apps/client/src/stylesheets/table.css+++ b/apps/client/src/stylesheets/table.css@@ -263,8 +263,7 @@/* Checkbox cells */-.tabulator .tabulator-cell:has(svg),-.tabulator .tabulator-cell:has(input[type="checkbox"]) {+.tabulator .tabulator-cell:has(svg, input[type="checkbox"]) {padding-inline-start: 8px;display: inline-flex;flex-direction: column;diff --git a/apps/client/src/stylesheets/theme-next/notes/text.css b/apps/client/src/stylesheets/theme-next/notes/text.cssindex 9fb78a6d5d..0b88dd3caf 100644--- a/apps/client/src/stylesheets/theme-next/notes/text.css+++ b/apps/client/src/stylesheets/theme-next/notes/text.css@@ -1083,7 +1083,7 @@ pre button.copy-button.icon-action {}/* Child combinator: as a descendant one it also hit first-children nested inside a block, stacking a pixel per level. */-html .note-detail-editable-text > :not(figure, .include-note, hr):first-child {+html .note-detail-editable-text > :first-child:not(figure, .include-note, hr) {/* Create some space for the top-side shadow */margin-top: 1px !important;}@@ -1158,7 +1158,12 @@ html .note-detail-editable-text > :not(figure, .include-note, hr):first-child {}/* `:where(:not(.excalidraw *))` leaves out the UI of an embedded canvas drawing. */-.ck-content :is(h1, h2, h3, h4, h5, h6):where(:not(.excalidraw *)) {+.ck-content h1:where(:not(.excalidraw *)),+.ck-content h2:where(:not(.excalidraw *)),+.ck-content h3:where(:not(.excalidraw *)),+.ck-content h4:where(:not(.excalidraw *)),+.ck-content h5:where(:not(.excalidraw *)),+.ck-content h6:where(:not(.excalidraw *)) {font-weight: 300;}diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex ec4bfd147a..d3e501ca84 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -116,16 +116,11 @@ body.background-effects.theme-supports-background-effects #center-pane .note-spl/* #endregion */#horizontal-main-container {- /* The default start-start and end-start border radius for the note split.- * Updated automatically according to the layout. */+ /* The default start-start and end-start border radius for the note split. */--note-split-top-border-radius: var(--center-pane-border-radius);--note-split-bottom-border-radius: var(--center-pane-border-radius);}-body.status-bar-panel-open #horizontal-main-container {- --note-split-bottom-border-radius: 0;-}-/* Draws the launch bar's border in the gap between the peek button and the peeked tree. Theoffset is physical, since the button is mirrored in RTL. */body.layout-vertical #horizontal-main-container > .left-pane-peek-button.peek-pane-button-action-collapse {@@ -1133,11 +1128,6 @@ body.layout-horizontal #rest-pane > .classic-toolbar-widget {background: var(--classic-toolbar-horiz-layout-background-color);}-.classic-toolbar-widget:not(.hidden-ext) + #vertical-main-container {- /* Remove the center panel border radius when the toolbar is visible */- --note-split-top-border-radius: 0;-}-/** CENTER PANE*/@@ -1150,15 +1140,31 @@ body.layout-horizontal #rest-pane > .classic-toolbar-widget {/* The first visible note split */.vertical-layout #center-pane .note-split:not(.visible ~ .visible) {border-start-start-radius: var(--note-split-top-border-radius);+}- body.desktop & {- border-end-start-radius: var(--note-split-bottom-border-radius);+body.desktop .vertical-layout #center-pane .note-split:not(.visible ~ .visible) {+ border-end-start-radius: var(--note-split-bottom-border-radius);+}- > .scrolling-container {- /* Use clip-path to force rounded bottom corner for the note content */- clip-path: inset(0px round 0 0 0 var(--note-split-bottom-border-radius));- }- }+/* Use clip-path to force rounded bottom corner for the note content */+body.desktop .vertical-layout #center-pane+ .note-split:not(.visible ~ .visible) > .scrolling-container {+ clip-path: inset(0px round 0 0 0 var(--note-split-bottom-border-radius));+}++.vertical-layout .classic-toolbar-widget:not(.hidden-ext) + #vertical-main-container+ #center-pane .note-split:not(.visible ~ .visible) {+ border-start-start-radius: 0;+}++body.desktop.status-bar-panel-open .vertical-layout #center-pane+ .note-split:not(.visible ~ .visible) {+ border-end-start-radius: 0;+}++body.desktop.status-bar-panel-open .vertical-layout #center-pane+ .note-split:not(.visible ~ .visible) > .scrolling-container {+ clip-path: inset(0);}#center-pane .note-split {diff --git a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.cssindex 7a50a44ed8..8ecdb50cd5 100644--- a/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css+++ b/apps/client/src/widgets/mobile_widgets/hide_keyboard_button.css@@ -2,7 +2,8 @@--hide-keyboard-button-size: 38px;}-body.mobile :is(.hide-keyboard-button, .hide-keyboard-action) {+body.mobile .hide-keyboard-button,+body.mobile .hide-keyboard-action {display: none;.icon-action {@@ -31,7 +32,8 @@ body.mobile .hide-keyboard-action.closes-menu .icon-action::after {content: none;}-body.mobile .virtual-keyboard-opened :is(.hide-keyboard-button, .hide-keyboard-action),+body.mobile .virtual-keyboard-opened .hide-keyboard-button,+body.mobile .virtual-keyboard-opened .hide-keyboard-action,body.mobile.keyboard-panel-open .hide-keyboard-action {display: flex;}diff --git a/apps/client/src/widgets/react/NoteAutocomplete.css b/apps/client/src/widgets/react/NoteAutocomplete.cssindex 5d84359c80..887f5809e0 100644--- a/apps/client/src/widgets/react/NoteAutocomplete.css+++ b/apps/client/src/widgets/react/NoteAutocomplete.css@@ -10,7 +10,8 @@}/* One class, so the next theme's input-group rules override these. */-:is(.go-to-selected-note-button, .input-clearer-button) {+.go-to-selected-note-button,+.input-clearer-button {cursor: pointer;}diff --git a/apps/client/src/widgets/sidebar/Backlinks.css b/apps/client/src/widgets/sidebar/Backlinks.cssindex eba3c082e8..bdecd0ff21 100644--- a/apps/client/src/widgets/sidebar/Backlinks.css+++ b/apps/client/src/widgets/sidebar/Backlinks.css@@ -73,10 +73,11 @@h1, h2, h3, h4, h5, h6 {margin: .4em 0 .15em;font-weight: 600;+ }- &:first-child {- margin-top: 0;- }+ h1:first-child, h2:first-child, h3:first-child,+ h4:first-child, h5:first-child, h6:first-child {+ margin-top: 0;}h1 { font-size: 1.15em; }diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.css b/apps/client/src/widgets/type_widgets/text/EditableText.cssindex 28384efd26..567fdb1ca0 100644--- a/apps/client/src/widgets/type_widgets/text/EditableText.css+++ b/apps/client/src/widgets/type_widgets/text/EditableText.css@@ -16,12 +16,12 @@ body.mobile .note-detail-editable-text {cursor: pointer;}-.note-detail-editable-text :is(a[href^="http://"], a[href^="https://"]):where(:not(.excalidraw *)) {+.note-detail-editable-text a:is([href^="http://"], [href^="https://"]):where(:not(.excalidraw *)) {cursor: text !important;}.note-detail-editable-text- *:not(figure, .include-note, hr, .excalidraw *, .cm-editor *):first-child {+ :first-child:not(figure, .include-note, hr, .excalidraw *, .cm-editor *) {margin-top: 0 !important;}diff --git a/packages/ckeditor5/src/theme/headings.css b/packages/ckeditor5/src/theme/headings.cssindex 82f22ab957..e112cf7d4e 100644--- a/packages/ckeditor5/src/theme/headings.css+++ b/packages/ckeditor5/src/theme/headings.css@@ -1,5 +1,6 @@/* The heading scale of Bootstrap 5, which the app also loads; the values must stay equal to its. */-.ck-content :is(h1, h2, h3, h4, h5, h6) {+.ck-content h1, .ck-content h2, .ck-content h3,+.ck-content h4, .ck-content h5, .ck-content h6 {margin-top: 0;margin-bottom: 0.5rem;line-height: 1.2;diff --git a/packages/ckeditor5/src/theme/math_form.css b/packages/ckeditor5/src/theme/math_form.cssindex 3b4674a0cf..92d2d6e2e6 100644--- a/packages/ckeditor5/src/theme/math_form.css+++ b/packages/ckeditor5/src/theme/math_form.css@@ -72,7 +72,8 @@transition: border-color 120ms ease;clip-path: none;}-.ck.ck-math-input :is(.ck-mathlive-container, .ck-latex-textarea) {+.ck.ck-math-input .ck-mathlive-container,+.ck.ck-math-input .ck-latex-textarea {max-width: 100%;min-height: 60px;max-height: 120px;