MediaWiki:Vector.css: Difference between revisions

From GersteinInfo
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:
/* Make headings sans-serif like Monobook */
/* Make headings sans-serif like Monobook */
/* --- Body and content --- */
/* --- Body and content --- */
body {
/* --- Base font for the site --- */
     font: x-small sans-serif;
body, .mw-body {
     background: #F0F0F0;
     font-family: sans-serif !important; /* replaces Times/serif defaults */
    color: black;
     font-size: x-small;                   /* matches Monobook body text */
    margin: 0;
    padding: 0;
}
}


#content {
/* --- Headings --- */
    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 25: Line 15:
.mw-body h5,
.mw-body h5,
.mw-body h6 {
.mw-body h6 {
     font-family: sans-serif !important;
     font-family: sans-serif !important; /* use sans-serif for all headings */
     color: black;
     color: black;                       /* ensure headings are black like Monobook */
    background: none;
     font-weight: normal;
     font-weight: normal;
    margin: 0;
    padding-top: .5em;
    padding-bottom: .17em;
    border-bottom: 1px solid #aaa;
}
}


/* Optional: slightly adjust heading sizes like Monobook */
h1 { font-size: 188%; }
h1 { font-size: 188%; }
h2 { font-size: 150%; }
h2 { font-size: 150%; }
h3 { font-size: 132%; font-weight: bold; border-bottom: none; }
h3 { font-size: 132%; }
h4 { font-size: 116%; font-weight: bold; border-bottom: none; }
h4 { font-size: 116%; }
h5 { font-size: 100%; font-weight: bold; border-bottom: none; }
h5 { font-size: 100%; }
h6 { font-size: 80%; font-weight: bold; border-bottom: none; }
h6 { font-size: 80%; }
 
/* --- 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:36, 18 December 2025

/* All CSS here will be loaded for users of the Vector skin */
/* Make headings sans-serif like Monobook */
/* --- Body and content --- */
/* --- Base font for the site --- */
body, .mw-body {
    font-family: sans-serif !important;  /* replaces Times/serif defaults */
    font-size: x-small;                   /* matches Monobook body text */
}

/* --- Headings --- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
    font-family: sans-serif !important;  /* use sans-serif for all headings */
    color: black;                        /* ensure headings are black like Monobook */
    font-weight: normal;
}

/* Optional: slightly adjust heading sizes like Monobook */
h1 { font-size: 188%; }
h2 { font-size: 150%; }
h3 { font-size: 132%; }
h4 { font-size: 116%; }
h5 { font-size: 100%; }
h6 { font-size: 80%; }