diff options
Diffstat (limited to 'cgithub')
| -rw-r--r-- | cgithub/head-include.html | 10 |
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'); |
