MediaWiki:Gadget-TabSystem.css: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* JS Tab System, | /* JS Tab System, jacked and hacked from the jsprefs in monobook/main.css -Dantman */ | ||
.tabtoc { | .tabtoc { | ||
padding: 0; | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.tabtoc li { | .tabtoc li { | ||
color: #000; | |||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
.tabtoc li { | .tabtoc li { | ||
float: left; | float: left; | ||
top: 4px; | top: 4px; | ||
left: -2px; | left: -2px; | ||
border: none; | |||
position: relative; | position: relative; | ||
margin: 1px -2px 1px 2px; | |||
padding: 2px 0 3px; | |||
white-space: nowrap; | white-space: nowrap; | ||
list-style-type: none; | list-style-type: none; | ||
Line 23: | Line 23: | ||
} | } | ||
.tabtoc li.selected { | .tabtoc li.selected { | ||
top: 2px; | top: 2px; | ||
font-weight: bold; | font-weight: bold; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
border-radius: 5px 5px 0 0; | |||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
border-bottom: none; | border-bottom: none; | ||
Line 33: | Line 33: | ||
padding-bottom: 2px; | padding-bottom: 2px; | ||
margin-right: -3px; | margin-right: -3px; | ||
} | } | ||
.tabtoc a, | .tabtoc a, | ||
Line 41: | Line 38: | ||
display: block; | display: block; | ||
color: #000; | color: #000; | ||
padding: 0 .7em; | padding: 0 0.7em; | ||
position: relative; | position: relative; | ||
text-decoration: none; | text-decoration: none; | ||
Line 52: | Line 49: | ||
display: flex; | display: flex; | ||
clear: left; | clear: left; | ||
border: 1px solid #aaa; | |||
background-color: #f9f9f9; | |||
margin: 0; | margin: 0; | ||
padding: 7px; | padding: 7px; | ||
} | } | ||
.tabsection { | .tabsection { | ||
Line 63: | Line 60: | ||
} | } | ||
.tabsection .tabbox { | .tabsection .tabbox { | ||
float: left; | |||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
margin-right: 2em; | margin-right: 2em; | ||
} | } | ||
Line 71: | Line 68: | ||
} | } | ||
.tabsection table, .tabsection .tab { | .tabsection table, .tabsection .tab { | ||
background-color: # | background-color: #f9f9f9; | ||
} | } | ||
.mainTab { | .mainTab { | ||
display: none; | display: none; | ||
} | } |
Revision as of 16:27, May 17, 2020
/* JS Tab System, jacked and hacked from the jsprefs in monobook/main.css -Dantman */
.tabtoc {
padding: 0;
margin: 0 !important;
}
.tabtoc li {
color: #000;
background-color: transparent;
}
.tabtoc li {
float: left;
top: 4px;
left: -2px;
border: none;
position: relative;
margin: 1px -2px 1px 2px;
padding: 2px 0 3px;
white-space: nowrap;
list-style-type: none;
list-style-image: none;
z-index: 3;
}
.tabtoc li.selected {
top: 2px;
font-weight: bold;
background-color: #f9f9f9;
border-radius: 5px 5px 0 0;
border: 1px solid #aaa;
border-bottom: none;
cursor: default;
padding-top: 2px;
padding-bottom: 2px;
margin-right: -3px;
}
.tabtoc a,
.tabtoc a:active {
display: block;
color: #000;
padding: 0 0.7em;
position: relative;
text-decoration: none;
}
.tabtoc li.selected a {
cursor: default;
text-decoration: none;
}
.tabcontainer {
display: flex;
clear: left;
border: 1px solid #aaa;
background-color: #f9f9f9;
margin: 0;
padding: 7px;
}
.tabsection {
border: none;
padding: 0;
margin: 0;
}
.tabsection .tabbox {
float: left;
border: 1px solid #aaa;
margin-right: 2em;
}
.tabsection .tab {
font-weight: bold;
}
.tabsection table, .tabsection .tab {
background-color: #f9f9f9;
}
.mainTab {
display: none;
}