MediaWiki:Common.css
MediaWiki interface page
More actions
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: max-content;
min-width: 220px;
max-width: 320px;
margin: 0 0 16px 24px;
clear: right;
font-size: 0.95em;
box-sizing: border-box;
padding: 16px 24px;
border: 1px solid var(--wiz-content-border, #ff942d);
background: var(--wiz-panel-solid-background, #0f0f0f);
color: var(--wiz-text, #d2d2d2);
}
.toc-page #toc:has(.toctogglecheckbox:checked),
.toc-page .toc:has(.toctogglecheckbox:checked) {
width: fit-content;
min-width: 0;
padding: 12px 16px;
}
.toc-page #toc .toctitle,
.toc-page .toc .toctitle {
margin: 0 0 10px;
color: var(--wiz-text, #d2d2d2);
text-align: center;
}
.toc-page #toc:has(.toctogglecheckbox:checked) .toctitle,
.toc-page .toc:has(.toctogglecheckbox:checked) .toctitle {
margin: 0;
line-height: 1.4;
}
.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;
padding: 0;
list-style: none;
line-height: 1.35;
}
.toc-page #toc > ul > li,
.toc-page .toc > ul > li {
padding: 2px 0;
}
.toc-page #toc li li,
.toc-page .toc li li {
margin-left: 12px;
padding: 2px 0 2px 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;
}
}