MediaWiki:Gadget-TabSystem.css: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
mNo edit summary
 
(59 intermediate revisions by the same user not shown)
Line 8: Line 8:
}
}
.tabtoc li {
.tabtoc li {
top: 4px;
top: 2px;
color: #000;
color: #000;
border: none;
white-space: nowrap;
list-style-type: none;
list-style-image: none;
background: transparent;
background: transparent;
border: 1px solid transparent;
display: inline-block;
display: inline-block;
position: relative;
position: relative;
margin-top: 1px;
padding: 2px 0 3px;
padding: 2px 0 3px;
white-space: nowrap;
margin: 1px 0 0;
list-style-type: none;
list-style-image: none;
z-index: 3;
}
}
.tabtoc li.selected {
.tabtoc li.selected {
top: 3px;
top: 3px;
font-weight: bold;
cursor: default;
border-color: #aaa;
border-radius: 5px 5px 0 0;
background-color: #f9f9f9;
background-color: #f9f9f9;
border-radius: 5px 5px 0 0;
margin: 2px 0 3px;
border: 1px solid #aaa;
padding: 2px 0 0;
border-bottom: none;
cursor: default;
padding: 2px 0;
}
}
.tabtoc a,
.tabtoc li a,
.tabtoc a:active {
.tabtoc li a:active {
color: #000;
color: #000;
display: block;
display: block;
padding: 0 0.7em;
position: relative;
position: relative;
text-decoration: none;
text-decoration: none;
padding: 0 0.5em;
}
}
.tabtoc li.selected a {
.tabtoc li.selected a {
z-index: 10;
cursor: default;
cursor: default;
background: inherit;
border-radius: inherit;
text-decoration: none;
text-decoration: none;
}
.tabcontainer {
border: 1px solid #aaa;
background-color: #f9f9f9;
margin-bottom: 5px;
padding: 7px;
clear: both;
}
}
.tabsection {
.tabsection {
border: none;
border: none;
position: relative;
padding: 0;
padding: 0;
margin: 0;
margin: 0;
}
.tabsection .tabbox {
float: left;
border: 1px solid #aaa;
margin-right: 2em;
}
.tabsection .tab {
font-weight: bold;
background-color: #f9f9f9;
}
}
.mainTab {
.mainTab {
Line 70: Line 56:
/* Infobox */
/* Infobox */
.infobox .tabtoc li {
.infobox .tabtoc li {
font-size: 12px;
font-size: 12px !important;
}
.infobox:not(.tabbed) .tabtoc {
margin-bottom: 4px !important;
}
.infobox:not(.tabbed) .tabtoc li {
top: 3px;
margin: 1px;
margin: 1px;
}
}
.infobox .tabtoc li.selected {
.infobox:not(.tabbed) .tabtoc li.selected {
padding: 1px 0 2px;
border-radius: 0;
margin: 0;
}
.infobox:not(.tabbed) .tabtoc li.selected a {
padding-bottom: 0 !important;
}
}
.infobox .tabtoc a,
.infobox .tabtoc li a,
.infobox .tabtoc a:active {
.infobox .tabtoc li a:active {
padding: 0 5px;
padding: 0 5px;
}
}
.infobox .tabcontainer {
 
padding: 0;
/* Mobile */
margin-bottom: 0;
.mobile .tabtoc li {
font-size: 90%;
}
.mobile .tabtoc li.selected a {
padding-bottom: 2px;
}
@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;
}
}
}
/* Misc */
.tabcontainer .wikitable {
.tabcontainer .wikitable {
background: #fcfcfc;
background: #fcfcfc;
Line 92: Line 104:
.tabcontainer .col-begin {
.tabcontainer .col-begin {
margin: 0 !important;
margin: 0 !important;
}
@media all and (max-width: 719px) {
.mobile .tabtoc li.selected {
top: 2.5px;
}
.mobile .infobox .tabtoc li {
margin-left: 4px;
margin-right: 4px;
}
}
}

Latest revision as of 11:41, January 11, 2024

/* 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;
	white-space: nowrap;
	list-style-type: none;
	list-style-image: none;
	background: transparent;
	border: 1px solid transparent;
	display: inline-block;
	position: relative;
	padding: 2px 0 3px;
	margin: 1px 0 0;
}
.tabtoc li.selected {
	top: 3px;
	cursor: default;
	border-color: #aaa;
	border-radius: 5px 5px 0 0;
	background-color: #f9f9f9;
	margin: 2px 0 3px;
	padding: 2px 0 0;
}
.tabtoc li a,
.tabtoc li a:active {
	color: #000;
	display: block;
	position: relative;
	text-decoration: none;
	padding: 0 0.5em;
}
.tabtoc li.selected a {
	z-index: 10;
	cursor: default;
	background: inherit;
	border-radius: inherit;
	text-decoration: none;
}
.tabsection {
	border: none;
	position: relative;
	padding: 0;
	margin: 0;
}
.mainTab {
	display: none;
}

/* Infobox */
.infobox .tabtoc li {
	font-size: 12px !important;
}
.infobox:not(.tabbed) .tabtoc {
	margin-bottom: 4px !important;
}
.infobox:not(.tabbed) .tabtoc li {
	top: 3px;
	margin: 1px;
}
.infobox:not(.tabbed) .tabtoc li.selected {
	border-radius: 0;
}
.infobox:not(.tabbed) .tabtoc li.selected a {
	padding-bottom: 0 !important;
}
.infobox .tabtoc li a,
.infobox .tabtoc li a:active {
	padding: 0 5px;
}

/* Mobile */
.mobile .tabtoc li {
	font-size: 90%;
}
.mobile .tabtoc li.selected a {
	padding-bottom: 2px;
}
@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;
	}
}

/* Misc */
.tabcontainer .wikitable {
	background: #fcfcfc;
	margin: 0.3em 0 0 !important;
}
.tabcontainer pre,
.tabcontainer .col-begin {
	margin: 0 !important;
}