Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 12:29, 16 February 2026 by Abfielder (talk | contribs)

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 */

/* ===== BBOG Featured Wiki Grid (2 cols desktop, 1 col mobile) ===== */
.bbog-grid{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 40px !important;
  margin-top: 20px !important;
  align-items: start;
}

@media (max-width: 700px){
  .bbog-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Card layout */
.bbog-card{
  text-align: center;
}

/* Title */
.bbog-featured-title{
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 14px 0;
}

/* --- Remove the grey "panel" ONLY from MediaWiki/Citizen file wrappers --- */
.bbog-featured-img figure,
.bbog-featured-img figure[typeof*="mw:File"],
.bbog-featured-img .thumb,
.bbog-featured-img .thumbinner,
.bbog-featured-img .mw-file-element,
.bbog-featured-img .mw-file-description,
.bbog-featured-img .mw-file-caption,
.bbog-featured-img a.image{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;          /* IMPORTANT: don't auto-center the wrapper */
  border-radius: 0 !important;
}

/* Make the image fill the card width (no centering) */
.bbog-featured-img img{
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;    /* IMPORTANT: allow full width */
  margin: 0 !important;          /* IMPORTANT: no auto centering */
  border-radius: 14px !important;
}

/* Keep the Enter Wiki button area as-is (Citizen styles it) */
.bbog-featured-link{
  margin-top: 14px;
}