diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:57:46 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 19:57:46 +0800 |
commit | 8933705a095c7804c8d5b7c29d42ec7ec1e62c6c (patch) | |
tree | f07f9b46db5df0a090e8987541cccf84d5478d34 | |
parent | *: Some simple styling with tables (diff) | |
download | forge-8933705a095c7804c8d5b7c29d42ec7ec1e62c6c.tar.gz forge-8933705a095c7804c8d5b7c29d42ec7ec1e62c6c.tar.zst forge-8933705a095c7804c8d5b7c29d42ec7ec1e62c6c.zip |
repo_{index,tree_dir}.html, style.css: Darker table title row
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 3 | ||||
-rw-r--r-- | templates/repo_index.html | 6 | ||||
-rw-r--r-- | templates/repo_tree_dir.html | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/static/style.css b/static/style.css index d0d20ba..1f6231d 100644 --- a/static/style.css +++ b/static/style.css @@ -37,5 +37,8 @@ td, th { border: var(--border-color) solid 1px; } th { + background-color: var(--lighter-box-background-color); +} +tr.title-row > th { background-color: var(--darker-box-background-color); } diff --git a/templates/repo_index.html b/templates/repo_index.html index 72fec06..bc29cf1 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -9,7 +9,7 @@ <div class="padding-wrapper"> <table id="recent-commits"> <thead> - <tr> + <tr class="title-row"> <th colspan="4">Recent Commits</th> </tr> <tr> @@ -38,7 +38,7 @@ <div class="padding-wrapper"> <table id="file-tree"> <thead> - <tr> + <tr class="title-row"> <th colspan="3">/ on {{ .ref }}</th> </tr> <tr> @@ -67,7 +67,7 @@ {{ if .readme }} <table id="readme"> <thead> - <tr> + <tr class="title-row"> <th> README.md </th> diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index 0af63d6..cb5b264 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -9,7 +9,7 @@ <div class="padding-wrapper"> <table id="file-tree"> <thead> - <tr> + <tr class="title-row"> <th colspan="3"> /{{ .path_spec }}/ on {{ .ref }} </th> @@ -40,7 +40,7 @@ {{ if .readme }} <table id="readme"> <thead> - <tr> + <tr class="title-row"> <th> README.md </th> |