More actions
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) | |||
Goal: NO big boxes around images, ONLY button styling on Enter Wiki | |||
=============================== */ | =============================== */ | ||
.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; } | ||
} | } | ||
/* | /* Citizen adds panel styling to generic div blocks in content. | ||
. | Force our featured containers to be transparent and unboxed. */ | ||
background: transparent !important; | .bbog-grid, | ||
border: | .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; | |||
} | } | ||
.bbog-card{ text-align:center; } | |||
.bbog-featured-title { | |||
font-size: 1.1rem; | .bbog-featured-title{ | ||
font-weight: 600; | font-size:1.1rem; | ||
margin | 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 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: | 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; | |||
} | } | ||
/* | /* 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 | transition:transform .15s ease; | ||
} | } | ||
.bbog-featured-img img:hover { | .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{ | |||
.bbog- | background:rgba(0,0,0,.06); | ||
} | } | ||
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);
}