MediaWiki:Common.css: Difference between revisions

From Practices and Politics of Representation
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* ─── Flat Dark Theme (white text only) ───────────────── */
/* ─── Flat Dark Theme – Improved Readability & Pink Links ───────────────── */


/* 1) Global reset & base */
/* 1) Global reset & base */
Line 12: Line 12:


body, .mw-body, .mw-page-container {
body, .mw-body, .mw-page-container {
   background-color: #000000 !important;
   background-color: #000 !important;
   color: #ffffff !important;
   color: #fff !important;
   font-family: Arial, sans-serif !important;
   font-family: Arial, sans-serif !important;
   font-size: 15px !important;
   font-size: 15px !important;
   line-height: 1.5 !important;
   line-height: 1.6 !important;
}
}


/* 2) Hide all logos & icons */
/* 2) Ensure all headings are white and Arial */
#p-logo, .mw-wiki-logo,
h1, h2, h3, h4, h5, h6 {
#footer, #footer-info, #footer-icons,
  color: #fff !important;
.mw-footer-logo, .printfooter,
  font-family: Arial, sans-serif !important;
.ccicons, .license {
  font-weight: bold !important;
   display: none !important;
  margin-top: 1em !important;
  margin-bottom: 0.5em !important;
}
 
/* 3) Pink links everywhere */
a, a:link, a:visited {
   color: #ff66cc !important;
  text-decoration: none !important;
}
a:hover {
  color: #ff99dd !important;
  text-decoration: underline !important;
}
}


/* 3) Remove panels/boxes backgrounds & borders */
/* 4) Sidebar & panels text readable */
#mw-panel, #p-navigation, #p-tb,
#mw-panel, #p-navigation, #p-tb, #mw-head, .vector-menu-content, .vector-menu-tabs {
#mw-head, .vector-menu-content, .vector-menu-tabs,
   background: #111 !important;
.mw-portlet, .portal, .vector-menu {
   color: #fff !important;
   background: none !important;
  font-family: Arial, sans-serif !important;
   border: none !important;
}
}


/* 4) Sidebar fixed & full height (optional) */
/* 5) Sidebar fixed layout (optional) */
#mw-panel {
#mw-panel {
   position: fixed !important;
   position: fixed !important;
Line 47: Line 57:
}
}


/* 5) Headings – white, no borders */
/* 6) Tables & info boxes transparent with white text */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  background: none !important;
  border: none !important;
  padding-bottom: 4px !important;
  margin-top: 1em !important;
}
 
/* 6) Links – white, underline on hover */
a, a:link, a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}
a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}
 
/* 7) Tables & boxes transparent */
table, th, td, .infobox, .navbox, .metadata {
table, th, td, .infobox, .navbox, .metadata {
   background: none !important;
   background: transparent !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
   border: none !important;
   border: none !important;
  color: #ffffff !important;
}
}


/* 8) Forms & buttons – dark grey background, white text */
/* 7) Forms & buttons – dark grey, white Arial text */
input, textarea, select, button {
input, textarea, select, button {
   background-color: #111111 !important;
   background-color: #222 !important;
   color: #ffffff !important;
   color: #fff !important;
   border: none !important;
   border: none !important;
   font-family: Arial, sans-serif !important;
   font-family: Arial, sans-serif !important;
Line 82: Line 74:
}
}


/* 9) CodeMirror / VisualEditor area – white text on black */
/* 8) CodeMirror & textarea styling */
.CodeMirror, .mw-editsection, textarea#wpTextbox1 {
textarea#wpTextbox1,
   background: #000000 !important;
.CodeMirror, .ace_editor {
   color: #ffffff !important;
   background: #111 !important;
   color: #fff !important;
   font-family: Consolas, monospace !important;
   font-family: Consolas, monospace !important;
}
}


/* 10) Separator lines (if any) – subtle grey */
/* 9) Hide logos & footer icons */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
  display: none !important;
}
 
/* 10) Maintain subtle separators */
hr, #toc, .mw-headline {
hr, #toc, .mw-headline {
   border-color: #333333 !important;
   border-color: #333 !important;
}
}

Revision as of 20:08, 1 July 2025

/* ─── Flat Dark Theme – Improved Readability & Pink Links ───────────────── */

/* 1) Global reset & base */
* {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body, .mw-body, .mw-page-container {
  background-color: #000 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* 2) Ensure all headings are white and Arial */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
  margin-top: 1em !important;
  margin-bottom: 0.5em !important;
}

/* 3) Pink links everywhere */
a, a:link, a:visited {
  color: #ff66cc !important;
  text-decoration: none !important;
}
a:hover {
  color: #ff99dd !important;
  text-decoration: underline !important;
}

/* 4) Sidebar & panels text readable */
#mw-panel, #p-navigation, #p-tb, #mw-head, .vector-menu-content, .vector-menu-tabs {
  background: #111 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
}

/* 5) Sidebar fixed layout (optional) */
#mw-panel {
  position: fixed !important;
  top: 0; bottom: 0; left: 0;
  width: 160px;
  overflow-y: auto;
  padding-top: 20px !important;
}
.mw-body {
  margin-left: 170px !important;
}

/* 6) Tables & info boxes transparent with white text */
table, th, td, .infobox, .navbox, .metadata {
  background: transparent !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  border: none !important;
}

/* 7) Forms & buttons – dark grey, white Arial text */
input, textarea, select, button {
  background-color: #222 !important;
  color: #fff !important;
  border: none !important;
  font-family: Arial, sans-serif !important;
  padding: 6px 8px !important;
}

/* 8) CodeMirror & textarea styling */
textarea#wpTextbox1,
.CodeMirror, .ace_editor {
  background: #111 !important;
  color: #fff !important;
  font-family: Consolas, monospace !important;
}

/* 9) Hide logos & footer icons */
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
.mw-footer-logo, .printfooter,
.ccicons, .license {
  display: none !important;
}

/* 10) Maintain subtle separators */
hr, #toc, .mw-headline {
  border-color: #333 !important;
}