From 3f0342fcbf5aafc13b3fce58c077d86275e3781d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 20:24:30 +0800 Subject: repo_index.html, style.css: CSS state machines --- static/style.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'static/style.css') 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; +} -- cgit v1.2.3