diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-11 20:24:30 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-11 20:24:30 +0800 |
commit | 3f0342fcbf5aafc13b3fce58c077d86275e3781d (patch) | |
tree | e7c7de2a2251763bb1773d11357e308a3b8878ef /static/style.css | |
parent | *.html: Fix body class (diff) | |
download | forge-3f0342fcbf5aafc13b3fce58c077d86275e3781d.tar.gz forge-3f0342fcbf5aafc13b3fce58c077d86275e3781d.tar.zst forge-3f0342fcbf5aafc13b3fce58c077d86275e3781d.zip |
repo_index.html, style.css: CSS state machines
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css index 9d90dca..af5a9b3 100644 --- a/static/style.css +++ b/static/style.css @@ -91,3 +91,24 @@ td#readme > *:first-child { pre, .scroll { overflow-x: auto; } +.toggle-table-off, .toggle-table-on { + display: none; +} +.toggle-table-off + table > thead > tr > th, .toggle-table-on + table > thead > tr > th { + padding: 0; +} +.toggle-table-off + table > thead > tr > th > label, .toggle-table-on + table > thead > tr > th > label { + width: 100%; + display: inline-block; + padding: 3px 1px; + cursor: pointer; +} +.toggle-table-off:checked + table > tbody { + display: none; +} +.toggle-table-on + table > tbody { + display: none; +} +.toggle-table-on:checked + table > tbody { + display: table-row-group; +} |