MediaWiki:Common.css

From ICE List Wiki
Revision as of 17:58, 16 December 2025 by ICEListAdmin6 (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.
/* 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%;
}

.ic-infobox {
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px;
}

.ic-infobox img {
  display: block;
  margin-bottom: 6px;
  border-radius: 3px;
}

.ic-infobox img {
  background: #fff;
}