MediaWiki:Common.css

From Wizards and Warlords
Revision as of 23:31, 4 June 2026 by Aurelian (talk | contribs)
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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* This style is loaded on all media. */

/* Hide the content of the TOC when the checkbox is checked. */
/* stylelint-disable-next-line selector-class-pattern */
.toctogglecheckbox:checked ~ ul {
	display: none;
}

.wiz-grid {
	outline: 5px solid red !important;
}

.wiz-grid-item {
	width: 100%;
}

.wiz-grid-item img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.wiz-grid-text {
	margin-top: 8px;
}

/* TOC PAGE DIV */
/* ------------ */
/* Wrap __TOC__ in <div class="toc-page">...</div> to float it right. */
.toc-page #toc,
.toc-page .toc {
	float: right;
	width: 320px;
	margin: 0 0 16px 24px;
	clear: right;
	font-size: 0.95em;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid var(--wiz-content-border, #ff942d);
	background: var(--wiz-panel-solid-background, #0f0f0f);
	color: var(--wiz-text, #d2d2d2);
}

.toc-page #toc .toctitle,
.toc-page .toc .toctitle {
	margin: 0 0 8px;
	color: var(--wiz-text, #d2d2d2);
	text-align: center;
}

.toc-page #toc .toctitle h2,
.toc-page .toc .toctitle h2 {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wiz-text, #d2d2d2);
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}

.toc-page #toc .toctoggle,
.toc-page .toc .toctoggle {
	color: var(--wiz-text, #d2d2d2);
	font-size: 12px;
}

.toc-page #toc .toctoggle a,
.toc-page .toc .toctoggle a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc ul,
.toc-page .toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc-page #toc li,
.toc-page .toc li {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	list-style: none;
	line-height: 1.35;
}

.toc-page #toc li li,
.toc-page .toc li li {
	margin-left: 12px;
	padding-left: 10px;
	border-left: 1px dotted var(--wiz-content-border, #ff942d);
}

.toc-page #toc .tocnumber,
.toc-page .toc .tocnumber {
	display: none;
}

.toc-page #toc a,
.toc-page .toc a {
	color: var(--wiz-link, #ff942d);
	text-decoration: none;
}

.toc-page #toc a:hover,
.toc-page .toc a:hover {
	color: #ffd37a;
	text-decoration: none;
}

@media (max-width: 1100px) {
	.wiz-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 700px) {
	.wiz-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}