MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* MediaWiki:Common.css */ | |||
.mw-wiki-logo { | |||
height: 80px !important; /* desired header height */ | |||
width: auto !important; /* preserve aspect ratio */ | |||
max-width: 100%; /* prevent overflow */ | |||
} | |||
/* Vector 2022: constrain header logo height, keep aspect ratio */ | /* Vector 2022: constrain header logo height, keep aspect ratio */ | ||
Revision as of 05:35, 16 March 2026
/* CSS placed here will be applied to all skins */
/* MediaWiki:Common.css */
.mw-wiki-logo {
height: 80px !important; /* desired header height */
width: auto !important; /* preserve aspect ratio */
max-width: 100%; /* prevent overflow */
}
/* Vector 2022: constrain header logo height, keep aspect ratio */
#mw-panel-logo, .mw-wiki-logo img {
max-height: 80px; /* adjust header height */
height: auto; /* keeps aspect ratio */
width: auto; /* keeps aspect ratio */
}
/* Modern wiki boxes */
.wiki-box {
border: 1px solid #d0d7de;
border-radius: 4px;
background: #ffffff;
margin: 8px 0;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
overflow: hidden;
}
.wiki-box-header {
padding: 4px 8px;
font-weight: bold;
font-size: 1.1em;
}
.wiki-box-content {
padding: 8px;
}
/* Color variants */
.wiki-blue .wiki-box-header {
background: #e7f3ff;
border-bottom: 1px solid #c6e0ff;
}
.wiki-green .wiki-box-header {
background: #e6f6ec;
border-bottom: 1px solid #b7e3c6;
}
.wiki-yellow .wiki-box-header {
background: #fff8e5;
border-bottom: 1px solid #f1e0a6;
}
.wiki-red .wiki-box-header {
background: #fdeaea;
border-bottom: 1px solid #f5c2c2;
}