MediaWiki:Common.css

From SWCCG Wiki
Revision as of 22:30, 20 September 2026 by Admin (talk | contribs) (layout)
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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* LOTR-wiki-like layout: white sidebar, compact tabs, no wasted gap. */

body.mediawiki {
  background: #f6f6f6 !important;
  font-size: 0.95em;
}

body.mediawiki .swccg-header,
body.mediawiki .swccg-footer,
body.mediawiki #siteNotice {
  display: none !important;
}

#mw-page-base,
#mw-head-base {
  background: #f6f6f6 !important;
  height: 2.5em !important;
  margin: 0 !important;
}

#mw-panel,
.vector-legacy-sidebar {
  background: #ffffff !important;
  top: 160px;
}

#mw-panel .vector-menu-heading,
#mw-panel .vector-menu-heading-label {
  color: #54595d;
  font-size: 0.8em;
}

#mw-panel a {
  color: #0645ad;
}

#p-logo {
  height: 155px;
  margin-bottom: 0.4em;
}
#p-logo a.mw-wiki-logo {
  background-image: url(/resources/assets/swccg-wiki-logo.png?v=5) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  width: 155px;
  height: 155px;
}

/* Compact Main Page / Discussion / View source tabs */
#left-navigation,
#right-navigation {
  margin-top: 0.15em;
}
.vector-menu-tabs,
.vector-menu-tabs-legacy {
  background: transparent !important;
  padding-top: 0 !important;
  height: auto !important;
}
.vector-menu-tabs ul {
  height: auto !important;
}
.vector-menu-tabs li {
  height: auto !important;
  margin: 0 1px 0 0 !important;
  padding: 0 !important;
  background: #f3f3f3 !important;
  font-size: 0.8em !important;
  line-height: 1.15 !important;
}
.vector-menu-tabs li a,
.vector-menu-tabs li a span {
  padding: 0.15em 0.55em !important;
  line-height: 1.15 !important;
}
#p-namespaces .vector-menu-heading,
#p-views .vector-menu-heading {
  display: none;
}

#content {
  margin-top: 0.4em;
  background: #fff;
  border: 1px solid #a7d7f9;
  padding: 0.6em 1em 1.2em;
}
#firstHeading {
  margin-top: 0.15em;
  margin-bottom: 0.25em;
  font-size: 1.6em;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.1em;
}
#siteSub {
  display: none;
}

.page-Main_Page #toc,
.page-Main_Page .toc,
.page-Main_Page .flaggedrevs_short,
.page-Main_Page #mw-fr-revision-details,
.page-Main_Page .mw-fr-revision-details,
.page-Main_Page .mw-fr-reviewNotice {
  display: none !important;
}

.page-Main_Page .mw-parser-output .wikitable {
  margin-left: auto;
  margin-right: auto;
}
.page-Main_Page .mw-parser-output .wikitable th,
.page-Main_Page .mw-parser-output .wikitable td {
  vertical-align: top;
}

.set-tile {
  display: inline-block;
  width: 150px;
  margin: 0.35em 0.5em 0.8em;
  text-align: center;
  vertical-align: top;
  font-size: 0.85em;
}
.set-tile img {
  width: 145px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ccc;
  background: #111;
}
.set-tile .set-name {
  display: block;
  margin-top: 0.25em;
}