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 – Complete Rewrite ───────────────── */
/* ─── Flat Dark Theme with Action Tabs & Fixed Sidebar ───────────────── */


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


/* 2) Base body & typography */
/* 2) Base typography & body */
body, .mw-body, .mw-page-container {
body, .mw-body, .mw-page-container {
   background-color: #000 !important;
   background: #000 !important;
   color: #fff !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.6 !important;
   line-height: 1.6 !important;
  /* reserve space for sidebar and top tabs */
  padding-left: 200px !important;
  padding-top: 40px !important;
}
}


/* 3) Top tab bar */
/* 3) Page action tabs (Read/Edit/View source/History) */
.vector-menu-tabs {
#p-views {
   position: fixed;
   position: fixed !important;
   top: 0; left: 0; right: 0;
   top: 0; left: 200px; right: 0;
   background-color: #111 !important;
   background: #111 !important;
   border-bottom: 1px solid #222 !important;
   border-bottom: 1px solid #333 !important;
   z-index: 1000;
   z-index: 800 !important;
}
}
.vector-menu-tabs ul {
#p-views ul {
   margin: 0 180px !important; /* reserve space for sidebar */
  display: flex !important;
  list-style: none !important;
   margin: 0 !important;
  padding: 0 10px !important;
}
}
.vector-menu-tabs li {
#p-views li {
   display: inline-block !important;
   margin-right: 8px !important;
}
}
.vector-menu-tabs li a {
#p-views li a {
  display: block !important;
   padding: 10px 12px !important;
   padding: 10px 12px !important;
   color: #ff66cc !important;
   color: #ff66cc !important;
   text-decoration: none !important;
   text-decoration: none !important;
  background: none !important;
}
}
.vector-menu-tabs li a:hover {
#p-views li a:hover {
   background-color: #222 !important;
   background: #222 !important;
}
}


/* 4) Sidebar */
/* 4) Fixed sidebar */
#mw-panel {
#mw-panel {
   position: fixed !important;
   position: fixed !important;
   top: 40px; bottom: 0; left: 0;
   top: 40px; bottom: 0; left: 0;
   width: 180px;
   width: 200px !important;
   background-color: #111 !important;
   background: #111 !important;
   overflow-y: auto !important;
   overflow-y: auto !important;
   padding: 10px !important;
   padding: 10px !important;
   z-index: 900;
   z-index: 700 !important;
}
}
/* Push content right of sidebar */
.mw-body {
.mw-body {
   margin-left: 190px !important;
   margin-left: 200px !important;
}
}
/* 5) Sidebar headings & links */
#mw-panel .portal h3 {
#mw-panel .portal h3 {
   color: #ff66cc !important;
   color: #ff66cc !important;
  font-size: 14px !important;
   margin-bottom: 8px !important;
   margin-bottom: 8px !important;
  font-weight: 600 !important;
   border-bottom: 1px solid #333 !important;
  font-size: 14px !important;
   border-bottom: 1px solid #222 !important;
   padding-bottom: 4px !important;
   padding-bottom: 4px !important;
}
}
Line 71: Line 79:
#mw-panel .portal ul li a {
#mw-panel .portal ul li a {
   display: block !important;
   display: block !important;
  color: #fff !important;
   padding: 4px 0 !important;
   padding: 4px 0 !important;
  color: #fff !important;
   text-decoration: none !important;
   text-decoration: none !important;
}
}
Line 79: Line 87:
}
}


/* 5) Main content area */
/* 6) Main content area */
#content, #bodyContent, .mw-page-container {
#content, #bodyContent {
   background: transparent !important;
   background: transparent !important;
   border: none !important;
   border: none !important;
   padding: 60px 20px 20px 20px !important; /* top for tabs */
   padding: 60px 20px 20px 20px !important; /* top padding = tabs height + small gap */
}
}


