From 28720fde8014886f62e93378864ea2a992dadd73 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 19 Nov 2023 03:57:26 +0530 Subject: added table styling --- static/css/styles.css | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'static') diff --git a/static/css/styles.css b/static/css/styles.css index dd9b9f1..cd9a32d 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -14,6 +14,12 @@ --codeblock-bg: #303132; --codeblock-fg: #ffffff; + + --th-bg: #494e54; + --th-fg: var(--fg-alt); + + --td-bg-alt: #aaa; + --td-fg-alt: var(--fg); } @media (prefers-color-scheme: dark) { @@ -30,6 +36,10 @@ --nav-fg: #74a8e4; --link-fg: #3c76bb; + + --th-bg: #303132; + + --td-bg-alt: #27292b; } } @@ -122,8 +132,8 @@ nav a.active { } .headline-hash { - display: none; - text-decoration: none; + display: none; + text-decoration: none; } h1:hover .headline-hash, @@ -132,7 +142,19 @@ h3:hover .headline-hash, h4:hover .headline-hash, h5:hover .headline-hash, h6:hover .headline-hash { - display: inline; + display: inline; +} + +th { + text-align: left; + min-width: 10rem; + background-color: var(--th-bg); + color: var(--th-fg); +} + +tr:nth-child(even) { + background-color: var(--td-bg-alt); + color: var(--td-fg-alt); } .release { -- cgit v1.2.3