MediaWiki:Common.css: Difference between revisions
Dragon 12dk (talk | contribs) No edit summary |
Dragon 12dk (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
* Custom NARA CSS Start | * Custom NARA CSS Start | ||
*/ | */ | ||
/* grid for lists of staff cards inside a role section */ | |||
.vc-card-grid { | |||
display: grid; | |||
gap: 16px; | |||
margin: 10px 0 22px 0; | |||
} | |||
/* two cards side-by-side */ | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr 1fr; | |||
} | |||
/* keep it 1-column on small screens */ | |||
@media (max-width: 900px) { | |||
.vc-card-grid--2 { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* IMPORTANT: when cards are in a grid, remove the card's bottom margin */ | |||
.vc-card-grid .vc-staff-card { | |||
margin-bottom: 0; | |||
} | |||
/* Prefer: opt out of DarkMode transforms */ | /* Prefer: opt out of DarkMode transforms */ | ||