MediaWiki:Vector.css: Difference between revisions

From GersteinInfo
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Vector skin */
/* --- Make all headings sans-serif --- */
/* --- Main content only --- */
.mw-body {
    font-family: sans-serif !important;  /* Monobook-like sans-serif */
    font-size: x-small;                  /* Monobook body text size */
}
 
/* --- Headings in content --- */
.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 */
     font-weight: normal;
     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 */
}
}


h1 { font-size: 188%; }
#mw-panel .portlet h5,
h2 { font-size: 150%; }
#mw-panel .portlet h4 {
h3 { font-size: 132%; }
    font-weight: bold;             /* Monobook header style */
h4 { font-size: 116%; }
    margin: 0 0 0.2em 0;           /* small spacing under header */
h5 { font-size: 100%; }
    padding: 0 0.3em;             /* optional inner padding */
h6 { font-size: 80%; }
}
 
#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 */
}