MediaWiki:Gadget-TabSystem.css

Revision as of 13:22, August 16, 2023 by Porplemontage (talk | contribs) (1 revision imported)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* JS Tab System, jacked and hacked from the jsprefs in monobook/main.css -Dantman */

.tabtoc {
	clear: both;
	width: 100%;
	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-radius: 5px 5px 0 0;
	padding: 2px 0 0;
	margin: 2px 0 3px;
}
.tabtoc li a,
.tabtoc li a:active {
	color: #000;
	display: block;
	padding: 0 0.5em;
	position: relative;
	text-decoration: none;
}
.tabtoc li.selected a {
	cursor: default;
	text-decoration: none;
	border-radius: inherit;
	background: inherit;
	z-index: 10;
}
.tabsection {
	position: relative;
	border: none;
	padding: 0;
	margin: 0;
}
.mainTab {
	display: none;
}

/* Infobox */
.infobox .tabtoc li {
	font-size: 12px !important;
}
.infobox .tabtoc li.selected a {
	padding-bottom: 0 !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;
	margin: 2px 0 3px;
	padding: 1px 0 0;
}
.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;
}