MediaWiki:Minerva.css: Difference between revisions
Appearance
No edit summary Tags: Reverted Mobile edit Mobile web edit |
No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
Line 48: | Line 48: | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
. | .infobox::before { | ||
content: "2030 Winona tornado"; /* Replace with the actual page name */ | |||
} | display: table-row; | ||
text-align: center; | |||
font-weight: bold; | |||
font-size: 14.4px; | |||
color: #202122; | |||
background-color: #F8F9FA; | |||
padding: 0.5em; | |||
margin-bottom: 0.25em; | |||
} | |||
/* Hide the actual title at top of page if needed */ | |||
h1.firstHeading { | |||
. | display: none; | ||
} | |||
} | } |
Revision as of 22:17, 24 April 2025
.infobox {
background-color: #F8F9FA !important;
border: 1px solid #DADDE3 !important;
border-collapse: collapse;
width: 100%;
font-size: 14.4px !important;
line-height: 1.4;
color: #202122 !important;
margin: 0 auto 1em auto;
}
.infobox td,
.infobox th {
border: none;
padding: 6px 8px;
vertical-align: top;
background-color: #F8F9FA;
font-size: 14.4px !important;
color: #202122 !important;
}
/* Clean row-based dividers */
.infobox tr {
border-bottom: 1px solid #DADDE3;
}
.infobox tr:last-child {
border-bottom: none;
}
/* Section header style */
.infobox .section-header {
background-color: #F8F9FA;
font-weight: bold;
text-align: left;
border-bottom: 1px solid #DADDE3;
}
/* Caption style */
.infobox caption {
background-color: #F8F9FA;
padding: 0.5em;
text-align: center;
font-weight: bold;
font-size: 14.4px !important;
color: #202122;
}
@media screen and (max-width: 720px) {
.infobox::before {
content: "2030 Winona tornado"; /* Replace with the actual page name */
display: table-row;
text-align: center;
font-weight: bold;
font-size: 14.4px;
color: #202122;
background-color: #F8F9FA;
padding: 0.5em;
margin-bottom: 0.25em;
}
/* Hide the actual title at top of page if needed */
h1.firstHeading {
display: none;
}
}