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
 
(8 intermediate revisions by the same user not shown)
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)
  Goal: NO big boxes around images, ONLY button styling on Enter Wiki
  =============================== */


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


@media (max-width:700px){
@media (max-width:700px){
   .bbog-grid{ grid-template-columns:1fr; }
   .bbog-grid{ grid-template-columns:1fr !important; }
}
 
/* Citizen adds panel styling to generic div blocks in content.
  Force our featured containers to be transparent and unboxed. */
.bbog-grid,
.bbog-grid .bbog-card,
.bbog-grid .bbog-featured-title,
.bbog-grid .bbog-featured-img{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
}


Line 34: Line 18:
   font-size:1.1rem;
   font-size:1.1rem;
   font-weight:600;
   font-weight:600;
   margin:0 0 14px 0;
   margin:0 0 6px 0;
}
 
/* Force the title-to-image spacing tight */
.bbog-featured-title { margin-bottom: 0 !important; padding-bottom: 0 !important; line-height: 1.2 !important; }
 
/* Kill the mysterious vertical gap between title and image */
.bbog-featured-img {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
 
/* Restore normal behaviour for the image itself */
.bbog-featured-img img {
  line-height: normal !important;
  font-size: initial !important;
}
}


/* Strip MediaWiki/Citizen file wrappers that can introduce padding/background */
 
.bbog-featured-img figure,
/* THE FIX: remove Citizen “panel” look in the image area ONLY.
.bbog-featured-img .thumb,
  IMPORTANT: only reset visual properties – do NOT touch margin/padding/display here. */
.bbog-featured-img .thumbinner,
.bbog-featured-img,
.bbog-featured-img .mw-file-element,
.bbog-featured-img *{
.bbog-featured-img a.image{
   background:transparent !important;
   background:transparent !important;
  box-shadow:none !important;
  border-color:transparent !important;
  outline:0 !important;
}
/* Also strip borders explicitly where some skins use border shorthand */
.bbog-featured-img *{
   border:0 !important;
   border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 auto !important;
  border-radius:0 !important;
}
}


/* Image itself */
/* Image should fill the card width */
.bbog-featured-img img{
.bbog-featured-img img{
   display:block !important;
   display:block !important;
   width:100% !important;
   width:100% !important;
   height:auto !important;
   height:auto !important;
   max-width:560px !important;
   max-width:none !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); }
/* Leave Enter Wiki styling alone (Citizen can do its button thing) */
 
.bbog-featured-link{ margin-top:14px; }
/* Button: ONLY this should look like a box */
.bbog-enter{
  display:inline-block;
  margin-top:14px;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.04);
}
 
.bbog-enter:hover{
  background:rgba(0,0,0,.06);
}

Latest revision as of 12:35, 16 February 2026

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

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

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

.bbog-card{ text-align:center; }

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

/* Force the title-to-image spacing tight */
.bbog-featured-title { margin-bottom: 0 !important; padding-bottom: 0 !important; line-height: 1.2 !important; }

/* Kill the mysterious vertical gap between title and image */
.bbog-featured-img {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Restore normal behaviour for the image itself */
.bbog-featured-img img {
  line-height: normal !important;
  font-size: initial !important;
}


/* THE FIX: remove Citizen “panel” look in the image area ONLY.
   IMPORTANT: only reset visual properties – do NOT touch margin/padding/display here. */
.bbog-featured-img,
.bbog-featured-img *{
  background:transparent !important;
  box-shadow:none !important;
  border-color:transparent !important;
  outline:0 !important;
}

/* Also strip borders explicitly where some skins use border shorthand */
.bbog-featured-img *{
  border:0 !important;
}

/* Image should fill the card width */
.bbog-featured-img img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  border-radius:14px !important;
}

/* Leave Enter Wiki styling alone (Citizen can do its button thing) */
.bbog-featured-link{ margin-top:14px; }