MediaWiki:Vector.css

From GersteinInfo
Revision as of 16:41, 18 December 2025 by Infoadmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* --- 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 */
}