Display tab wrapper section when any anchor link is opened

This commit is contained in:
Helen Chong 2024-06-30 17:02:05 +08:00
parent 1a518bdf9a
commit 21051b5cf7
1 changed files with 3 additions and 1 deletions

View File

@ -155,7 +155,9 @@ p + .adoptables { margin-top: 1em; }
/* Tabs */
.tabwrap section { display: none; }
.tabwrap section:target { display: block; }
.tabwrap section:target,
.tabwrap section:has(*:target) { display: block; }
.tabs {
list-style: none;