MediaWiki:Common.css

From Harrison County Wiki
Jump to navigationJump 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.
/* ===== Ambox styles ===== /
.ambox {
  border: 1px solid #aaa;
  background-color: #f9f9f9 !important;
  padding: 10px 15px;
  margin: 1em 0;
  border-left: 6px solid #36c;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  font-size: 90%;
  line-height: 1.4em;
  clear: both;
  display: table;
  width: 100%;
  color: black !important;
}

.ambox-notice {
  border-left-color: #36c;
}

.ambox-warning {
  border-left-color: #f28500;
  background-color: #fff8e5 !important;
}

.ambox-serious {
  border-left-color: #d33;
  background-color: #ffeaea !important;
}

.ambox-content {
  border-left-color: #6b4;
}

.ambox-delete {
  border-left-color: #b32424;
}

.ambox-move {
  border-left-color: #9932cc;
}

.ambox-protect {
  border-left-color: #00a;
}

.ambox-style {
  border-left-color: #f0c000;
}

.ambox-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  background-color: transparent !important;
  color: inherit !important;
}

.ambox-image {
  width: 40px;
  vertical-align: middle;
  padding-right: 12px;
  text-align: center;
  background-color: transparent !important;
  color: inherit !important;
}

.ambox-text {
  vertical-align: middle;
  word-wrap: break-word;
  font-family: sans-serif, Arial, Helvetica;
  background-color: transparent !important;
  color: black !important;
}

/ Optional: Reset tables and cells inside ambox if your skin uses dark mode */
.ambox-table td {
  background-color: transparent !important;
  color: inherit !important;
}

.infobox-settlement {
  float: right;
  margin-left: 1em;
  width: 22em;
  font-size: 90%;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  color: black;
}


.infobox-settlement .infobox-header {
  text-align: center;
  font-size: 125%;
  background: #dcdcdc;
  color: black;
}


@media (prefers-color-scheme: dark) {
  .infobox-settlement {
    background: #202122;
    color: white;
    border-color: #444;
  }

  .infobox-settlement .infobox-header {
    background: #202122;
    color: white;
  }
}