MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ===== MAIN PAGE LAYOUT ===== */ | ||
/* hides left panel on main page */ | |||
body.page-Main_Page #mw-panel { | |||
display: none; | |||
} | |||
body.page-Main_Page #content { | |||
margin-left: 0 !important; | |||
} | |||
.mw-logo .mw-logo-icon { | |||
width: 28px !important; /* your preferred width */ | |||
height: auto !important; /* maintain proportions */ | |||
} | |||
/* overall wrapper under the banner */ | |||
#mp-columns { | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
line-height: 1.5; | |||
font-size: 0.95rem; | |||
overflow: hidden; | |||
padding: 0 1em; | |||
box-sizing: border-box; | |||
} | |||
/* left and right columns */ | |||
#mp-left-column { | |||
width: 66%; | |||
float: left; | |||
box-sizing: border-box; | |||
padding-right: 1em; | |||
} | |||
#mp-right-column { | |||
width: 34%; | |||
float: left; | |||
box-sizing: border-box; | |||
} | |||
/* mobile-ish fallback */ | |||
@media screen and (max-width: 800px) { | |||
#mp-left-column, | |||
#mp-right-column { | |||
width: 100%; | |||
float: none; | |||
padding-right: 0; | |||
} | |||
} | |||
/* ===== TOP BANNER ===== */ | |||
#mp-topbanner { | |||
background: #f8f9fa; | |||
border: 1px solid #a2a9b1; | |||
border-radius: 2px; | |||
max-width: 1200px; | |||
margin: 0 auto 1em auto; | |||
padding: 0.8em 1em; | |||
box-sizing: border-box; | |||
overflow: hidden; | |||
} | |||
#mp-welcome { | |||
float: left; | |||
} | |||
#mp-project { | |||
font-size: 1.6rem; | |||
font-weight: bold; | |||
line-height: 1.2; | |||
margin-right: 0.4em; | |||
color: #000; | |||
} | |||
#mp-tagline { | |||
font-size: 1rem; | |||
color: #54595d; | |||
font-style: italic; | |||
} | |||
#mp-sister { | |||
float: right; | |||
} | |||
/* ===== CONTENT BOXES ===== */ | |||
.mp-box { | |||
border: 1px solid #a2a9b1; | |||
background: #fff; | |||
margin: 0 0 1em 0; | |||
border-radius: 2px; | |||
} | |||
.mp-box-header { | |||
background: #f8f9fa; | |||
border-bottom: 1px solid #a2a9b1; | |||
padding: 0.4em 0.6em; | |||
font-weight: bold; | |||
font-size: 0.95rem; | |||
color: #000; | |||
} | |||
.mp-box-content { | |||
padding: 0.6em 0.9em; | |||
color: #202122; | |||
font-size: 0.9rem; | |||
} | |||
/* lists inside the boxes */ | |||
.mp-box-content ul { | |||
margin-top: 0.4em; | |||
margin-bottom: 0.4em; | |||
} | |||
/* tighten list spacing like Wikipedia does */ | |||
.mp-box-content li { | |||
margin-bottom: 0.4em; | |||
} | |||
/* little "sister projects / other areas" list style */ | |||
.mp-sister-list { | |||
list-style: none; | |||
padding-left: 0; | |||
margin-left: 0; | |||
} | |||
.mp-sister-list li { | |||
margin: 0.3em 0; | |||
padding-left: 18px; | |||
background: url("/w/resources/assets/monitor.png") no-repeat 0 2px; /* replace with your own tiny icon or remove */ | |||
background-size: 14px 14px; | |||
} | |||
/* ===== FOOTER ===== */ | |||
#mp-footer { | |||
max-width: 1200px; | |||
margin: 1em auto 2em auto; | |||
font-size: 0.8rem; | |||
color: #54595d; | |||
text-align: center; | |||
border-top: 1px solid #a2a9b1; | |||
padding-top: 0.5em; | |||
} | |||
/* ===== LITTLE POLISHES ===== */ | |||
/* Make headings inside content a bit smaller so they don't scream */ | |||
#mp-columns h2, | |||
#mp-columns h3 { | |||
font-size: 1rem; | |||
border-bottom: 1px solid #a2a9b1; | |||
margin-top: 0; | |||
margin-bottom: 0.4em; | |||
font-weight: bold; | |||
color: #000; | |||
} | |||
/* Images in Featured Article float left like Wikipedia main page */ | |||
#mp-tfa img { | |||
border: 1px solid #a2a9b1; | |||
padding: 2px; | |||
background: #fff; | |||
margin: 0 0.6em 0.4em 0; | |||
float: left; | |||
} | |||
/* Remove default Main Page title display at top if you want it hidden */ | |||
body.page-Main_Page #firstHeading { | |||
display: none; | |||
} | |||
/* Remove the subtitle ("From YourWikiName") under the heading */ | |||
body.page-Main_Page #siteSub { | |||
display: none; | |||
} | |||
/* Optional: hide the "Read" / "View source" tabs for anonymous users on main page ONLY in Vector skin. | |||
(Only visual hide. Doesn't change permissions.) | |||
*/ | |||
body.page-Main_Page #ca-view, | |||
body.page-Main_Page #ca-viewsource, | |||
body.page-Main_Page #ca-edit { | |||
/* comment these back in if you DO want to hide them | |||
display: none !important; | |||
*/ | |||
} | |||
#footer-poweredbyico { | |||
display: none; | |||
} | } | ||
Latest revision as of 18:39, 4 November 2025
/* ===== MAIN PAGE LAYOUT ===== */
/* hides left panel on main page */
body.page-Main_Page #mw-panel {
display: none;
}
body.page-Main_Page #content {
margin-left: 0 !important;
}
.mw-logo .mw-logo-icon {
width: 28px !important; /* your preferred width */
height: auto !important; /* maintain proportions */
}
/* overall wrapper under the banner */
#mp-columns {
max-width: 1200px;
margin: 0 auto;
line-height: 1.5;
font-size: 0.95rem;
overflow: hidden;
padding: 0 1em;
box-sizing: border-box;
}
/* left and right columns */
#mp-left-column {
width: 66%;
float: left;
box-sizing: border-box;
padding-right: 1em;
}
#mp-right-column {
width: 34%;
float: left;
box-sizing: border-box;
}
/* mobile-ish fallback */
@media screen and (max-width: 800px) {
#mp-left-column,
#mp-right-column {
width: 100%;
float: none;
padding-right: 0;
}
}
/* ===== TOP BANNER ===== */
#mp-topbanner {
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 2px;
max-width: 1200px;
margin: 0 auto 1em auto;
padding: 0.8em 1em;
box-sizing: border-box;
overflow: hidden;
}
#mp-welcome {
float: left;
}
#mp-project {
font-size: 1.6rem;
font-weight: bold;
line-height: 1.2;
margin-right: 0.4em;
color: #000;
}
#mp-tagline {
font-size: 1rem;
color: #54595d;
font-style: italic;
}
#mp-sister {
float: right;
}
/* ===== CONTENT BOXES ===== */
.mp-box {
border: 1px solid #a2a9b1;
background: #fff;
margin: 0 0 1em 0;
border-radius: 2px;
}
.mp-box-header {
background: #f8f9fa;
border-bottom: 1px solid #a2a9b1;
padding: 0.4em 0.6em;
font-weight: bold;
font-size: 0.95rem;
color: #000;
}
.mp-box-content {
padding: 0.6em 0.9em;
color: #202122;
font-size: 0.9rem;
}
/* lists inside the boxes */
.mp-box-content ul {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
/* tighten list spacing like Wikipedia does */
.mp-box-content li {
margin-bottom: 0.4em;
}
/* little "sister projects / other areas" list style */
.mp-sister-list {
list-style: none;
padding-left: 0;
margin-left: 0;
}
.mp-sister-list li {
margin: 0.3em 0;
padding-left: 18px;
background: url("/w/resources/assets/monitor.png") no-repeat 0 2px; /* replace with your own tiny icon or remove */
background-size: 14px 14px;
}
/* ===== FOOTER ===== */
#mp-footer {
max-width: 1200px;
margin: 1em auto 2em auto;
font-size: 0.8rem;
color: #54595d;
text-align: center;
border-top: 1px solid #a2a9b1;
padding-top: 0.5em;
}
/* ===== LITTLE POLISHES ===== */
/* Make headings inside content a bit smaller so they don't scream */
#mp-columns h2,
#mp-columns h3 {
font-size: 1rem;
border-bottom: 1px solid #a2a9b1;
margin-top: 0;
margin-bottom: 0.4em;
font-weight: bold;
color: #000;
}
/* Images in Featured Article float left like Wikipedia main page */
#mp-tfa img {
border: 1px solid #a2a9b1;
padding: 2px;
background: #fff;
margin: 0 0.6em 0.4em 0;
float: left;
}
/* Remove default Main Page title display at top if you want it hidden */
body.page-Main_Page #firstHeading {
display: none;
}
/* Remove the subtitle ("From YourWikiName") under the heading */
body.page-Main_Page #siteSub {
display: none;
}
/* Optional: hide the "Read" / "View source" tabs for anonymous users on main page ONLY in Vector skin.
(Only visual hide. Doesn't change permissions.)
*/
body.page-Main_Page #ca-view,
body.page-Main_Page #ca-viewsource,
body.page-Main_Page #ca-edit {
/* comment these back in if you DO want to hide them
display: none !important;
*/
}
#footer-poweredbyico {
display: none;
}