/* 6) Headings without borders */
/* 7) Headings without underlines */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
   color: #fff !important;
   color: #fff !important;
   background: none !important;
   background: none !important;
   border-bottom: none !important;
   border: none !important;
   margin: 1em 0 0.5em 0 !important;
   margin: 1em 0 0.5em 0 !important;
   padding: 0 !important;
   padding: 0 !important;
}
}


/* 7) Links – pink & underlines on hover */
/* 8) Pink links */
a, a:link, a:visited {
a, a:link, a:visited {
   color: #ff66cc !important;
   color: #ff66cc !important;
Line 101: Line 109:
}
}
a:hover {
a:hover {
  color: #ff99dd !important;
   text-decoration: underline !important;
   text-decoration: underline !important;
}
}


/* 8) Tables, infoboxes & navboxes transparent */
/* 9) Tables & infoboxes transparent */
table, th, td, .infobox, .navbox, .wikitable {
table, th, td, .infobox, .navbox, .wikitable {
   background: transparent !important;
   background: transparent !important;
Line 112: Line 119:
}
}


/* 9) Forms & buttons */
/* 10) Forms & buttons */
input, textarea, select, button {
input, textarea, select, button {
   background-color: #111 !important;
   background: #111 !important;
   color: #fff !important;
   color: #fff !important;
   border: 1px solid #222 !important;
   border: 1px solid #222 !important;
Line 121: Line 128:
}
}


/* 10) Search box styling */
/* 11) Editor textarea & CodeMirror */
#p-search { margin: 10px 0 !important; }
#searchInput {
  width: calc(100% - 60px) !important;
  background: #222 !important;
  color: #fff !important;
  padding: 6px 8px !important;
  border: 1px solid #222 !important;
}
#searchButton {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #222 !important;
  padding: 6px 12px !important;
}
 
/* 11) Code editor & textarea */
textarea#wpTextbox1, .CodeMirror, .ace_editor {
textarea#wpTextbox1, .CodeMirror, .ace_editor {
   background: #111 !important;
   background: #111 !important;

Revision as of 20:32, 1 July 2025

/* ─── Flat Dark Theme with Action Tabs & Fixed Sidebar ───────────────── */

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

/* 2) Base typography & body */
body, .mw-body, .mw-page-container {
  background: #000 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  /* reserve space for sidebar and top tabs */
  padding-left: 200px !important;
  padding-top: 40px !important;
}

/* 3) Page action tabs (Read/Edit/View source/History) */
#p-views {
  position: fixed !important;
  top: 0; left: 200px; right: 0;
  background: #111 !important;
  border-bottom: 1px solid #333 !important;
  z-index: 800 !important;
}
#p-views ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
}
#p-views li {
  margin-right: 8px !important;
}
#p-views li a {
  display: block !important;
  padding: 10px 12px !important;
  color: #ff66cc !important;
  text-decoration: none !important;
}
#p-views li a:hover {
  background: #222 !important;
}

/* 4) Fixed sidebar */
#mw-panel {
  position: fixed !important;
  top: 40px; bottom: 0; left: 0;
  width: 200px !important;
  background: #111 !important;
  overflow-y: auto !important;
  padding: 10px !important;
  z-index: 700 !important;
}
/* Push content right of sidebar */
.mw-body {
  margin-left: 200px !important;
}

/* 5) Sidebar headings & links */
#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 a {
  display: block !important;
  color: #fff !important;
  padding: 4px 0 !important;
  text-decoration: none !important;
}
#mw-panel .portal ul li a:hover {
  text-decoration: underline !important;
}

/* 6) Main content area */
#content, #bodyContent {
  background: transparent !important;
  border: none !important;
  padding: 60px 20px 20px 20px !important; /* top padding = tabs height + small gap */
}

/* 7) Headings without underlines */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  background: none !important;
  border: none !important;
  margin: 1em 0 0.5em 0 !important;
  padding: 0 !important;
}

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

/* 9) Tables & infoboxes transparent */
table, th, td, .infobox, .navbox, .wikitable {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}

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

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

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