MediaWiki:Vector.css: Difference between revisions
From GersteinInfo
Jump to navigationJump to search
Created page with "→All CSS here will be loaded for users of the Vector skin: →Make headings sans-serif like Monobook: .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6, .vector-body h1, .vector-body h2, .vector-body h3, .vector-body h4, .vector-body h5, .vector-body h6 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Liberation Sans", sans-serif; font-weight: 600; }" |
No edit summary |
||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Vector skin */ | /* All CSS here will be loaded for users of the Vector skin */ | ||
/* Make headings sans-serif like Monobook */ | /* Make headings sans-serif like Monobook */ | ||
/* --- Body and content --- */ | |||
body { | |||
font: x-small sans-serif; | |||
background: #F0F0F0; | |||
color: black; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
#content { | |||
background: white; | |||
color: black; | |||
border: 1px solid #aaa; | |||
line-height: 1.5em; | |||
padding: 1em; | |||
} | |||
/* --- Headings like Monobook --- */ | |||
.mw-body h1, | .mw-body h1, | ||
.mw-body h2, | .mw-body h2, | ||
| Line 6: | Line 24: | ||
.mw-body h4, | .mw-body h4, | ||
.mw-body h5, | .mw-body h5, | ||
.mw-body h6 | .mw-body h6 { | ||
. | font-family: sans-serif !important; | ||
. | color: black; | ||
. | background: none; | ||
font-weight: normal; | |||
margin: 0; | |||
padding-top: .5em; | |||
padding-bottom: .17em; | |||
border-bottom: 1px solid #aaa; | |||
} | |||
font- | |||
h1 { font-size: 188%; } | |||
h2 { font-size: 150%; } | |||
h3 { font-size: 132%; font-weight: bold; border-bottom: none; } | |||
h4 { font-size: 116%; font-weight: bold; border-bottom: none; } | |||
h5 { font-size: 100%; font-weight: bold; border-bottom: none; } | |||
h6 { font-size: 80%; font-weight: bold; border-bottom: none; } | |||
/* --- Links --- */ | |||
a { text-decoration: none; color: #002bb8; } | |||
a:visited { color: #5a3696; } | |||
a:hover { text-decoration: underline; color: #002bb8; } | |||
/* --- Tables --- */ | |||
table { font-size: 100%; color: black; background: white; border-collapse: collapse; } | |||
th, td { border: 1px solid #aaa; padding: 0.15em; } | |||
/* --- Lists --- */ | |||
ul { list-style-type: square; margin-left: 1.5em; line-height: 1.5em; } | |||
ol { list-style-type: decimal; margin-left: 3.2em; line-height: 1.5em; } | |||
/* --- Monobook-like sidebar widths --- */ | |||
#mw-panel { width: 12em; } | |||
#content { margin-left: 12em; } | |||
/* --- Misc --- */ | |||
#footer { | |||
background-color: white; | |||
border-top: 1px solid #fabd23; | |||
border-bottom: 1px solid #fabd23; | |||
text-align: center; | |||
font-size: 90%; | |||
padding: .4em 0 1.2em 0; | |||
} | } | ||
Revision as of 15:33, 18 December 2025
/* All CSS here will be loaded for users of the Vector skin */
/* Make headings sans-serif like Monobook */
/* --- Body and content --- */
body {
font: x-small sans-serif;
background: #F0F0F0;
color: black;
margin: 0;
padding: 0;
}
#content {
background: white;
color: black;
border: 1px solid #aaa;
line-height: 1.5em;
padding: 1em;
}
/* --- Headings like Monobook --- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
font-family: sans-serif !important;
color: black;
background: none;
font-weight: normal;
margin: 0;
padding-top: .5em;
padding-bottom: .17em;
border-bottom: 1px solid #aaa;
}
h1 { font-size: 188%; }
h2 { font-size: 150%; }
h3 { font-size: 132%; font-weight: bold; border-bottom: none; }
h4 { font-size: 116%; font-weight: bold; border-bottom: none; }
h5 { font-size: 100%; font-weight: bold; border-bottom: none; }
h6 { font-size: 80%; font-weight: bold; border-bottom: none; }
/* --- Links --- */
a { text-decoration: none; color: #002bb8; }
a:visited { color: #5a3696; }
a:hover { text-decoration: underline; color: #002bb8; }
/* --- Tables --- */
table { font-size: 100%; color: black; background: white; border-collapse: collapse; }
th, td { border: 1px solid #aaa; padding: 0.15em; }
/* --- Lists --- */
ul { list-style-type: square; margin-left: 1.5em; line-height: 1.5em; }
ol { list-style-type: decimal; margin-left: 3.2em; line-height: 1.5em; }
/* --- Monobook-like sidebar widths --- */
#mw-panel { width: 12em; }
#content { margin-left: 12em; }
/* --- Misc --- */
#footer {
background-color: white;
border-top: 1px solid #fabd23;
border-bottom: 1px solid #fabd23;
text-align: center;
font-size: 90%;
padding: .4em 0 1.2em 0;
}