MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
Center ONLY the search area; keep user/login far right | |||
Works even if Vector header wrappers differ | |||
========================================================= */ | ========================================================= */ | ||
/* PROOF (temporary): if you don't see this outline, Common.css isn't applying */ | |||
.mw-header { outline: 2px solid transparent; } /* change to red in debug if needed */ | |||
/* | /* Make the header a simple 3-part flex row */ | ||
.mw-header { | |||
display: flex !important; | |||
.mw-header | |||
display: | |||
align-items: center !important; | align-items: center !important; | ||
} | } | ||
/* | /* Logo stays left */ | ||
.mw-header . | .mw-header .mw-logo { | ||
flex: 0 0 auto !important; | |||
} | } | ||
/* | /* Search lane takes remaining space and centers its contents */ | ||
.mw-header .vector-header- | .mw-header [role="search"], | ||
.mw-header form.mw-search, | |||
.mw-header #p-search, | |||
.mw-header .vector-search-box, | |||
.mw-header .vector-search-box-vue { | |||
flex: 1 1 auto !important; | |||
display: flex !important; | display: flex !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
} | } | ||
/* | /* Constrain the search width (centered) */ | ||
.mw-header . | .mw-header [role="search"] input[type="search"], | ||
.mw-header form.mw-search input[type="search"], | |||
.mw-header #searchInput { | |||
width: min(720px, 100%) !important; | |||
} | } | ||
/* | /* User/login tools forced far right */ | ||
.mw-header .vector-user-links, | |||
.mw-header #p-personal, | |||
.mw-header .mw-header-user, | |||
.mw-header .vector- | .mw-header .vector-user-menu, | ||
.mw-header . | .mw-header .vector-user-menu-container { | ||
.mw-header .vector- | flex: 0 0 auto !important; | ||
.mw-header .vector- | |||
margin-left: auto !important; | margin-left: auto !important; | ||
justify-self: end !important; | |||
} | } | ||
Revision as of 19:45, 13 December 2025
/* =========================================================
Center ONLY the search area; keep user/login far right
Works even if Vector header wrappers differ
========================================================= */
/* PROOF (temporary): if you don't see this outline, Common.css isn't applying */
.mw-header { outline: 2px solid transparent; } /* change to red in debug if needed */
/* Make the header a simple 3-part flex row */
.mw-header {
display: flex !important;
align-items: center !important;
}
/* Logo stays left */
.mw-header .mw-logo {
flex: 0 0 auto !important;
}
/* Search lane takes remaining space and centers its contents */
.mw-header [role="search"],
.mw-header form.mw-search,
.mw-header #p-search,
.mw-header .vector-search-box,
.mw-header .vector-search-box-vue {
flex: 1 1 auto !important;
display: flex !important;
justify-content: center !important;
}
/* Constrain the search width (centered) */
.mw-header [role="search"] input[type="search"],
.mw-header form.mw-search input[type="search"],
.mw-header #searchInput {
width: min(720px, 100%) !important;
}
/* User/login tools forced far right */
.mw-header .vector-user-links,
.mw-header #p-personal,
.mw-header .mw-header-user,
.mw-header .vector-user-menu,
.mw-header .vector-user-menu-container {
flex: 0 0 auto !important;
margin-left: auto !important;
justify-self: end !important;
}