MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
.mw-poweredby { | .mw-poweredby { | ||
display: none !important; | display: none !important; | ||
} | |||
/* ========================================================= | |||
Center the MediaWiki search bar (Vector 2022) | |||
Applies to all pages | |||
========================================================= */ | |||
/* Make header layout allow centering */ | |||
.mw-header { | |||
display: grid !important; | |||
grid-template-columns: 1fr auto 1fr !important; | |||
align-items: center !important; | |||
} | |||
/* Center the search container */ | |||
.mw-header #p-search, | |||
.mw-header .vector-search-box { | |||
grid-column: 2 !important; | |||
margin-left: auto !important; | |||
margin-right: auto !important; | |||
} | |||
/* Prevent search from stretching oddly */ | |||
.mw-header .vector-search-box { | |||
max-width: 720px !important; | |||
width: 100% !important; | |||
} | |||
/* Keep logo on the left */ | |||
.mw-header .mw-logo { | |||
grid-column: 1 !important; | |||
} | |||
/* Keep user tools on the right */ | |||
.mw-header .vector-user-links, | |||
.mw-header .mw-header-user { | |||
grid-column: 3 !important; | |||
justify-self: end !important; | |||
} | } | ||
Revision as of 19:11, 13 December 2025
/* SAFE BASELINE */
/* Text logo black */
.mw-logo,
.mw-logo a,
.mw-logo a:visited,
.mw-logo a:hover,
.mw-logo a:active {
color: #000 !important;
}
.mw-logo a:hover { text-decoration: none !important; }
/* Remove Powered by MediaWiki safely */
#footer-poweredby,
#footer-poweredbyico,
.mw-poweredby {
display: none !important;
}
/* =========================================================
Center the MediaWiki search bar (Vector 2022)
Applies to all pages
========================================================= */
/* Make header layout allow centering */
.mw-header {
display: grid !important;
grid-template-columns: 1fr auto 1fr !important;
align-items: center !important;
}
/* Center the search container */
.mw-header #p-search,
.mw-header .vector-search-box {
grid-column: 2 !important;
margin-left: auto !important;
margin-right: auto !important;
}
/* Prevent search from stretching oddly */
.mw-header .vector-search-box {
max-width: 720px !important;
width: 100% !important;
}
/* Keep logo on the left */
.mw-header .mw-logo {
grid-column: 1 !important;
}
/* Keep user tools on the right */
.mw-header .vector-user-links,
.mw-header .mw-header-user {
grid-column: 3 !important;
justify-self: end !important;
}