MediaWiki:Vector.css: Difference between revisions
From GersteinInfo
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* --- Make all headings sans-serif --- */ | |||
/* --- | |||
.mw-body h1, | .mw-body h1, | ||
.mw-body h2, | .mw-body h2, | ||
| Line 13: | Line 6: | ||
.mw-body h5, | .mw-body h5, | ||
.mw-body h6 { | .mw-body h6 { | ||
font-family: sans-serif !important; | font-family: sans-serif !important; /* force sans-serif */ | ||
color: black; | font-weight: normal; /* optional: Monobook style */ | ||
color: black; /* ensure headings are black */ | |||
} | |||
/* --- Boxed portlets like Monobook --- */ | |||
#mw-panel .portlet { | |||
border: 1px solid #aaa; /* Monobook-style border */ | |||
background-color: #f9f9f9; /* light gray background */ | |||
padding: 0.5em; /* inner spacing */ | |||
margin-bottom: 0.5em; /* space between boxes */ | |||
width: auto; /* keep Vector width */ | |||
} | } | ||
#mw-panel .portlet h5, | |||
#mw-panel .portlet h4 { | |||
font-weight: bold; /* Monobook header style */ | |||
margin: 0 0 0.2em 0; /* small spacing under header */ | |||
padding: 0 0.3em; /* optional inner padding */ | |||
} | |||
#mw-panel .pBody { | |||
padding: 0.3em 0.5em; /* match Monobook inner box spacing */ | |||
background: inherit; /* keep same bg as portlet */ | |||
} | |||
Latest revision as of 16:41, 18 December 2025
/* --- Make all headings sans-serif --- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
font-family: sans-serif !important; /* force sans-serif */
font-weight: normal; /* optional: Monobook style */
color: black; /* ensure headings are black */
}
/* --- Boxed portlets like Monobook --- */
#mw-panel .portlet {
border: 1px solid #aaa; /* Monobook-style border */
background-color: #f9f9f9; /* light gray background */
padding: 0.5em; /* inner spacing */
margin-bottom: 0.5em; /* space between boxes */
width: auto; /* keep Vector width */
}
#mw-panel .portlet h5,
#mw-panel .portlet h4 {
font-weight: bold; /* Monobook header style */
margin: 0 0 0.2em 0; /* small spacing under header */
padding: 0 0.3em; /* optional inner padding */
}
#mw-panel .pBody {
padding: 0.3em 0.5em; /* match Monobook inner box spacing */
background: inherit; /* keep same bg as portlet */
}