MediaWiki:Common.css: Difference between revisions

From apogeawiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(64 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* ========== Dark mode base background and text color ========== */
/* Global Reset & Base */
body, #content, .mw-body, #mw-page-base, #mw-head-base, #mw-panel, #footer, #mw-head, #mw-content-text {
* {
   background-color: #111827 !important;
   margin: 0;
   color: #ffffff !important;
   padding: 0;
  box-sizing: border-box;
}
}


body {
/* ========== Links ========== */
  background-color: #0e0e0e;
#mw-panel a:not(.new),
  color: #e0e0e0;
#p-personal a:not(.new),  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
#mw-head a:not(.new),
  line-height: 1.6;
#mw-content-text a:not(.new) {
  font-size: 16px;
   color: #93c5fd !important;
   padding: 2rem;
}
}


/* Headings */
 
h1, h2, h3, h4, h5, h6 {
#mw-content-text a:visited {
   color: #ffffff;
   color: #a5b4fc;
  margin-bottom: 1rem;
  font-weight: 600;
}
}


h1 {
#mw-content-text a:hover, #mw-content-text a:focus {
  font-size: 2.5rem;
   color: #60a5fa !important;
   border-bottom: 2px solid #444;
   text-decoration: underline !important;
   padding-bottom: 0.3rem;
}
}


h2 {
/* ========== Broken links ========== */
   font-size: 2rem;
a.new {
  border-bottom: 1px solid #333;
   color: #ef4444 !important;
  padding-bottom: 0.2rem;
}
}


h3 {
/* ========== Tables, content boxes, infoboxes ========== */
   font-size: 1.6rem;
table, td, .infobox, .navbox, .toc {
   background-color: #1f2937 !important;
  color: #ffffff !important;
  border-color: #374151 !important;
 
  caption {
    color: #EAB308 !important;
  }
}
}


/* Links */
.mw-collapsed {
a {
   min-width: 100%;
   color: #4de0b0; /* Bright cyan-blue */
  text-decoration: none;
  transition: color 0.3s ease;
}
}


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


a:hover {
  button {
  color: #7fffd4;
    background-color: #111827 !important;
  text-decoration: underline;
    color: #ffffff !important;
  }
}
}


/* Paragraphs */
/* ========== Code blocks and pre elements ========== */
p {
pre, code {
   margin-bottom: 1.2rem;
   background-color: #374151 !important;
  color: #ffffff !important;
}
}


/* Lists */
/* ========== Headings ========== */
ul, ol {
h1, h2, h3, h4, h5, h6 {
   margin-left: 2rem;
   color: #ffffff !important;
  margin-bottom: 1rem;
}
}


/* Code blocks */
/* ========== Quotes ========== */
code, pre {
blockquote {
   background-color: #1e1e1e;
   background-color: #1f2937 !important;
  color: #dcdcdc;
  font-family: 'Courier New', monospace;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
}


pre {
/* ========== Input fields and search box ========== */
   padding: 1rem;
input, textarea, select {
   overflow-x: auto;
   background-color: #1f2937 !important;
   margin-bottom: 1rem;
   color: #ffffff !important;
   border: 1px solid #374151 !important;
}
}


/* Tables */
/* ========== Buttons ========== */
table {
button, input[type="submit"], input[type="button"] {
   width: 100%;
   color: #ffffff !important;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
}


th, td {
/* ========== Footer text ========== */
   border: 1px solid #333;
#footer {
  padding: 0.8rem;
   color: #9ca3af !important;
  text-align: left;
}
}


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


td {
/* ========== Editor UI ========== */
   background-color: #161616;
.wikiEditor-ui-toolbar {
   background-color: #111827 !important;
  color: #93c5fd !important;
 
  .label{
    color: #93c5fd !important;
  }
 
  .oo-ui-iconElement-icon {
    filter: invert(1);
  }
 
}
}


/* Blockquotes */
.oo-ui-toolbar-bar {
blockquote {
   background-color: #111827 !important;
   border-left: 4px solid #444;
   color: #93c5fd !important;
   padding-left: 1rem;
 
   color: #aaa;
   .label{
   font-style: italic;
    color: #93c5fd !important;
   margin: 1rem 0;
   }
 
  .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;
  }
 
}
}


/* Horizontal rule */
/* ========== Sidebar ========== */
hr {
.vector-legacy-sidebar{
   border: none;
  display: flex;
   border-top: 1px solid #333;
  flex-direction: column;
   margin: 2rem 0;
  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 */
  }
}
}


/* Images */
 
img {
 
  max-width: 100%;
/* ========== Top bar labels ========== */
  display: block;
#mw-head #left-navigation .vector-menu-content .vector-menu-content-list .mw-list-item a,
  margin: 1rem 0;
#mw-head #right-navigation .vector-menu-content .vector-menu-content-list .mw-list-item a {
  border-radius: 8px;
    background-color: #1f2937 !important;
}
}


/* Navigation (Optional) */
/* ========== Resize Classes ========== */
nav {
.icon-64 img {
   background-color: #111;
   width: 64px !important;
   padding: 1rem 2rem;
   height: 64px !important;
   margin-bottom: 2rem;
   object-fit: scale-down;
  border-radius: 10px;
}
}


nav a {
.icon-64 img[width],
   margin-right: 1.5rem;
.icon-64 img[height] {
   font-weight: 500;
   width: 64px !important;
   height: 64px !important;
}
}


/* Footer (Optional) */
#size-64 {
footer {
width: 64px;
  margin-top: 4rem;
height: 64px;
  padding-top: 2rem;
  border-top: 1px solid #222;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}
}
/* Fix unreadable link colors across MediaWiki skins (esp. Vector) */
 
a,
#size-100 {
.mw-body a,
width: 100px;
#bodyContent a {
height: 100px;
  color: #66ccff !important; /* Bright readable blue */
  text-decoration: none;
}
}


a:hover,
.centered td,
.mw-body a:hover,
.centered th {
#bodyContent a:hover {
   text-align: center;
   color: #99e0ff !important; /* Lighter on hover */
   vertical-align: middle;
   text-decoration: underline;
}
}


/* Visited links */
/* ========== Specific Targets ========== */
a:visited {
.mw-rcfilters-ui-filterTagMultiselectWidget-wrapper {
   color: #a0a0ff !important;
   background-color: #111827 !important;
}
}
/* === Global Link Styling Override === */
 
a,
.mw-changeslist-legend {
a:visited,
   background-color: #111827 !important;
#mw-panel a,
#mw-panel a:visited,
#p-personal a,
#p-personal a:visited,
#mw-head a,
#mw-head a:visited,
.vector-menu-content a,
.vector-menu-content a:visited,
#content a,
#content a:visited {
   color: #66ccff !important;
  text-decoration: none !important;
}
}


a:hover,
.oo-ui-widget {
#mw-panel a:hover,
   background-color: #111827 !important;
#p-personal a:hover,
#mw-head a:hover,
.vector-menu-content a:hover,
#content a:hover {
   color: #99e0ff !important;
  text-decoration: underline !important;
}
}

Latest revision as of 16:37, 20 July 2025

/* ========== 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"] {
  color: #ffffff !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;
}

/* ========== Specific Targets ========== */
.mw-rcfilters-ui-filterTagMultiselectWidget-wrapper {
  background-color: #111827 !important;
}

.mw-changeslist-legend {
  background-color: #111827 !important;
}

.oo-ui-widget {
  background-color: #111827 !important;
}