MediaWiki:Gadget-TabSystem.css: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
} | } | ||
.tabtoc li { | .tabtoc li { | ||
top: | top: 2px; | ||
color: #000; | color: #000; | ||
border: none; | border: none; | ||
Line 20: | Line 20: | ||
list-style-type: none; | list-style-type: none; | ||
list-style-image: none; | list-style-image: none; | ||
} | } | ||
.tabtoc li.selected { | .tabtoc li.selected { | ||
Line 27: | Line 26: | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
border-bottom- | border-bottom-width: 0; | ||
border-radius: 5px 5px 0 0; | border-radius: 5px 5px 0 0; | ||
cursor: default; | cursor: default; | ||
Line 43: | Line 42: | ||
cursor: default; | cursor: default; | ||
text-decoration: none; | text-decoration: none; | ||
background: inherit; | |||
z-index: 10; | |||
} | } | ||
.tabcontainer { | .tabcontainer { | ||
Line 49: | Line 50: | ||
padding: 7px; | padding: 7px; | ||
clear: both; | clear: both; | ||
position: relative; | |||
top: -1px; | |||
z-index: 5; | |||
} | } | ||
.tabsection { | .tabsection { | ||
Line 55: | Line 59: | ||
margin: 0; | margin: 0; | ||
position: relative; | position: relative; | ||
} | } | ||
.mainTab { | .mainTab { | ||
Line 75: | Line 78: | ||
margin: 2px 0 3px; | margin: 2px 0 3px; | ||
border-radius: 0; | border-radius: 0; | ||
border-bottom- | border-bottom-width: 1px; | ||
} | } | ||
.infobox .tabtoc a, | .infobox .tabtoc a, |
Revision as of 22:23, June 16, 2021
/* JS Tab System, jacked and hacked from the jsprefs in monobook/main.css -Dantman */
.tabtoc {
width: 100%;
clear: both;
padding: 0 !important;
margin: 0 !important;
}
.tabtoc li {
top: 2px;
color: #000;
border: none;
font-weight: normal;
background: transparent;
display: inline-block;
position: relative;
margin: 1px 0 0;
padding: 2px 0 3px;
white-space: nowrap;
list-style-type: none;
list-style-image: none;
}
.tabtoc li.selected {
top: 3px;
font-weight: bold;
background-color: #f9f9f9;
border: 1px solid #aaa;
border-bottom-width: 0;
border-radius: 5px 5px 0 0;
cursor: default;
padding: 2px 0 0;
}
.tabtoc li a,
.tabtoc li a:active {
color: #000;
display: block;
padding: 0 0.7em;
position: relative;
text-decoration: none;
}
.tabtoc li.selected a {
cursor: default;
text-decoration: none;
background: inherit;
z-index: 10;
}
.tabcontainer {
background-color: #f9f9f9;
margin-bottom: 5px;
padding: 7px;
clear: both;
position: relative;
top: -1px;
z-index: 5;
}
.tabsection {
border: none;
padding: 0;
margin: 0;
position: relative;
}
.mainTab {
display: none;
}
/* Infobox */
.infobox .tabtoc li {
font-size: 12px;
}
.infobox:not(.tabbed) .tabtoc li {
margin: 1px;
}
.infobox:not(.tabbed) .tabtoc {
margin-bottom: 4px !important;
}
.infobox:not(.tabbed) .tabtoc li.selected {
padding: 1px 0 0;
margin: 2px 0 3px;
border-radius: 0;
border-bottom-width: 1px;
}
.infobox .tabtoc a,
.infobox .tabtoc a:active {
padding: 0 5px;
}
.infobox .tabcontainer {
padding: 0;
margin-bottom: 0;
}
.tabcontainer .wikitable {
background: #fcfcfc;
margin: 0.3em 0 0 !important;
}
.tabcontainer pre,
.tabcontainer .col-begin {
margin: 0 !important;
}
.mobile .infobox .tabtoc li.selected {
padding-bottom: 0.5px;
}
.mobile .infobox.tabbed > .tabtoc > li.selected {
padding-bottom: 1px;
}
@media all and (max-width: 719px) {
.mobile .infobox .tabtoc li:first-of-type {
margin-left: 0;
}
.mobile .infobox .tabtoc li:last-of-type {
margin-right: 0;
}
.mobile .infobox .tabtoc li {
margin-left: 4px;
margin-right: 4px;
}
}