MediaWiki:Minerva.css: Difference between revisions
Appearance
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 21: | Line 21: | ||
/* ✅ NEW: Left-align only the second cell of each row */ | /* ✅ NEW: Left-align only the second cell of each row */ | ||
.infobox | .infobox tr:nth-child(2) { | ||
text-align: left; | text-align: left; | ||
} | } |
Revision as of 22:49, 24 April 2025
.infobox {
background-color: #F9F9F9 !important;
border: 1px solid #DCDBE0 !important;
border-collapse: collapse;
width: 100%;
font-size: 14.4px !important;
line-height: 1.8em !important;
color: #202123 !important;
margin: 0 auto 1em auto;
}
.infobox td,
.infobox th {
border: none;
padding: 6px 8px;
vertical-align: top;
background-color: #F9F9F9;
font-size: 14.4px !important;
color: #202123 !important;
}
/* ✅ NEW: Left-align only the second cell of each row */
.infobox tr:nth-child(2) {
text-align: left;
}
/* Clean row-based dividers */
.infobox tr {
border-bottom: 0.75px solid #DCDBE0;
}
.infobox tr:last-child {
border-bottom: none;
}
/* Section header style */
.infobox .section-header {
background-color: #F9F9F9;
font-weight: bold;
text-align: left;
border-bottom: 0.75px solid #DCDBE0;
}
/* Caption style */
.infobox caption {
background-color: #F9F9F9;
padding: 0.5em;
text-align: center;
font-weight: bold;
font-size: 14.4px !important;
color: #202123;
}
@media screen and (max-width: 720px) {
.infobox {
float: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
}