Skip to content

Build your personal knowledge base with Trilium Notes

style(next): tweak the new tab page

Adorian Doranc9bfd0772245
diff --git a/src/public/stylesheets/theme-next/base.css b/src/public/stylesheets/theme-next/base.css
index e32fba2742..99b1263f7a 100644
--- a/src/public/stylesheets/theme-next/base.css
+++ b/src/public/stylesheets/theme-next/base.css
@@ -65,3 +65,29 @@
/* Theme capabilities */
--tab-note-icons: true;
}
+
+/*
+ * Note search suggestions
+ */
+
+/* List body */
+.jump-to-note-dialog .jump-to-note-results .aa-suggestions,
+.note-detail-empty .aa-suggestions {
+ padding: 0;
+}
+
+/* List item */
+.jump-to-note-dialog .aa-suggestions div,
+.note-detail-empty .aa-suggestions div {
+ border-radius: 6px;
+ padding: 6px 12px;
+ color: var(--menu-text-color);
+ cursor: default;
+}
+
+/* Selected list item */
+.jump-to-note-dialog .aa-suggestions div.aa-cursor,
+.note-detail-empty .aa-suggestions div.aa-cursor {
+ background: var(--hover-item-background-color);
+ color: var(--hover-item-text-color);
+}
\ No newline at end of file
diff --git a/src/public/stylesheets/theme-next/notes/empty.css b/src/public/stylesheets/theme-next/notes/empty.css
index e69de29bb2..fcdf071980 100644
--- a/src/public/stylesheets/theme-next/notes/empty.css
+++ b/src/public/stylesheets/theme-next/notes/empty.css
@@ -0,0 +1,11 @@
+/* The container */
+div.note-detail-empty {
+ max-width: 70%;
+ margin: 50px auto;
+}
+
+/* The search results list */
+.note-detail-empty span.aa-dropdown-menu {
+ margin-top: 1em;
+ border: unset;
+}
\ No newline at end of file
diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css
index 1e735b7bf7..dd1494a09d 100644
--- a/src/public/stylesheets/theme-next/shell.css
+++ b/src/public/stylesheets/theme-next/shell.css
@@ -1237,25 +1237,6 @@ body .calendar-dropdown-widget .calendar-body a:hover {
background: transparent !important;
}
-/* List body */
-.jump-to-note-dialog .jump-to-note-results .aa-suggestions {
- padding: 0;
-}
-
-/* List item */
-.jump-to-note-dialog .aa-suggestions div {
- border-radius: 6px;
- padding: 6px 12px;
- color: var(--menu-text-color);
- cursor: default;
-}
-
-/* Selected list item */
-.jump-to-note-dialog .aa-suggestions div.aa-cursor {
- background: var(--hover-item-background-color);
- color: var(--hover-item-text-color);
-}
-
/*
* Recent changes list
*/