MediaWiki:Vector.css: Difference between revisions

From GersteinInfo
Jump to navigation Jump to search
No edit summary
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 */
/* --- Main content only --- */
/* --- Body and content --- */
/* --- Base font for the site --- */
 
/* --- Main content font --- */
.mw-body {
.mw-body {
     font-family: sans-serif !important; /* Monobook-like sans-serif */
     font-family: sans-serif !important; /* Monobook-like sans-serif */
     font-size: x-small;                 /* Monobook body text size */
     font-size: x-small;                   /* Monobook body text size */
}
}


/* --- Headings --- */
/* --- Headings in content --- */
.mw-body h1,
.mw-body h1,
.mw-body h2,
.mw-body h2,
Line 17: Line 13:
.mw-body h5,
.mw-body h5,
.mw-body h6 {
.mw-body h6 {
     font-family: sans-serif !important; /* all headings sans-serif */
     font-family: sans-serif !important;
     color: black;
     color: black;
     font-weight: normal;
     font-weight: normal;
}
}


/* Optional: slightly scale headings like Monobook */
h1 { font-size: 188%; }
h1 { font-size: 188%; }
h2 { font-size: 150%; }
h2 { font-size: 150%; }
Line 30: Line 25:
h6 { font-size: 80%; }
h6 { font-size: 80%; }


/* --- Keep sidebar and portlets at Vector default size --- */
/* --- Vector sidebar & logo stay normal --- */
#mw-panel, #mw-panel .portlet, #mw-panel .pBody {
#mw-panel, #mw-panel .portlet, #mw-panel .pBody,
     font-size: 100%; /* default Vector font size */
#p-logo, #p-logo a {
     font-family: inherit; /* keep Vector’s inherited styling */
     font-size: 100% !important;     /* keep default Vector font size */
}
     height: auto !important;       /* prevent logo squishing */
    line-height: normal !important; /* prevent*

Revision as of 15:45, 18 December 2025

/* All CSS here will be loaded for users of the Vector skin */
/* --- 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 h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
    font-family: sans-serif !important;
    color: black;
    font-weight: normal;
}

h1 { font-size: 188%; }
h2 { font-size: 150%; }
h3 { font-size: 132%; }
h4 { font-size: 116%; }
h5 { font-size: 100%; }
h6 { font-size: 80%; }

/* --- Vector sidebar & logo stay normal --- */
#mw-panel, #mw-panel .portlet, #mw-panel .pBody,
#p-logo, #p-logo a {
    font-size: 100% !important;     /* keep default Vector font size */
    height: auto !important;        /* prevent logo squishing */
    line-height: normal !important; /* prevent*