MediaWiki:Common.css

From apogeawiki
Revision as of 22:27, 19 July 2025 by Iamlinkalot (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.
/* ========== Dark mode base background and text color ========== */
body, #content, .mw-body, #mw-page-base, #mw-head-base, #mw-panel, #footer, #mw-head, #mw-content-text {
  background-color: #111827 !important;
  color: #ffffff !important;
}

/* ========== Links ========== */
#mw-panel a:not(.new), 
#p-personal a:not(.new), 
#mw-head a:not(.new), 
#mw-content-text a:not(.new) {
  color: #93c5fd !important;
}


#mw-content-text a:visited {
  color: #a5b4fc;
}

#mw-content-text a:hover, #mw-content-text a:focus {
  color: #60a5fa !important;
  text-decoration: underline !important;
}

/* ========== Broken links ========== */
a.new {
  color: #ef4444 !important;
}

/* ========== Tables, content boxes, infoboxes ========== */
table, td, .infobox, .navbox, .toc {
  background-color: #1f2937 !important;
  color: #ffffff !important;
  border-color: #374151 !important;

  caption {
    color: #EAB308 !important;
  }
}

.mw-collapsed {
  min-width: 100%;
}

th {
  background-color: #111827 !important;
  color: #ffffff !important;

  button {
    background-color: #111827 !important;
    color: #ffffff !important;
  }
}

/* ========== Code blocks and pre elements ========== */
pre, code {
  background-color: #374151 !important;
  color: #ffffff !important;
}

/* ========== Headings ========== */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* ========== Quotes ========== */
blockquote {
  background-color: #1f2937 !important;
}

/* ========== Input fields and search box ========== */
input, textarea, select {
  background-color: #1f2937 !important;
  color: #ffffff !important;
  border: 1px solid #374151 !important;
}

/* ========== Buttons ========== */
button, input[type="submit"], input[type="button"] {
  background-color: #374151 !important;
  color: #ffffff !important;
  border: 1px solid #4b5563 !important;
}

/* ========== Footer text ========== */
#footer {
  color: #9ca3af !important;
}

/* ========== Edit options section ========== */
.editOptions {
  background-color: #111827 !important;
  color: #ffffff !important;
}

/* ========== Editor UI ========== */
.wikiEditor-ui-toolbar {
  background-color: #111827 !important;
  color: #93c5fd !important;

  .label{
    color: #93c5fd !important;
  }

  .oo-ui-iconElement-icon {
    filter: invert(1);
  }

}

.oo-ui-toolbar-bar {
  background-color: #111827 !important;
  color: #93c5fd !important;

  .label{
    color: #93c5fd !important;
  }

  .oo-ui-iconElement-icon {
    filter: invert(1);
  }

  .oo-ui-indicatorElement-indicator {
    filter:invert(1);
  }

  .oo-ui-tool-link {
    background-color: #111827 !important;
    color: #93c5fd !important;
  }

}

/* ========== Sidebar ========== */
.vector-legacy-sidebar{
  display: flex;
  flex-direction: column;
  gap: 12px;

  #p-logo {
    margin-bottom: 0;
  }

  span.vector-menu-heading-label {
    color: #EAB308 !important;
  }

  h3.vector-menu-heading {
    text-align: center;
  }

  #p-Library{
    border: 1px solid #0a0e18;
    border-radius: 8px;
    background-color: #0a0e18;
    margin: 0 8px 0 8px;
  }

  #p-Official_Links{
    border: 1px solid #0a0e18;
    border-radius: 8px;
    background-color: #0a0e18;
    margin: 0 8px 0 8px;
  }

  #p-Community_Links{
    border: 1px solid #0a0e18;
    border-radius: 8px;
    background-color: #0a0e18;
    margin: 0 8px 0 8px;
  }

  #p-tb{
    border: 1px solid #0a0e18;
    border-radius: 8px;
    background-color: #0a0e18;
    margin: 0 8px 12px 8px;
  }

  ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
    margin: 0 !important;
  }

  li {
    color: #18202f !important; /* bullet color */
  }
}



/* ========== Top bar labels ========== */
#mw-head #left-navigation .vector-menu-content .vector-menu-content-list .mw-list-item a,
#mw-head #right-navigation .vector-menu-content .vector-menu-content-list .mw-list-item a {
    background-color: #1f2937 !important;
}

/* ========== Resize Classes ========== */
.icon-64 img {
  width: 64px !important;
  height: 64px !important;
  object-fit: scale-down;
}

.icon-64 img[width],
.icon-64 img[height] {
  width: 64px !important;
  height: 64px !important;
}

#size-64 {
width: 64px;
height: 64px;
}

#size-100 {
width: 100px;
height: 100px;
}

.centered td,
.centered th {
  text-align: center;
  vertical-align: middle;
}