From fc134297e19f68b444f4424c0c7f6bcd6a125453 Mon Sep 17 00:00:00 2001 From: fynks <75840152+fynks@users.noreply.github.com> Date: Sat, 11 Oct 2025 10:44:35 +0500 Subject: [PATCH] Improve table styling with default and alternating background colors for first column cells --- dist/css/styles.css | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/dist/css/styles.css b/dist/css/styles.css index 06f32a7..45d13a4 100644 --- a/dist/css/styles.css +++ b/dist/css/styles.css @@ -1825,12 +1825,20 @@ th { z-index: 101; } -/* Inherit background for first column cells to match row backgrounds */ +/* Default background for first column cells */ #file-hosts-table td:first-child, .enhanced-table td:first-child, .pricing-table td:first-child, .policies-table td:first-child { - background-color: inherit + background-color: var(--bg-primary) +} + +/* Alternating row background for first column in even rows */ +#file-hosts-table tr:nth-child(even) td:first-child, +.enhanced-table tr:nth-child(even) td:first-child, +.pricing-table tr:nth-child(even) td:first-child, +.policies-table tr:nth-child(even) td:first-child { + background-color: var(--bg-tertiary) } /* Ensure first column header cells match other headers */ @@ -1843,11 +1851,16 @@ th { .policies-table tbody tr th:first-child, .pricing-table tbody tr th:first-child { - background-color: inherit; + background-color: var(--bg-primary); color: inherit; font-weight: var(--font-medium) } +.policies-table tbody tr:nth-child(even) th:first-child, +.pricing-table tbody tr:nth-child(even) th:first-child { + background-color: var(--bg-tertiary); +} + .filter-results { text-align: center; padding: .1em;