MediaWiki:Vector-2022.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 96: | Line 96: | ||
/* Keep the wrapper shape the same in all states */ | |||
/* | |||
.vector-search-box .cdx-text-input { | .vector-search-box .cdx-text-input { | ||
border: 1px solid #c5d0e3 !important; | border: 1px solid #c5d0e3 !important; /* constant width -> no height pop */ | ||
border-radius: 25px !important; | border-radius: 25px !important; | ||
background: transparent !important; | background: transparent !important; | ||
| Line 124: | Line 108: | ||
} | } | ||
/* On | /* On focus, don't change size; (optional) keep same border color to avoid flicker */ | ||
.vector-search-box .cdx-text-input:focus-within { | .vector-search-box .cdx-text-input:focus-within { | ||
border: | border-color: #c5d0e3 !important; /* or your accent if you want */ | ||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
/* | /* Actual input: fixed height/bg/radius, no border */ | ||
.vector-search-box .cdx-text-input__input, | .vector-search-box .cdx-text-input__input, | ||
#searchInput { | #searchInput { | ||
| Line 140: | Line 120: | ||
height: 42px !important; | height: 42px !important; | ||
line-height: 42px !important; | line-height: 42px !important; | ||
padding: 0 14px !important; | padding: 0 14px !important; /* right padding */ | ||
background-color: #E9EEF6 !important; | background-color: #E9EEF6 !important; | ||
color: #1f1f1f !important; | color: #1f1f1f !important; | ||
border: 0 !important; | border: 0 !important; | ||
border-radius: 25px !important; | border-radius: 25px !important; | ||
outline: none !important; | outline: none !important; | ||
| Line 150: | Line 130: | ||
} | } | ||
/* | /* Reserve icon space ALWAYS (before and during focus) */ | ||
.vector-search-box .cdx-text-input | .vector-search-box .cdx-text-input--has-start-icon .cdx-text-input__input, | ||
.vector-search-box .cdx-text-input:focus-within .cdx-text-input__input | .vector-search-box .cdx-text-input:focus-within .cdx-text-input__input { | ||
padding-left: 38px !important; /* 20px icon + gap; tweak if needed */ | |||
background-color: #E9EEF6 !important; | background-color: #E9EEF6 !important; | ||
} | } | ||
/* | /* Fix your earlier typo so layout stays stable */ | ||
.cdx-search-input--has-end-button { | .cdx-search-input--has-end-button { | ||
border: 0; | border: 0; | ||
background: transparent; | background: transparent; | ||
display: flex; | display: flex; /* was 'display; flex;' */ | ||
gap: 7px; | gap: 7px; | ||
} | } | ||
/* | /* Prevent Codex from changing look on focus */ | ||
. | .vector-header-end .cdx-text-input:focus-within, | ||
#vector-sticky-header .cdx-text-input:focus-within, | |||
.vector-header-end .cdx-text-input__input:focus, | |||
#vector-sticky-header .cdx-text-input__input:focus { | |||
background-color: #E9EEF6 !important; | |||
border: 0 !important; | |||
border-radius: 12px !important; | |||
box-shadow: none !important; | |||
outline: none !important; | |||
height: 42px !important; | |||
color: rgb(31, 31, 31) !important; | |||
} | } | ||
Revision as of 17:26, 4 November 2025
/* Vector 2022 CSS Styling */
.skin-vector-2022 #vector-main-menu-pinned-container {
display: none !important;
}
/* Remove the pin/unpin buttons so nobody can toggle it */
.skin-vector-2022 .vector-pinnable-header-pin-button,
.skin-vector-2022 .vector-pinnable-header-unpin-button {
display: none !important;
}
/* Hide the Appearance trigger (glasses/moon icon + its label) */
.skin-vector-2022 [aria-label="Appearance"],
.skin-vector-2022 .vector-appearance,
.skin-vector-2022 #vector-appearance,
.skin-vector-2022 .vector-appearance-menu,
.skin-vector-2022 .vector-dropdown.vector-appearance {
display: none !important;
}
/* If your site language isn't English, also hide by title text */
.skin-vector-2022 [title="Appearance"] {
display: none !important;
}
/* Never show the sidebar Page tools, and remove pin/unpin UI */
.skin-vector-2022 #vector-page-tools-pinned-container { display: none !important; }
.skin-vector-2022 .vector-pinnable-header-pin-button,
.skin-vector-2022 .vector-pinnable-header-unpin-button { display: none !important; }
html {
background-color: white;
}
body {
background-color: white;
}
.mw-logo-wordmark {
}
.vector-menu-content-list span {
}
.vector-icon.mw-ui-icon-menu.mw-ui-icon-wikimedia-menu {
background-color: rgb(68, 71, 70) !important;
}
.vector-icon.mw-ui-icon-userAvatar.mw-ui-icon-wikimedia-userAvatar {
background-color: rgb(68, 71, 70)!important;
}
.vector-icon.mw-ui-icon-watchlist.mw-ui-icon-wikimedia-watchlist {
background-color: rgb(68, 71, 70)!important;
}
.vector-dropdown-label-text span {
}
#vector-user-links-dropdown-label::after {
}
.vector-header-container {
width: 100%;
background-color: #F8FAFD;
}
.vector-header.mw-header {
background-color: #F8FAFD;
}
.mw-page-container {
}
/* Keep the wrapper shape the same in all states */
.vector-search-box .cdx-text-input {
border: 1px solid #c5d0e3 !important; /* constant width -> no height pop */
border-radius: 25px !important;
background: transparent !important;
box-shadow: none !important;
transition: none !important;
}
/* On focus, don't change size; (optional) keep same border color to avoid flicker */
.vector-search-box .cdx-text-input:focus-within {
border-color: #c5d0e3 !important; /* or your accent if you want */
box-shadow: none !important;
}
/* Actual input: fixed height/bg/radius, no border */
.vector-search-box .cdx-text-input__input,
#searchInput {
box-sizing: border-box !important;
height: 42px !important;
line-height: 42px !important;
padding: 0 14px !important; /* right padding */
background-color: #E9EEF6 !important;
color: #1f1f1f !important;
border: 0 !important;
border-radius: 25px !important;
outline: none !important;
box-shadow: none !important;
transition: none !important;
}
/* Reserve icon space ALWAYS (before and during focus) */
.vector-search-box .cdx-text-input--has-start-icon .cdx-text-input__input,
.vector-search-box .cdx-text-input:focus-within .cdx-text-input__input {
padding-left: 38px !important; /* 20px icon + gap; tweak if needed */
background-color: #E9EEF6 !important;
}
/* Fix your earlier typo so layout stays stable */
.cdx-search-input--has-end-button {
border: 0;
background: transparent;
display: flex; /* was 'display; flex;' */
gap: 7px;
}
/* Prevent Codex from changing look on focus */
.vector-header-end .cdx-text-input:focus-within,
#vector-sticky-header .cdx-text-input:focus-within,
.vector-header-end .cdx-text-input__input:focus,
#vector-sticky-header .cdx-text-input__input:focus {
background-color: #E9EEF6 !important;
border: 0 !important;
border-radius: 12px !important;
box-shadow: none !important;
outline: none !important;
height: 42px !important;
color: rgb(31, 31, 31) !important;
}
/* ===== 5. Heading font stack ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}