MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 94: | Line 94: | ||
.page-Main_Page .icelist-homepage-column br { | .page-Main_Page .icelist-homepage-column br { | ||
display: none; | display: none; | ||
} | |||
/* Reduce space after top templates (infobox / agent page) */ | |||
.mw-parser-output > table.infobox, | |||
.mw-parser-output > div.infobox { | |||
margin-bottom: 0.6em; | |||
} | |||
/* Reduce space before first heading */ | |||
.mw-parser-output > h1, | |||
.mw-parser-output > h2:first-of-type { | |||
margin-top: 0.6em; | |||
} | |||
/* General infobox tightening */ | |||
.ic-infobox td, | |||
.ic-infobox th { | |||
padding: 4px 6px; | |||
vertical-align: top; | |||
} | |||
/* Kill paragraph spacing inside infobox */ | |||
.ic-infobox p { | |||
margin: 0.2em 0; | |||
} | |||
/* Prevent empty cells from creating space */ | |||
.ic-infobox td:empty, | |||
.ic-infobox th:empty { | |||
display: none; | |||
} | |||
/* Compact status / verification rows */ | |||
.ic-infobox .verification, | |||
.ic-infobox .status { | |||
display: inline-block; | |||
margin: 0; | |||
padding: 2px 6px; | |||
font-size: 85%; | |||
} | } | ||
Revision as of 17:54, 16 December 2025
/* CSS placed here will be applied to all skins */
/** Slim donation banner **/
.icelist-donate-banner {
background: #fff8f8;
border-bottom: 1px solid #e7bcbc;
text-align: center;
padding: 6px 0;
font-size: 0.85em;
}
.icelist-donate-banner a {
font-weight: bold;
}
/* Hide username, talk link, and notification bell in the personal toolbar */
#pt-userpage,
#pt-mytalk,
.mw-echo-notifications-badge,
.mw-echo-notifications,
#pt-notifications-alert,
#pt-notifications-notice {
display: none !important;
}
/* HOMEPAGE LAYOUT FIX */
.icelist-homepage-columns {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
gap: 1.5em;
width: 100%;
}
/* Each column */
.icelist-homepage-column {
flex: 1;
min-width: 320px;
max-width: 100%;
}
/* Mobile / tablet breakpoint */
@media (max-width: 900px) {
.icelist-homepage-columns {
flex-direction: column;
}
}
/* Hide "Create pages" portlet by default */
#p-createpages {
display: none;
}
.page-Main_Page .mw-first-heading {
display: none;
}
/* Tighten spacing between blocks on Main Page */
.page-Main_Page .icelist-homepage-column > * {
margin-top: 0;
}
/* If Featured_* outputs a wrapper with margins, this kills it */
.page-Main_Page .icelist-homepage-column .ic-card {
margin-bottom: 6px;
}
/* Extra clamp: remove stray paragraph margins that appear between templates */
.page-Main_Page .icelist-homepage-column p:empty {
display: none;
}
.page-Main_Page .icelist-homepage-column > .ic-card + .ic-card {
margin-top: 0;
}
.icelist-homepage-columns {
gap: 0.6em;
}
/* Main Page: remove mystery gap between Featured agent + Featured incident */
.page-Main_Page .icelist-homepage-column .ic-card + .ic-card {
margin-top: 0 !important;
}
/* If the template output is wrapped in paragraphs, MediaWiki adds margins */
.page-Main_Page .icelist-homepage-column p {
margin-block-start: 0.5em;
margin-block-end: 0.5em;
}
/* But specifically remove margins for any paragraph directly between cards */
.page-Main_Page .icelist-homepage-column .ic-card + p,
.page-Main_Page .icelist-homepage-column p + .ic-card {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.page-Main_Page .icelist-homepage-column br {
display: none;
}
/* Reduce space after top templates (infobox / agent page) */
.mw-parser-output > table.infobox,
.mw-parser-output > div.infobox {
margin-bottom: 0.6em;
}
/* Reduce space before first heading */
.mw-parser-output > h1,
.mw-parser-output > h2:first-of-type {
margin-top: 0.6em;
}
/* General infobox tightening */
.ic-infobox td,
.ic-infobox th {
padding: 4px 6px;
vertical-align: top;
}
/* Kill paragraph spacing inside infobox */
.ic-infobox p {
margin: 0.2em 0;
}
/* Prevent empty cells from creating space */
.ic-infobox td:empty,
.ic-infobox th:empty {
display: none;
}
/* Compact status / verification rows */
.ic-infobox .verification,
.ic-infobox .status {
display: inline-block;
margin: 0;
padding: 2px 6px;
font-size: 85%;
}