MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 93: | Line 93: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.infobox-substance { | .infobox-substance { | ||
float: none; | float: none !important; | ||
width: 100%; | width: 100% !important; | ||
margin: 0 0 1em 0; | margin: 0 0 1em 0 !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
} | } | ||
Revision as of 14:26, 12 May 2026
/* ========== Main page hero ========== */
.altered-hero {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 3em 1em 2.5em;
gap: 0.75em;
width: 100%;
box-sizing: border-box;
}
.altered-hero__logo img {
width: 128px;
height: 128px;
filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.18));
}
.altered-hero__title {
font-size: 2.5em;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1;
}
.altered-hero__tagline {
font-size: 1.1em;
opacity: 0.75;
max-width: 520px;
line-height: 1.6;
}
html.skin-theme-clientpref-night {
--filter-image-brightness: invert(1) hue-rotate(180deg);
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os {
--filter-image-brightness: invert(1) hue-rotate(180deg);
}
}
.infobox-substance {
float: right;
clear: right;
margin: 0 0 1em 1.5em;
width: 280px;
font-size: 0.9em;
border-collapse: collapse;
}
.infobox-substance__title {
text-align: center;
font-size: 1.1em;
font-weight: 700;
padding: 0.5em;
}
.infobox-substance__image {
text-align: center;
padding: 0.75em 0.5em 0.25em;
}
.infobox-substance__caption {
text-align: center;
font-size: 0.85em;
font-style: italic;
color: var(--color-subtle, #72777d);
padding: 0 0.5em 0.5em;
}
.infobox-substance__section {
text-align: center;
font-weight: 600;
background: var(--background-color-interactive, #eaecf0);
padding: 0.3em 0.5em;
}
.infobox-substance th {
white-space: nowrap;
font-weight: 600;
text-align: left;
padding: 0.25em 0.5em;
vertical-align: top;
}
.infobox-substance td {
padding: 0.25em 0.5em;
vertical-align: top;
}
@media (max-width: 720px) {
.infobox-substance {
float: none !important;
width: 100% !important;
margin: 0 0 1em 0 !important;
box-sizing: border-box;
}
}