MediaWiki:Vector.css

From MB Wiki
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.
/* All CSS here will be loaded for users of the Vector skin */
/* =======================================================================
   MB WIKI - VECTOR SKIN OVERRIDES
   Forcefully applies Terraria typography to the Vector Legacy skin
   ======================================================================= */

/* 1. Force Body Font */
/* Overrides standard vector body settings */
body.skin-vector-legacy,
.mw-body,
#content,
.mw-body-content {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
}

/* 2. Force Heading Font */
/* Overrides vector headings (often serif by default) */
.skin-vector-legacy h1,
.skin-vector-legacy h2,
.skin-vector-legacy h3,
.skin-vector-legacy h4,
.skin-vector-legacy h5,
.skin-vector-legacy h6,
.firstHeading,
.mw-headline {
    font-family: Verdana, Helvetica, Arial, sans-serif !important;
    font-weight: normal !important;
}

/* 3. Force Monospace */
pre, code, .mw-code {
    font-family: monospace, monospace !important;
}

/* 4. Fix Search Box Alignment */
.vector-search-box-inner {
    border-radius: 4px;
}

/* 5. Main Page specific cleanups */
/* Hides page title on main page if body class matches */
body.page-Main_Page h1.firstHeading {
    display: none !important;
}

/* 6. Tabs (Read/Edit/View History) styling */
#p-views .vector-menu-content-list li a {
    background-image: none !important; /* Remove default gradients */
    border-radius: 4px 4px 0 0;
}
#p-views .vector-menu-content-list li.selected a {
    font-weight: bold;
    color: var(--theme-page-text-color) !important;
}