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 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
/* ===============================
/* ===============================
   BBOG Featured Wikis Grid (Citizen-safe)
   BBOG Featured Wikis Grid (NO raw HTML required)
  Goal: NO big boxes around images, ONLY button styling on Enter Wiki
   =============================== */
   =============================== */


Line 16: Line 16:
}
}


/* Citizen adds panel styling to generic div blocks in content.
/* Citizen sometimes styles content divs as panels.
   Force our featured containers to be transparent and unboxed. */
   Explicitly neutralise ONLY our card containers (not the link button). */
.bbog-grid,
.bbog-card{
.bbog-grid .bbog-card,
.bbog-grid .bbog-featured-title,
.bbog-grid .bbog-featured-img{
   background:transparent !important;
   background:transparent !important;
   border:0 !important;
   border:0 !important;
Line 27: Line 24:
   padding:0 !important;
   padding:0 !important;
   border-radius:0 !important;
   border-radius:0 !important;
  text-align:center;
}
}
.bbog-card{ text-align:center; }


.bbog-featured-title{
.bbog-featured-title{
Line 37: Line 33:
}
}


/* Strip MediaWiki/Citizen file wrappers that can introduce padding/background */
/* REMOVE the grey/padded box that Citizen applies to File/figure wrappers */
.bbog-featured-img figure,
.bbog-featured-img figure,
.bbog-featured-img .thumb,
.bbog-featured-img .thumb,
.bbog-featured-img .thumbinner,
.bbog-featured-img .thumbinner,
.bbog-featured-img .mw-file-element,
.bbog-featured-img .mw-file-element,
.bbog-featured-img .mw-file-description,
.bbog-featured-img a.image{
.bbog-featured-img a.image{
   background:transparent !important;
   background:transparent !important;
Line 51: Line 48:
}
}


/* Image itself */
/* The actual image */
.bbog-featured-img img{
.bbog-featured-img img{
   display:block !important;
   display:block !important;
Line 59: Line 56:
   margin:0 auto !important;
   margin:0 auto !important;
   border-radius:14px !important;
   border-radius:14px !important;
  transition:transform .15s ease;
}
}


.bbog-featured-img img:hover{ transform:scale(1.02); }
/* BUTTON: style only the Enter Wiki link as a button.
  External links render as <a class="external text"> inside the link div. */
.bbog-featured-link{
  margin-top:14px;
}


/* Button: ONLY this should look like a box */
.bbog-featured-link a{
.bbog-enter{
   display:inline-block !important;
   display:inline-block;
   padding:12px 18px !important;
  margin-top:14px;
   border-radius:12px !important;
   padding:12px 18px;
   text-decoration:none !important;
   border-radius:12px;
   font-weight:600 !important;
   text-decoration:none;
   border:1px solid rgba(0,0,0,.10) !important;
   font-weight:600;
   background:rgba(0,0,0,.04) !important;
   border:1px solid rgba(0,0,0,.08);
   background:rgba(0,0,0,.04);
}
}


.bbog-enter:hover{
.bbog-featured-link a:hover{
   background:rgba(0,0,0,.06);
   background:rgba(0,0,0,.06) !important;
}
}

Revision as of 12:25, 16 February 2026

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

/* ===============================
   BBOG Featured Wikis Grid (NO raw HTML required)
   =============================== */

.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; }
}

/* Citizen sometimes styles content divs as panels.
   Explicitly neutralise ONLY our card containers (not the link button). */
.bbog-card{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
  text-align:center;
}

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

/* REMOVE the grey/padded box that Citizen applies to File/figure wrappers */
.bbog-featured-img figure,
.bbog-featured-img .thumb,
.bbog-featured-img .thumbinner,
.bbog-featured-img .mw-file-element,
.bbog-featured-img .mw-file-description,
.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;
}

/* The actual image */
.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;
}

/* BUTTON: style only the Enter Wiki link as a button.
   External links render as <a class="external text"> inside the link div. */
.bbog-featured-link{
  margin-top:14px;
}

.bbog-featured-link a{
  display:inline-block !important;
  padding:12px 18px !important;
  border-radius:12px !important;
  text-decoration:none !important;
  font-weight:600 !important;
  border:1px solid rgba(0,0,0,.10) !important;
  background:rgba(0,0,0,.04) !important;
}

.bbog-featured-link a:hover{
  background:rgba(0,0,0,.06) !important;
}