MediaWiki:Common.css
From Wizards & Warlords Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* MAIN GRID RULES */
/* --------------- */
.main-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
width: 100%;
text-align: center;
align-items: start;
}
.main-grid-item {
width: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
}
.main-grid-title {
font-variant: small-caps;
font-weight: bold;
font-size: 32px;
line-height: 1.1;
margin: 0;
padding: 0 0 4px 0;
height: 65px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
box-sizing: border-box;
overflow: hidden;
}
.main-grid-item img {
display: block;
width: 100%;
height: auto;
margin: 0 auto;
border: 1px solid #777;
}
.main-grid-text {
margin-top: 8px;
}
@media (max-width: 1100px) {
.main-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
.main-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.main-grid-title {
height: 88px;
font-size: 28px;
}
}
/* VALENDOR GRID RULES */
/* ------------------- */
.val-capital {
width: 100%;
margin: 0 0 32px 0;
padding-top: 24px;
padding-bottom: 24px;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}
.val-capital-title {
font-variant: small-caps;
font-weight: bold;
font-size: 36px;
line-height: 1.1;
text-align: center;
margin: 0 0 16px 0;
}
.val-capital-row {
display: grid;
grid-template-columns: 260px 1fr;
gap: 20px;
align-items: start;
}
.val-duchy-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 28px;
width: 100%;
}
.val-duchy-item {
width: 100%;
}
.val-duchy-title {
font-variant: small-caps;
font-weight: bold;
font-size: 30px;
line-height: 1.1;
text-align: center;
margin: 0 0 12px 0;
}
.val-duchy-row {
display: grid;
grid-template-columns: 140px 1fr;
gap: 16px;
align-items: start;
}
.val-capital-image img,
.val-duchy-image img {
display: block;
width: 100%;
height: auto;
margin: 0 auto;
border: 1px solid #777;
}
.val-capital-text,
.val-duchy-text {
text-align: left;
}
@media (max-width: 700px) {
.val-capital-row,
.val-duchy-row {
grid-template-columns: 1fr;
}
.val-duchy-grid {
grid-template-columns: 1fr;
}
.val-capital-text,
.val-duchy-text {
text-align: center;
}
.val-capital-title {
font-size: 30px;
}
.val-duchy-title {
font-size: 26px;
}
}
