Skip to content

Build your personal knowledge base with Trilium Notes

style/table collections: add a placeholder style for column headers

Adorian Doran87da644027bd
diff --git a/apps/client/src/stylesheets/table.css b/apps/client/src/stylesheets/table.css
index 36fb68fbfd..43ad388839 100644
--- a/apps/client/src/stylesheets/table.css
+++ b/apps/client/src/stylesheets/table.css
@@ -1,4 +1,36 @@
.tabulator {
+ --col-header-background-color: gray;
+ --col-header-text-color: white;
+ --col-header-hover-background-color: yellow;
+ --col-header-arrow-active-color: blue;
+ --col-header-arrow-inactive-color: white;
+
background: unset;
border: unset;
+}
+
+/* Column headers */
+
+.tabulator .tabulator-header {
+ background: var(--col-header-background-color);
+ color: var(--col-header-text-color);
+}
+
+@media (hover: hover) and (pointer: fine) {
+ .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
+ background-color: var(--col-header-hover-background-color);
+ }
+}
+
+.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
+ border-bottom-color: var(--col-header-arrow-active-color);
+ border-top-color: var(--col-header-arrow-active-color);
+}
+
+.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
+ border-bottom-color: var(--col-header-arrow-inactive-color);
+}
+
+.tabulator .tabulator-header .tabulator-col {
+ background: transparent;
}
\ No newline at end of file