MediaWiki:Common.css
Appearance
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.
/* Site-wide CSS */
/* Hide Main Page title to remove gap between nav and Welcome banner */
body.page-Main_Page #firstHeading {
display: none;
}
/* Consistent spacing for Daily Digests bullet list */
/* All entries in one continuous <ul> with uniform line-height */
.mw-parser-output h2 + h3 + ul,
.mw-parser-output h3 + ul {
line-height: 1.65;
margin-bottom: 0.6em;
}
.mw-parser-output h3 + ul li {
margin-bottom: 0.35em;
}
/* Homepage Opinions: full-height cartoon beside the header and two essays. */
#ailaw-opinions.ailaw-opinions-featured {
display: grid;
grid-template-columns: minmax(0, 2.45fr) minmax(17em, 1fr);
padding: 0;
overflow: hidden;
}
#ailaw-opinions .ailaw-opinions-copy {
display: flex;
flex-direction: column;
min-width: 0;
padding: 1.15em 1.3em 1.25em;
}
#ailaw-opinions .ailaw-opinions-grid {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.5em;
flex: 1;
}
#ailaw-opinions .ailaw-opinions-art {
position: relative;
min-width: 0;
min-height: 20em;
overflow: hidden;
}
#ailaw-opinions .ailaw-opinions-art p {
position: absolute;
inset: 1.15em 1.3em 1.25em;
margin: 0;
}
#ailaw-opinions .ailaw-opinions-art :is(span, a, img) {
display: block;
width: 100%;
height: 100%;
}
#ailaw-opinions .ailaw-opinions-art img {
object-fit: cover;
object-position: center top;
}
@media (max-width: 760px) {
#ailaw-opinions.ailaw-opinions-featured { grid-template-columns: minmax(0, 1fr); }
#ailaw-opinions .ailaw-opinions-grid { grid-template-columns: minmax(0, 1fr); }
#ailaw-opinions .ailaw-opinions-art { min-height: 0; aspect-ratio: 1 / 1; }
}
/* Keep the required AI disclosure visible without reserving a full-width row. */
#ailawwiki-ai-disclosure {
width: fit-content;
max-width: 100%;
box-sizing: border-box;
padding: 2px 8px !important;
margin: 2px 0 8px !important;
border-left-width: 3px !important;
font-size: 0.875rem;
line-height: 1.35;
}
/* Keep the Main Page controls and disclosure aligned with its content column. */
body.page-Main_Page .vector-page-titlebar,
body.page-Main_Page .vector-page-toolbar,
body.page-Main_Page #mw-content-text {
width: 100%;
max-width: 63rem;
box-sizing: border-box;
margin-inline: auto;
}