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
 
(7 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 --- */
/* Make headings sans-serif like Monobook */
.mw-body h1,
.mw-body h1,
.mw-body h2,
.mw-body h2,
Line 6: Line 5:
.mw-body h4,
.mw-body h4,
.mw-body h5,
.mw-body h5,
.mw-body h6,
.mw-body h6 {
.vector-body h1,
    font-family: sans-serif !important; /* force sans-serif */
.vector-body h2,
    font-weight: normal;                /* optional: Monobook style */
.vector-body h3,
    color: black;                        /* ensure headings are black */
.vector-body h4,
}
.vector-body h5,
 
.vector-body h6 {
/* --- Boxed portlets like Monobook --- */
     font-family: -apple-system, BlinkMacSystemFont,
#mw-panel .portlet {
                "Segoe UI", Roboto, Helvetica, Arial,
    border: 1px solid #aaa;      /* Monobook-style border */
                "Liberation Sans", sans-serif;
    background-color: #f9f9f9;    /* light gray background */
     font-weight: 600;
    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 */
}