MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================= | /* ========================= | ||
Main Page as Light Wiki Mock (WAF-safe: styling only) | |||
========================= */ | ========================= */ | ||
/* | /* Target only Main Page */ | ||
# | .page-Main_Page .mw-page-title-main { display: none; } /* hide default big title */ | ||
# | |||
.mw- | /* Create a centered "article card" */ | ||
display: none !important; | .page-Main_Page #mw-content-text { | ||
max-width: 1100px; | |||
margin: 18px auto !important; | |||
padding: 0 !important; | |||
} | |||
.page-Main_Page .mw-parser-output { | |||
background: #f6f6f6; | |||
border: 1px solid #e6e6e6; | |||
border-radius: 10px; | |||
box-shadow: 0 10px 30px rgba(0,0,0,.08); | |||
overflow: hidden; | |||
} | |||
/* Header strip */ | |||
.page-Main_Page .mw-parser-output > h1 { | |||
margin: 0; | |||
padding: 18px 18px 12px; | |||
background: #f0f0f0; | |||
border-bottom: 1px solid #e6e6e6; | |||
font-size: 26px; | |||
font-weight: 900; | |||
letter-spacing: .02em; | |||
} | |||
/* Subtitle line right under the heading */ | |||
.page-Main_Page .mw-parser-output > p:first-of-type { | |||
margin: 0; | |||
padding: 0 18px 16px; | |||
background: #f0f0f0; | |||
border-bottom: 1px solid #e6e6e6; | |||
color: #3a3a3a; | |||
font-size: 13px; | |||
} | |||
/* Body padding */ | |||
.page-Main_Page .mw-parser-output > *:not(h1):not(p:first-of-type) { | |||
padding-left: 18px; | |||
padding-right: 18px; | |||
} | |||
.page-Main_Page .mw-parser-output > h2 { | |||
margin-top: 22px; | |||
font-size: 14px; | |||
font-weight: 900; | |||
letter-spacing: .12em; | |||
text-transform: uppercase; | |||
color: #3a3a3a; | |||
} | |||
/* Make the Search link look like a pill button */ | |||
.page-Main_Page a[href*="Special:Search"] { | |||
display: inline-block; | |||
padding: 10px 14px; | |||
border: 1px solid #e6e6e6; | |||
border-radius: 999px; | |||
background: #fff; | |||
text-decoration: none !important; | |||
font-weight: 800; | |||
letter-spacing: .06em; | |||
text-transform: uppercase; | |||
font-size: 12px; | |||
color: #0a0a0a !important; | |||
} | } | ||
Revision as of 18:46, 13 December 2025
/* =========================
Main Page as Light Wiki Mock (WAF-safe: styling only)
========================= */
/* Target only Main Page */
.page-Main_Page .mw-page-title-main { display: none; } /* hide default big title */
/* Create a centered "article card" */
.page-Main_Page #mw-content-text {
max-width: 1100px;
margin: 18px auto !important;
padding: 0 !important;
}
.page-Main_Page .mw-parser-output {
background: #f6f6f6;
border: 1px solid #e6e6e6;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,.08);
overflow: hidden;
}
/* Header strip */
.page-Main_Page .mw-parser-output > h1 {
margin: 0;
padding: 18px 18px 12px;
background: #f0f0f0;
border-bottom: 1px solid #e6e6e6;
font-size: 26px;
font-weight: 900;
letter-spacing: .02em;
}
/* Subtitle line right under the heading */
.page-Main_Page .mw-parser-output > p:first-of-type {
margin: 0;
padding: 0 18px 16px;
background: #f0f0f0;
border-bottom: 1px solid #e6e6e6;
color: #3a3a3a;
font-size: 13px;
}
/* Body padding */
.page-Main_Page .mw-parser-output > *:not(h1):not(p:first-of-type) {
padding-left: 18px;
padding-right: 18px;
}
.page-Main_Page .mw-parser-output > h2 {
margin-top: 22px;
font-size: 14px;
font-weight: 900;
letter-spacing: .12em;
text-transform: uppercase;
color: #3a3a3a;
}
/* Make the Search link look like a pill button */
.page-Main_Page a[href*="Special:Search"] {
display: inline-block;
padding: 10px 14px;
border: 1px solid #e6e6e6;
border-radius: 999px;
background: #fff;
text-decoration: none !important;
font-weight: 800;
letter-spacing: .06em;
text-transform: uppercase;
font-size: 12px;
color: #0a0a0a !important;
}