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 – Improved Readability & Pink Links ───────────────── */
/* ─── Flat Dark Theme – Refined Layout ───────────────── */


/* 1) Global reset & base */
/* 1) Base reset */
* {
* {
   box-shadow: none !important;
   box-shadow: none !important;
  border: none !important;
   border-radius: 0 !important;
   border-radius: 0 !important;
   background: none !important;
   background: none !important;
Line 11: Line 10:
}
}


/* 2) Body & typography */
body, .mw-body, .mw-page-container {
body, .mw-body, .mw-page-container {
   background-color: #000 !important;
   background-color: #121212 !important;
   color: #fff !important;
   color: #ffffff !important;
   font-family: Arial, sans-serif !important;
   font-family: Arial, sans-serif !important;
   font-size: 15px !important;
   font-size: 15px !important;
   line-height: 1.6 !important;
   line-height: 1.6 !important;
  padding-top: 60px !important; /* space for top tabs */
}
/* 3) Top tabs bar */
.vector-menu-tabs {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #333 !important;
  z-index: 500;
}
.vector-menu-tabs ul {
  margin: 0 170px !important; /* account for sidebar */
}
.vector-menu-tabs li {
  display: inline-block !important;
}
.vector-menu-tabs li a {
  display: inline-block !important;
  padding: 10px 15px !important;
  color: #ff66cc !important; /* pink links */
  text-decoration: none !important;
}
.vector-menu-tabs li a:hover {
  background-color: #2a2a2a !important;
}
/* 4) Sidebar */
#mw-panel {
  position: fixed !important;
  top: 60px; bottom: 0; left: 0;
  width: 170px;
  background-color: #1f1f1f !important;
  border-right: 1px solid #333 !important;
  overflow-y: auto !important;
  padding: 10px !important;
  z-index: 400;
}
#mw-panel .portal {
  margin-bottom: 20px !important;
}
#mw-panel .portal h3 {
  color: #ff66cc !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid #333 !important;
  padding-bottom: 4px !important;
}
#mw-panel .portal ul {
  list-style: none !important;
  padding-left: 0 !important;
}
#mw-panel .portal ul li {
  margin: 4px 0 !important;
}
#mw-panel .portal ul li a {
  color: #ffffff !important;
  text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
  text-decoration: underline !important;
}
}


/* 2) Ensure all headings are white and Arial */
/* 5) Content area shift */
.mw-body {
  margin-left: 190px !important;
  margin-right: 20px !important;
  padding: 20px !important;
  max-width: 1000px;
}
 
/* 6) Headings */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
   color: #fff !important;
   color: #ffffff !important;
   font-family: Arial, sans-serif !important;
   border-bottom: 1px solid #333 !important;
   font-weight: bold !important;
   padding-bottom: 6px !important;
   margin-top: 1em !important;
   margin-top: 24px !important;
   margin-bottom: 0.5em !important;
   margin-bottom: 12px !important;
}
}


/* 3) Pink links everywhere */
/* 7) Links */
a, a:link, a:visited {
a, a:link, a:visited {
   color: #ff66cc !important;
   color: #ff66cc !important;
Line 38: Line 107:
}
}


/* 4) Sidebar & panels text readable */
/* 8) Search box */
#mw-panel, #p-navigation, #p-tb, #mw-head, .vector-menu-content, .vector-menu-tabs {
#p-search {
   background: #111 !important;
  margin: 20px 0 !important;
}
#searchInput {
  width: calc(100% - 50px) !important;
  padding: 6px 8px !important;
   background: #2a2a2a !important;
   color: #fff !important;
   color: #fff !important;
   font-family: Arial, sans-serif !important;
   border: 1px solid #444 !important;
}
}
 
#searchButton {
/* 5) Sidebar fixed layout (optional) */
   padding: 6px 12px !important;
#mw-panel {
   background: #333 !important;
   position: fixed !important;
   color: #fff !important;
   top: 0; bottom: 0; left: 0;
   border: 1px solid #444 !important;
   width: 160px;
  overflow-y: auto;
  padding-top: 20px !important;
}
.mw-body {
   margin-left: 170px !important;
}
}


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


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


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


/* 9) Hide logos & footer icons */
/* 12) Footer & logos hide */
#p-logo, .mw-wiki-logo,
#p-logo, .mw-wiki-logo,
#footer, #footer-info, #footer-icons,
#footer, #footer-info, #footer-icons,
Line 88: Line 155:
.ccicons, .license {
.ccicons, .license {
   display: none !important;
   display: none !important;
}
/* 10) Maintain subtle separators */
hr, #toc, .mw-headline {
  border-color: #333 !important;
}
}

Revision as of 20:19, 1 July 2025

/* ─── Flat Dark Theme – Refined Layout ───────────────── */

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

/* 2) Body & typography */
body, .mw-body, .mw-page-container {
  background-color: #121212 !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding-top: 60px !important; /* space for top tabs */
}

/* 3) Top tabs bar */
.vector-menu-tabs {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: #1f1f1f !important;
  border-bottom: 1px solid #333 !important;
  z-index: 500;
}
.vector-menu-tabs ul {
  margin: 0 170px !important; /* account for sidebar */
}
.vector-menu-tabs li {
  display: inline-block !important;
}
.vector-menu-tabs li a {
  display: inline-block !important;
  padding: 10px 15px !important;
  color: #ff66cc !important; /* pink links */
  text-decoration: none !important;
}
.vector-menu-tabs li a:hover {
  background-color: #2a2a2a !important;
}

/* 4) Sidebar */
#mw-panel {
  position: fixed !important;
  top: 60px; bottom: 0; left: 0;
  width: 170px;
  background-color: #1f1f1f !important;
  border-right: 1px solid #333 !important;
  overflow-y: auto !important;
  padding: 10px !important;
  z-index: 400;
}
#mw-panel .portal {
  margin-bottom: 20px !important;
}
#mw-panel .portal h3 {
  color: #ff66cc !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid #333 !important;
  padding-bottom: 4px !important;
}
#mw-panel .portal ul {
  list-style: none !important;
  padding-left: 0 !important;
}
#mw-panel .portal ul li {
  margin: 4px 0 !important;
}
#mw-panel .portal ul li a {
  color: #ffffff !important;
  text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
  text-decoration: underline !important;
}

/* 5) Content area shift */
.mw-body {
  margin-left: 190px !important;
  margin-right: 20px !important;
  padding: 20px !important;
  max-width: 1000px;
}

/* 6) Headings */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  border-bottom: 1px solid #333 !important;
  padding-bottom: 6px !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
}

/* 7) Links */
a, a:link, a:visited {
  color: #ff66cc !important;
  text-decoration: none !important;
}
a:hover {
  color: #ff99dd !important;
  text-decoration: underline !important;
}

/* 8) Search box */
#p-search {
  margin: 20px 0 !important;
}
#searchInput {
  width: calc(100% - 50px) !important;
  padding: 6px 8px !important;
  background: #2a2a2a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}
#searchButton {
  padding: 6px 12px !important;
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

/* 9) Tables & boxes */
table, th, td, .infobox, .navbox, .metadata {
  background: #1f1f1f !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}

/* 10) Forms and buttons */
input, textarea, select, button {
  background-color: #1f1f1f !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  padding: 6px 8px !important;
  font-family: Arial, sans-serif !important;
}

/* 11) Code editor area */
textarea#wpTextbox1,
.CodeMirror, .ace_editor {
  background: #1a1a1a !important;
  color: #fff !important;
  font-family: Consolas, monospace !important;
}

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