Skip to content

Commit 04f3405

Browse files
committed
fix search
1 parent a1aaf57 commit 04f3405

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

assets/css/tables.css

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
/* --- 1. General Variables & Container --- */
12-
/* We'll use some of your original styling for consistency. */
1312
:root {
1413
--table-border-color: #E7E7E7;
1514
--table-border-radius: 8px;
@@ -86,6 +85,33 @@
8685
}
8786

8887

88+
/* --- 5. Table Search UI & Hooks --- */
89+
/* Container (optional) placed above tables to hold a search input */
90+
.docs-content .table-search {
91+
display: flex;
92+
justify-content: flex-end;
93+
align-items: center;
94+
margin: 12px 0;
95+
gap: 8px;
96+
}
97+
98+
/* Utility: hide rows when filtered out (works for mobile block rows and desktop table rows) */
99+
.docs-content .row-hidden {
100+
display: none !important;
101+
}
102+
103+
/* Optional: subtle highlight for rows that match a search */
104+
.docs-content .row-highlight {
105+
background-color: #FFFBEA; /* very light highlight */
106+
}
107+
108+
/* Optional: style for a single full-width "no results" row */
109+
.docs-content tr.no-results td {
110+
text-align: center;
111+
color: #5F5F5F;
112+
font-style: italic;
113+
}
114+
89115
/* The magic: The data-label attribute becomes a visible label for every cell */
90116
.docs-content td::before {
91117
content: attr(data-label);

0 commit comments

Comments
 (0)