MediaWiki:Vector.css: Difference between revisions

From GersteinInfo
Jump to navigationJump to search
No edit summary
No edit summary
 
(6 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 */
/* --- 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 25: 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 */
    background: none;
     color: black;                       /* ensure headings are black */
     font-weight: normal;
    margin: 0;
    padding-top: .5em;
     padding-bottom: .17em;
    border-bottom: 1px solid #aaa;
}
}


h1 { font-size: 188%; }
/* --- Boxed portlets like Monobook --- */
h2 { font-size: 150%; }
#mw-panel .portlet {
h3 { font-size: 132%; font-weight: bold; border-bottom: none; }
    border: 1px solid #aaa;       /* Monobook-style border */
h4 { font-size: 116%; font-weight: bold; border-bottom: none; }
    background-color: #f9f9f9;   /* light gray background */
h5 { font-size: 100%; font-weight: bold; border-bottom: none; }
    padding: 0.5em;               /* inner spacing */
h6 { font-size: 80%; font-weight: bold; border-bottom: none; }
    margin-bottom: 0.5em;         /* space between boxes */
    width: auto;                   /* keep Vector width */
}


/* --- Links --- */
#mw-panel .portlet h5,
a { text-decoration: none; color: #002bb8; }
#mw-panel .portlet h4 {
a:visited { color: #5a3696; }
    font-weight: bold;             /* Monobook header style */
a:hover { text-decoration: underline; color: #002bb8; }
    margin: 0 0 0.2em 0;           /* small spacing under header */
 
    padding: 0 0.3em;             /* optional inner padding */
/* --- 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 --- */
#mw-panel .pBody {
#footer {
     padding: 0.3em 0.5em;         /* match Monobook inner box spacing */
     background-color: white;
     background: inherit;           /* keep same bg as portlet */
     border-top: 1px solid #fabd23;
    border-bottom: 1px solid #fabd23;
    text-align: center;
    font-size: 90%;
    padding: .4em 0 1.2em 0;
}
}

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 */
}