MediaWiki:Common.css

From Pizza Tower Speedrunning Wiki
Jump to navigation Jump to search

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.
/* CSS placed here will be applied to all skins */
.mw-collapsible .mw-collapsible-toggle {
	float:left;
}

/* infoboxes */
:root {
	--pi-background: var(--wiki-content-background-color);
	--pi-secondary-background: var(--wiki-accent-color);
	--pi-secondary-background--rgb: var(--wiki-accent-color--rgb);
	--pi-secondary-background-label: var(--wiki-accent-label-color);
	--pi-border-color: rgba(var(--pi-secondary-background--rgb),0.5);
	--pi-width: 270px;
}
.portable-infobox {
	border:1px solid var(--pi-border-color);
}
.portable-infobox .pi-title,
.portable-infobox .pi-header {
	text-align:center;
	font-size:1.5em;
	background:var(--pi-secondary-background);
	color:var(--pi-secondary-background-label);
}
.portable-infobox,
.portable-infobox .pi-title {
	border-radius: 2px;
}
.portable-infobox .pi-header {
	padding: 0.5em;
	font-size: 1.2em;
}
.portable-infobox .pi-data {
	background:rgba(var(--pi-secondary-background--rgb), 0.18);
	border-bottom: none;
	border-top-width: 1px;
	border-top-style: solid;
}
.pi-horizontal-group-item,
.portable-infobox .pi-secondary-background.pi-navigation,
.pi-panel-scroll-wrapper, .pi-media-collection-tabs {
	background:rgba(var(--pi-secondary-background--rgb), 0.18);
}
.pi-tab-link.current, .pi-section-tab.pi-section-active .pi-section-label {
	color: var(--wiki-accent-label-color);
}
.portable-infobox .pi-collapse .pi-header {
	cursor: pointer;
}
/* if an image is the full original width, make it the full actual width */
.pi-image-thumbnail[width="270"] {
	width: var(--pi-width);
}
/* overqualify these to overwrite normal content heading styles */
.mw-body .portable-infobox h2,
.mw-body .portable-infobox h3 {
	border-bottom: 0;
	font-family: var(--heading-font-family);
	font-weight: 700;
	margin: 0;
}
@media screen and (max-width: 720px){
	.portable-infobox {
		font-size: 0.85em;
	}
}