abouttreesummaryrefslogcommitdiff
path: root/cgithub
diff options
context:
space:
mode:
authorPatrick2025-12-23 23:35:13 +0100
committerPatrick2025-12-23 23:35:13 +0100
commit7dfc2b975fd4a735073536914f5a49b8d80a1104 (patch)
tree69ec9e78cd5ad255ae17435f962952a1e4ebdc2c /cgithub
parent13ff15345e1fe7ecc72967e1e0d9a473428f241f (diff)
downloadps-cgit-7dfc2b975fd4a735073536914f5a49b8d80a1104.tar.gz
ps-cgit-7dfc2b975fd4a735073536914f5a49b8d80a1104.zip
buncha features
Diffstat (limited to 'cgithub')
-rw-r--r--cgithub/head-include.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgithub/head-include.html b/cgithub/head-include.html
index 204e078..df6e059 100644
--- a/cgithub/head-include.html
+++ b/cgithub/head-include.html
@@ -3,6 +3,16 @@
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/github-markdown-dark.css"/>
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/cgithub.css"/>
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/prism-one-dark.css"/>
+<style>
+/* https://stackoverflow.com/a/20104746 */
+.tab-folder > .tab-content:target ~ .tab-content:last-child, .tab-folder > .tab-content {
+ display: none;
+}
+.tab-folder > :last-child, .tab-folder > .tab-content:target {
+ display: block;
+}
+
+</style>
<script type="module">
const blob = document.querySelector('div#cgit table.blob td.lines pre code');