MediaWiki:Gadget-TabSystem.css: Difference between revisions
From Halopedia, the Halo wiki
No edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
border: none; | border: none; | ||
font-weight: normal; | font-weight: normal; | ||
white-space: nowrap; | |||
list-style-type: none; | |||
list-style-image: none; | |||
background: transparent; | background: transparent; | ||
display: inline-block; | display: inline-block; | ||
position: relative; | position: relative; | ||
padding: 2px 0 3px; | |||
margin: 1px 0 0; | margin: 1px 0 0; | ||
} | } | ||
.tabtoc li.selected { | .tabtoc li.selected { | ||
top: 3px; | top: 3px; | ||
cursor: default; | |||
font-weight: bold; | font-weight: bold; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
Line 28: | Line 29: | ||
border-bottom-width: 0; | border-bottom-width: 0; | ||
border-radius: 5px 5px 0 0; | border-radius: 5px 5px 0 0; | ||
padding: 2px 0 0; | padding: 2px 0 0; | ||
} | } | ||
Line 47: | Line 47: | ||
} | } | ||
.tabcontainer { | .tabcontainer { | ||
clear: both; | |||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
padding: 7px; | padding: 7px; | ||
z-index: 5; | z-index: 5; | ||
} | } | ||
.tabsection { | .tabsection { | ||
position: relative; | |||
border: none; | border: none; | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
.mainTab { | .mainTab { | ||
Line 75: | Line 75: | ||
} | } | ||
.infobox:not(.tabbed) .tabtoc li.selected { | .infobox:not(.tabbed) .tabtoc li.selected { | ||
border-radius: 0; | |||
border-bottom-width: 1px; | |||
padding: 1px 0 0; | padding: 1px 0 0; | ||
margin: 2px 0 3px; | margin: 2px 0 3px; | ||
} | } | ||
.infobox:not(.tabbed) .tabtoc li.selected a { | .infobox:not(.tabbed) .tabtoc li.selected a { |
Revision as of 18:52, July 19, 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;
white-space: nowrap;
list-style-type: none;
list-style-image: none;
background: transparent;
display: inline-block;
position: relative;
padding: 2px 0 3px;
margin: 1px 0 0;
}
.tabtoc li.selected {
top: 3px;
cursor: default;
font-weight: bold;
background-color: #f9f9f9;
border: 1px solid #aaa;
border-bottom-width: 0;
border-radius: 5px 5px 0 0;
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;
min-height: 23px;
z-index: 10;
}
.tabcontainer {
clear: both;
background-color: #f9f9f9;
margin-bottom: 5px;
padding: 7px;
z-index: 5;
}
.tabsection {
position: relative;
border: none;
padding: 0;
margin: 0;
}
.mainTab {
display: none;
}
/* Infobox */
.infobox .tabtoc li {
font-size: 12px;
}
.infobox:not(.tabbed) .tabtoc li {
margin: 1px;
top: 3px;
}
.infobox:not(.tabbed) .tabtoc {
margin-bottom: 4px !important;
}
.infobox:not(.tabbed) .tabtoc li.selected {
border-radius: 0;
border-bottom-width: 1px;
padding: 1px 0 0;
margin: 2px 0 3px;
}
.infobox:not(.tabbed) .tabtoc li.selected a {
height: auto;
}
.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;
}
@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;
}
}