MediaWiki:Common.css: Difference between revisions
Appearance
Austenasia (talk | contribs) No edit summary |
Austenasia (talk | contribs) No edit summary |
||
| (25 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
. | .vector-header-start { | ||
padding:10px; | |||
} | } | ||
.mw-logo-wordmark { | .mw-logo-wordmark { | ||
width: | width: 180px !important; | ||
height: auto; | height: auto !important; | ||
max-height: 32px; | } | ||
.skin-vector-2022 .vector-search-box { | |||
margin-left: 8px; | |||
} | |||
.skin-vector-2022 #p-search { | |||
margin-left: 9px; | |||
} | |||
/* Do not invert logo in dark mode */ | |||
.mw-logo-container { | |||
filter: none !important; | |||
} | |||
.skin-vector-2022 .mw-logo { | |||
gap: 0px; | |||
} | |||
.skin-vector-2022 .mw-logo-icon { | |||
width: 50px; | |||
height: 50px; | |||
padding: 5px; | |||
box-sizing: border-box; | |||
} | |||
.skin-vector-2022 .mw-logo-wordmark { | |||
width: 170px !important; | |||
height: auto !important; | |||
max-width: none !important; | |||
max-height: none !important; | |||
} | |||
/* === Main Page layout === */ | |||
.mainpage-layout { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) 352px; | |||
gap: 32px; | |||
align-items: start; | |||
} | |||
.mainpage-content { | |||
min-width: 0; | |||
} | |||
.mainpage-intro { | |||
font-size: 16px; | |||
line-height: 1.65; | |||
} | |||
/* === Right sidebar === */ | |||
.mainpage-sidebar { | |||
width: 352px; | |||
overflow: hidden; | |||
font-family: sans-serif; | |||
} | |||
.mainpage-social { | |||
min-height: 98px; | |||
display: flex; | |||
align-items: center; | |||
padding: 0 25px; | |||
box-sizing: border-box; | |||
color: #fff; | |||
} | |||
.mainpage-discord { | |||
background: #5865f2; | |||
margin-top: 16px; | |||
} | |||
.mainpage-news { | |||
background: #17212b; | |||
margin-top: 16px; | |||
} | |||
.mainpage-social-icon { | |||
width: 40px; | |||
flex: 0 0 40px; | |||
margin-right: 25px; | |||
padding: 0; | |||
} | |||
.mainpage-social-text { | |||
flex: 1; | |||
} | |||
.mainpage-social-title { | |||
font-size: 17px; | |||
font-weight: 700; | |||
margin-bottom: 6px; | |||
} | |||
.mainpage-social-subtitle { | |||
font-size: 14px; | |||
} | |||
.mainpage-social-arrow { | |||
font-size: 34px; | |||
font-weight: 300; | |||
} | |||
.mainpage-social-label { | |||
background: #525ee0; | |||
color: #fff; | |||
text-align: center; | |||
padding: 15px 10px; | |||
font-size: 12px; | |||
font-weight: 700; | |||
letter-spacing: .4px; | |||
} | |||
.mainpage-news-label { | |||
background: #111a22; | |||
} | |||
/* === Help panel === */ | |||
.mainpage-help { | |||
margin-top: 14px; | |||
background: #b82025; | |||
color: #fff; | |||
} | |||
.mainpage-help h2 { | |||
margin: 0; | |||
padding: 22px 24px 8px; | |||
border: 0; | |||
color: #fff; | |||
font-family: Georgia, serif; | |||
font-size: 22px; | |||
} | |||
.mainpage-help p { | |||
margin: 0; | |||
padding: 0 24px 18px; | |||
font-size: 14px; | |||
line-height: 1.65; | |||
} | |||
.mainpage-help-links { | |||
padding: 16px 24px 20px; | |||
background: rgba(0, 0, 0, .08); | |||
line-height: 1.8; | |||
font-size: 14px; | |||
} | |||
.mainpage-help-links a { | |||
color: #fff !important; | |||
text-decoration: none; | |||
} | |||
.mainpage-help-links a:hover { | |||
text-decoration: underline; | |||
} | |||
/* === Mobile === */ | |||
@media (max-width: 900px) { | |||
.mainpage-layout { | |||
display: block; | |||
} | |||
.mainpage-sidebar { | |||
width: 100%; | |||
margin-top: 30px; | |||
} | |||
} | } | ||
Latest revision as of 20:33, 19 September 2026
/* CSS placed here will be applied to all skins */
.vector-header-start {
padding:10px;
}
.mw-logo-wordmark {
width: 180px !important;
height: auto !important;
}
.skin-vector-2022 .vector-search-box {
margin-left: 8px;
}
.skin-vector-2022 #p-search {
margin-left: 9px;
}
/* Do not invert logo in dark mode */
.mw-logo-container {
filter: none !important;
}
.skin-vector-2022 .mw-logo {
gap: 0px;
}
.skin-vector-2022 .mw-logo-icon {
width: 50px;
height: 50px;
padding: 5px;
box-sizing: border-box;
}
.skin-vector-2022 .mw-logo-wordmark {
width: 170px !important;
height: auto !important;
max-width: none !important;
max-height: none !important;
}
/* === Main Page layout === */
.mainpage-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 352px;
gap: 32px;
align-items: start;
}
.mainpage-content {
min-width: 0;
}
.mainpage-intro {
font-size: 16px;
line-height: 1.65;
}
/* === Right sidebar === */
.mainpage-sidebar {
width: 352px;
overflow: hidden;
font-family: sans-serif;
}
.mainpage-social {
min-height: 98px;
display: flex;
align-items: center;
padding: 0 25px;
box-sizing: border-box;
color: #fff;
}
.mainpage-discord {
background: #5865f2;
margin-top: 16px;
}
.mainpage-news {
background: #17212b;
margin-top: 16px;
}
.mainpage-social-icon {
width: 40px;
flex: 0 0 40px;
margin-right: 25px;
padding: 0;
}
.mainpage-social-text {
flex: 1;
}
.mainpage-social-title {
font-size: 17px;
font-weight: 700;
margin-bottom: 6px;
}
.mainpage-social-subtitle {
font-size: 14px;
}
.mainpage-social-arrow {
font-size: 34px;
font-weight: 300;
}
.mainpage-social-label {
background: #525ee0;
color: #fff;
text-align: center;
padding: 15px 10px;
font-size: 12px;
font-weight: 700;
letter-spacing: .4px;
}
.mainpage-news-label {
background: #111a22;
}
/* === Help panel === */
.mainpage-help {
margin-top: 14px;
background: #b82025;
color: #fff;
}
.mainpage-help h2 {
margin: 0;
padding: 22px 24px 8px;
border: 0;
color: #fff;
font-family: Georgia, serif;
font-size: 22px;
}
.mainpage-help p {
margin: 0;
padding: 0 24px 18px;
font-size: 14px;
line-height: 1.65;
}
.mainpage-help-links {
padding: 16px 24px 20px;
background: rgba(0, 0, 0, .08);
line-height: 1.8;
font-size: 14px;
}
.mainpage-help-links a {
color: #fff !important;
text-decoration: none;
}
.mainpage-help-links a:hover {
text-decoration: underline;
}
/* === Mobile === */
@media (max-width: 900px) {
.mainpage-layout {
display: block;
}
.mainpage-sidebar {
width: 100%;
margin-top: 30px;
}
}
.hatnote {
font-style: italic;
padding-left: 1.6em;
margin-bottom: 0.5em;
}