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: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 2: Line 2:




/* ===============================
  Big Book of Gaming - Featured Wikis Grid
  =============================== */


/* Featured Wiki Grid */
/* Grid layout: 2 per row desktop, 1 per row mobile */
.bbog-grid {
.bbog-grid {
   display: grid;
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 40px; /* more breathing room */
   gap: 40px;
   margin-top: 20px;
   margin-top: 20px;
}
}
Line 17: Line 20:
}
}


/* Card container: NO background/border/box.
  IMPORTANT: do NOT reset children, so Citizen can style the "Enter Wiki" link */
.bbog-card {
.bbog-card {
   text-align: center;
   text-align: center;
   padding: 0; /* remove padding */
   padding: 0 !important;
   background: none; /* remove background */
   background: transparent !important;
   border: none; /* remove borders */
   border: 0 !important;
   box-shadow: none; /* remove any theme shadow */
   box-shadow: none !important;
  border-radius: 0 !important;
}
}


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


.bbog-featured-img img {
/* Kill MediaWiki/Citizen file wrapper backgrounds just for the image area */
  width: 100%;
.bbog-featured-img figure,
  height: auto;
.bbog-featured-img figure[typeof*="mw:File"],
  max-width: 560px;
.bbog-featured-img .mw-parser-output figure[typeof*="mw:File"],
  border-radius: 14px;
.bbog-featured-img .thumb,
  display: block;
.bbog-featured-img .thumbinner,
  margin: 0 auto;
  transition: transform 0.15s ease;
}
 
.bbog-featured-img img:hover {
  transform: scale(1.02);
}
 
.bbog-featured-link {
  margin-top: 14px;
}
 
/* Remove MediaWiki image thumb styling inside featured grid */
.bbog-featured-img .mw-file-element,
.bbog-featured-img .mw-file-element,
.bbog-featured-img .thumbinner,
.bbog-featured-img .mw-file-description,
.bbog-featured-img .thumb {
.bbog-featured-img .mw-file-caption,
  background: none !important;
.bbog-featured-img a.image {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
 
/* Ensure image itself is clean */
.bbog-featured-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  border-radius: 14px;
  margin: 0 auto;
}
 
/* BBOG Featured grid: remove Citizen/MediaWiki file container "card" styling */
.bbog-grid figure,
.bbog-grid figure[typeof*="mw:File"],
.bbog-grid .mw-parser-output figure[typeof*="mw:File"],
.bbog-grid .thumb,
.bbog-grid .thumbinner,
.bbog-grid .mw-file-element,
.bbog-grid .mw-file-description,
.bbog-grid .mw-file-caption,
.bbog-grid a.image {
   background: transparent !important;
   background: transparent !important;
   border: 0 !important;
   border: 0 !important;
Line 87: Line 56:
}
}


/* Some skins apply the "card" to the link wrapper */
/* Image: responsive, rounded, subtle hover */
.bbog-grid a.image {
.bbog-featured-img img {
  display: block !important;
}
 
/* Ensure the image itself is the only visible element */
.bbog-grid img {
   display: block !important;
   display: block !important;
   width: 100% !important;
   width: 100% !important;
Line 100: Line 64:
   margin: 0 auto !important;
   margin: 0 auto !important;
   border-radius: 14px !important;
   border-radius: 14px !important;
  transition: transform 0.15s ease;
}
}


/* Remove any pseudo-element overlays */
.bbog-featured-img img:hover {
.bbog-grid figure::before,
   transform: scale(1.02);
.bbog-grid figure::after,
.bbog-grid .thumb::before,
.bbog-grid .thumb::after,
.bbog-grid a.image::before,
.bbog-grid a.image::after {
   content: none !important;
  display: none !important;
}
}


/* Hard reset any Citizen "card" styling inside the featured grid */
/* Spacing above the Enter Wiki link.
.bbog-grid .bbog-card,
  Do NOT style the link itself so Citizen can keep its button look */
.bbog-grid .bbog-card * {
.bbog-featured-link {
  background: transparent !important;
   margin-top: 14px;
  box-shadow: none !important;
  border: 0 !important;
}
 
/* Remove any padding/radius coming from theme rules */
.bbog-grid .bbog-card {
  padding: 0 !important;
  border-radius: 0 !important;
}
 
/* Also strip padding/margins on common wrappers that can look like a box */
.bbog-grid .bbog-featured-img,
.bbog-grid .bbog-featured-link {
   background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
}

Revision as of 12:21, 16 February 2026

/* CSS placed here will be applied to all skins */


/* ===============================
   Big Book of Gaming - Featured Wikis Grid
   =============================== */

/* Grid layout: 2 per row desktop, 1 per row mobile */
.bbog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 20px;
}

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

/* Card container: NO background/border/box.
   IMPORTANT: do NOT reset children, so Citizen can style the "Enter Wiki" link */
.bbog-card {
  text-align: center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

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

/* Kill MediaWiki/Citizen file wrapper backgrounds just for the image area */
.bbog-featured-img figure,
.bbog-featured-img figure[typeof*="mw:File"],
.bbog-featured-img .mw-parser-output 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 auto !important;
  border-radius: 0 !important;
}

/* Image: responsive, rounded, subtle hover */
.bbog-featured-img img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  transition: transform 0.15s ease;
}

.bbog-featured-img img:hover {
  transform: scale(1.02);
}

/* Spacing above the Enter Wiki link.
   Do NOT style the link itself so Citizen can keep its button look */
.bbog-featured-link {
  margin-top: 14px;
}