MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 34: | Line 34: | ||
.toc-page .toc { | .toc-page .toc { | ||
float: right; | float: right; | ||
width: 320px; | width: max-content; | ||
min-width: 220px; | |||
max-width: 320px; | |||
margin: 0 0 16px 24px; | margin: 0 0 16px 24px; | ||
clear: right; | clear: right; | ||
font-size: 0.95em; | font-size: 0.95em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
padding: | padding: 16px 24px; | ||
border: 1px solid var(--wiz-content-border, #ff942d); | border: 1px solid var(--wiz-content-border, #ff942d); | ||
background: var(--wiz-panel-solid-background, #0f0f0f); | background: var(--wiz-panel-solid-background, #0f0f0f); | ||
| Line 49: | Line 51: | ||
width: fit-content; | width: fit-content; | ||
min-width: 0; | min-width: 0; | ||
padding: 12px 16px; | |||
} | } | ||
.toc-page #toc .toctitle, | .toc-page #toc .toctitle, | ||
.toc-page .toc .toctitle { | .toc-page .toc .toctitle { | ||
margin: 0 0 | margin: 0 0 10px; | ||
color: var(--wiz-text, #d2d2d2); | color: var(--wiz-text, #d2d2d2); | ||
text-align: center; | text-align: center; | ||
} | |||
.toc-page #toc:has(.toctogglecheckbox:checked) .toctitle, | |||
.toc-page .toc:has(.toctogglecheckbox:checked) .toctitle { | |||
margin: 0; | |||
line-height: 1.4; | |||
} | } | ||
| Line 92: | Line 101: | ||
.toc-page .toc li { | .toc-page .toc li { | ||
display: block; | display: block; | ||
margin: 0 | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | list-style: none; | ||
line-height: 1.35; | line-height: 1.35; | ||
} | |||
.toc-page #toc > ul > li, | |||
.toc-page .toc > ul > li { | |||
padding: 2px 0; | |||
} | } | ||
| Line 101: | Line 115: | ||
.toc-page .toc li li { | .toc-page .toc li li { | ||
margin-left: 12px; | margin-left: 12px; | ||
padding | padding: 2px 0 2px 10px; | ||
border-left: 1px dotted var(--wiz-content-border, #ff942d); | border-left: 1px dotted var(--wiz-content-border, #ff942d); | ||
} | } | ||
Revision as of 23:44, 4 June 2026
/* 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;
}
}