Skip to content

Build your personal knowledge base with Trilium Notes

style(next)/SQL Console: tweak appearance

Adorian Doran77c4b502154b
diff --git a/src/public/stylesheets/theme-next/shell.css b/src/public/stylesheets/theme-next/shell.css
index db66ef3f40..7ca1a29748 100644
--- a/src/public/stylesheets/theme-next/shell.css
+++ b/src/public/stylesheets/theme-next/shell.css
@@ -1691,7 +1691,9 @@ div.bookmark-folder-widget .note-link .bx {
transform: translateY(4%);
}
-/* Search */
+/*
+ * Search
+ */
.search-result-widget-content .note-path .path-bracket {
display: inline;
@@ -1702,7 +1704,51 @@ div.bookmark-folder-widget .note-link .bx {
font-weight: normal;
}
-/* Help */
+/*
+ * SQL Console
+ */
+
+/* Table buttons */
+
+.sql-table-schemas-widget .sql-table-schemas button {
+ --color: var(--main-text-color);
+ --background: var(--card-background-color);
+
+ display: inline-block;
+ box-shadow: 2px 2px 2px var(--card-shadow-color);
+ margin-top: 4px;
+ vertical-align: baseline;
+ border: unset;
+ border-radius: 12px;
+ padding: 2px 12px;
+ background: var(--background) !important;
+ color: var(--color) !important;
+ line-height: unset;
+ cursor: help;
+}
+
+.sql-table-schemas-widget .sql-table-schemas button:hover,
+.sql-table-schemas-widget .sql-table-schemas button:active,
+.sql-table-schemas-widget .sql-table-schemas button:focus-visible {
+ --background: var(--card-background-press-color);
+ --color: var(--main-text-color);
+}
+
+/* Tooltip */
+
+.tooltip .table-schema {
+ font-family: var(--monospace-font-family);
+ font-size: .85em;
+}
+
+/* Data type */
+.tooltip .table-schema td:nth-child(2) {
+ color: var(--muted-text-color);
+}
+
+/*
+ * Help
+ */
.help-dialog .modal-content {
--modal-background-color: var(--help-background-color);
@@ -1974,4 +2020,4 @@ div.promoted-attribute-cell .multiplicity:has(span) {
margin-left: 8px;
margin-right: calc(var(--pa-card-padding-left) - var(--pa-card-padding-right));
font-size: 0; /* Prevent whitespaces creating a gap between buttons */
-}
+}
\ No newline at end of file