More actions
m (add a class for hiding tabs from view and for js to know to skip them) |
(Trimming more redundant CSS) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
div.tabdiv > ul { | div.tabdiv > ul { | ||
display: block; | display: block; | ||
position: relative; | position: relative; | ||
} | } | ||
Line 19: | Line 14: | ||
div.tabdiv > div { | div.tabdiv > div { | ||
position: relative; | position: relative; | ||
} | } | ||
Line 41: | Line 26: | ||
div.tabdiv.forceland > ul { | div.tabdiv.forceland > ul { | ||
border-right: none; | border-right: none; | ||
} | } | ||
div.tabdiv > div { | div.tabdiv > div { | ||
padding: | padding: 0; /* no whitespace when the section is blank */ | ||
} | } | ||
Line 82: | Line 44: | ||
} | } | ||
div.tabdiv > ul > li | div.tabdiv > ul > li.hidden { /* overqualify to override forceland styles */ | ||
visibility:hidden; /* hide from screen readers */ | visibility:hidden; /* hide from screen readers */ | ||
display:none; /* hide from visible page */ | display:none; /* hide from visible page */ | ||
} | } |
Latest revision as of 00:51, 1 April 2024
div.tabdiv {
position: relative;
}
div.tabdiv > ul {
display: block;
position: relative;
}
div.tabdiv > ul > li > a {
position: relative;
}
div.tabdiv > div {
position: relative;
}
div.tabdiv div.tabdiv:not(.forceport),
table.infobox div.tabdiv:not(.forceport),
div.tabdiv.forceland {
display: block;
}
div.tabdiv div.tabdiv:not(.forceport) > ul,
table.infobox div.tabdiv:not(.forceport) > ul,
div.tabdiv.forceland > ul {
border-right: none;
}
div.tabdiv > div {
padding: 0; /* no whitespace when the section is blank */
}
div.tabdiv > ul > li a {
text-decoration: none;
}
div.tabdiv > ul > li:hover {
background-color: #c4a645;
color:black;
}
div.tabdiv > ul > li.active {
background-color: #f1df74;
}
div.tabdiv > ul > li.hidden { /* overqualify to override forceland styles */
visibility:hidden; /* hide from screen readers */
display:none; /* hide from visible page */
}