MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
font-size: 20px; | font-size: 20px; | ||
font-weight: bold; | font-weight: bold; | ||
} | |||
/* keeps each icon+label spacing consistent */ | |||
.navcell{ | |||
padding: 0 22px; | |||
vertical-align: top; | |||
} | |||
/* remove baseline weirdness + center images */ | |||
.navimg img{ | |||
display:block; | |||
margin:0 auto; | |||
} | |||
/* consistent gap between image and label */ | |||
.navlabel{ | |||
margin-top: 10px; | |||
line-height: 1.1; | |||
font-weight: 700; | |||
} | |||
/* center the 3-item second row */ | |||
.navrow3{ | |||
display:flex; | |||
justify-content:center; | |||
gap: 70px; | |||
} | |||
.navitem{ | |||
text-align:center; | |||
} | } | ||
Revision as of 23:35, 28 February 2026
/* CSS placed here will be applied to all skins */
.navimg img {
display: block;
margin: 0 auto;
}
.main-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px; /* SAME spacing between rows */
text-align: center;
margin-top: 40px;
}
.main-card img {
display: block;
margin: 0 auto 15px auto; /* Controls space under image */
}
.card-title {
font-size: 20px;
font-weight: bold;
}
/* keeps each icon+label spacing consistent */
.navcell{
padding: 0 22px;
vertical-align: top;
}
/* remove baseline weirdness + center images */
.navimg img{
display:block;
margin:0 auto;
}
/* consistent gap between image and label */
.navlabel{
margin-top: 10px;
line-height: 1.1;
font-weight: 700;
}
/* center the 3-item second row */
.navrow3{
display:flex;
justify-content:center;
gap: 70px;
}
.navitem{
text-align:center;
}