MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; }" |
No edit summary |
||
| Line 2: | Line 2: | ||
body { | body { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; | ||
} | |||
.mw-logo { | |||
display: flex !important; | |||
flex-direction: column !important; | |||
align-items: center !important; /* Centers the logo above the text */ | |||
height: auto !important; | |||
padding: 10px 0; | |||
} | |||
.mw-logo-icon { | |||
width: 120px !important; /* Adjust size as needed */ | |||
height: 120px !important; | |||
max-width: none !important; | |||
max-height: none !important; | |||
margin-bottom: 8px !important; /* Gap between logo and title */ | |||
} | |||
.mw-logo-wordmark { | |||
display: block !important; /* Bring it back, but as a block */ | |||
text-align: center !important; | |||
height: auto !important; | |||
width: auto !important; | |||
} | |||
.mw-header { | |||
height: auto !important; | |||
min-height: 160px !important; | |||
} | |||
/* 5. Fix the 'Sticky Header' (when you scroll down) */ | |||
/* We usually want it back to normal when scrolling so it doesn't eat the screen */ | |||
.vector-sticky-header .mw-logo { | |||
flex-direction: row !important; | |||
padding: 0 !important; | |||
} | |||
.vector-sticky-header .mw-logo-icon { | |||
width: 35px !important; | |||
height: 35px !important; | |||
margin-bottom: 0 !important; | |||
} | } | ||
Revision as of 22:04, 16 April 2026
/* CSS placed here will be applied to all skins */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
.mw-logo {
display: flex !important;
flex-direction: column !important;
align-items: center !important; /* Centers the logo above the text */
height: auto !important;
padding: 10px 0;
}
.mw-logo-icon {
width: 120px !important; /* Adjust size as needed */
height: 120px !important;
max-width: none !important;
max-height: none !important;
margin-bottom: 8px !important; /* Gap between logo and title */
}
.mw-logo-wordmark {
display: block !important; /* Bring it back, but as a block */
text-align: center !important;
height: auto !important;
width: auto !important;
}
.mw-header {
height: auto !important;
min-height: 160px !important;
}
/* 5. Fix the 'Sticky Header' (when you scroll down) */
/* We usually want it back to normal when scrolling so it doesn't eat the screen */
.vector-sticky-header .mw-logo {
flex-direction: row !important;
padding: 0 !important;
}
.vector-sticky-header .mw-logo-icon {
width: 35px !important;
height: 35px !important;
margin-bottom: 0 !important;
}