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 */
/* ===============================
/* ===============================
   Big Book of Gaming - Featured Wikis Grid
   BBOG Featured Wikis Grid (Citizen-safe)
  Goal: NO big boxes around images, ONLY button styling on Enter Wiki
   =============================== */
   =============================== */


/* Grid layout */
.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;
   gap: 40px;
   margin-top:20px;
   margin-top: 20px;
}
}


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


/* Remove Citizen content-block styling ONLY from card container */
/* Citizen adds panel styling to generic div blocks in content.
.mw-parser-output > .bbog-grid > .bbog-card {
  Force our featured containers to be transparent and unboxed. */
   background: transparent !important;
.bbog-grid,
   border: none !important;
.bbog-grid .bbog-card,
   box-shadow: none !important;
.bbog-grid .bbog-featured-title,
   padding: 0 !important;
.bbog-grid .bbog-featured-img{
   border-radius: 0 !important;
   background:transparent !important;
   border:0 !important;
   box-shadow:none !important;
   padding:0 !important;
   border-radius:0 !important;
}
}


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


/* Remove image wrapper styling ONLY inside image area */
/* Strip MediaWiki/Citizen file wrappers that can introduce padding/background */
.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,
   background: transparent !important;
.bbog-featured-img a.image{
   border: none !important;
   background:transparent !important;
   box-shadow: none !important;
   border:0 !important;
   padding: 0 !important;
   box-shadow:none !important;
   padding:0 !important;
  margin:0 auto !important;
  border-radius:0 !important;
}
}


/* Clean image */
/* Image itself */
.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:560px !important;
   margin: 0 auto !important;
   margin:0 auto !important;
   border-radius: 14px !important;
   border-radius:14px !important;
   transition: transform 0.15s ease;
   transition:transform .15s ease;
}
}


.bbog-featured-img img:hover {
.bbog-featured-img img:hover{ transform:scale(1.02); }
  transform: scale(1.02);
 
/* 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);
}
}


/* Spacing above Enter Wiki button */
.bbog-enter:hover{
.bbog-featured-link {
   background:rgba(0,0,0,.06);
   margin-top: 14px;
}
}

Revision as of 12:23, 16 February 2026

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

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

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

/* Strip MediaWiki/Citizen file wrappers that can introduce padding/background */
.bbog-featured-img figure,
.bbog-featured-img .thumb,
.bbog-featured-img .thumbinner,
.bbog-featured-img .mw-file-element,
.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 itself */
.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 .15s ease;
}

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

/* 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);
}