MediaWiki:Common.css

From WikiVault
Revision as of 19:58, 29 October 2025 by Wikinest (talk | contribs)
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.
/* CSS placed here will be applied to all skins */
/* ==== WIKINEST INFOBOX MODERN STYLE ==== */
.infobox {
  width: 280px;
  float: right;
  clear: right;
  margin: 0 0 1em 1em;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4em;
  color: #202124;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Title / Header */
.infobox th[scope="row"] {
  background: #f9f9f9;
  color: #202124;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  border-top: 1px solid #e0e0e0;
  width: 40%;
  vertical-align: top;
}

/* Value cells */
.infobox td {
  padding: 6px 8px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  color: #3c4043;
  vertical-align: top;
}

/* Top title / caption area */
.infobox-caption {
  font-size: 14px;
  font-weight: 700;
  color: #0E75C5;
  padding: 8px;
  text-align: left;
  background-color: #f1f3f4;
  border-bottom: 1px solid #e0e0e0;
}

/* Image styling */
.infobox img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* Optional hover effect */
.infobox td a {
  color: #0E75C5;
  text-decoration: none;
}
.infobox td a:hover {
  text-decoration: underline;
}

/* Rounded bottom corners */
.infobox tr:last-child td,
.infobox tr:last-child th {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
wiki/MediaWiki:Common.css