diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-12-06 12:27:12 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-12-06 12:27:12 +0100 |
| commit | a53cf862b699ff62dffff70dfd93719732834464 (patch) | |
| tree | 50b0376b40bfeee7557eefd47c7220c74c04feaa | |
| parent | 2ae89680eb386b943cffd154f8fbea74c506c4e6 (diff) | |
| download | acit-a53cf862b699ff62dffff70dfd93719732834464.tar.gz acit-a53cf862b699ff62dffff70dfd93719732834464.tar.bz2 acit-a53cf862b699ff62dffff70dfd93719732834464.tar.xz | |
Use alternating colours in the buglisting
| -rw-r--r-- | html/style.css | 8 | ||||
| -rw-r--r-- | src/acit/html.py | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/html/style.css b/html/style.css index 303c204..293b4b5 100644 --- a/html/style.css +++ b/html/style.css @@ -139,6 +139,7 @@ h1, h2 { #right { width: 67%; table { + margin-top: 1em; width: 100%; font-family: monospace; font-size: 1.3em; @@ -159,6 +160,13 @@ h1, h2 { min-width: 4em; } } + table tr:nth-child(2n) { + background-color: var(--primary-background); + } + table tr:nth-child(2n+1) { + background-color: var(--secondary-background); + --link-colour: var(--link-colour-secondary); + } } @media screen and (max-width: 859px) { diff --git a/src/acit/html.py b/src/acit/html.py index 854da25..ffb3527 100644 --- a/src/acit/html.py +++ b/src/acit/html.py @@ -306,6 +306,7 @@ h1, h2 { #right { width: 67%; table { + margin-top: 1em; width: 100%; font-family: monospace; font-size: 1.3em; @@ -326,6 +327,13 @@ h1, h2 { min-width: 4em; } } + table tr:nth-child(2n) { + background-color: var(--primary-background); + } + table tr:nth-child(2n+1) { + background-color: var(--secondary-background); + --link-colour: var(--link-colour-secondary); + } } @media screen and (max-width: 859px) { |
