MediaWiki:Timeless.css: Difference between revisions

OMNIVERSE
No edit summary
No edit summary
Line 4: Line 4:
   ========================================================= */
   ========================================================= */
/* =================================================
/* =================================================
   Timeless Sidebar (Navigation / Wiki tools)
   Seamless TOC (Timeless)
   ================================================= */
   ================================================= */


/* Sidebar container background */
/* Remove the “card/box” look */
#mw-panel {
#toc, .toc {
   background: transparent;
   background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 18px 0 !important;
}
}


/* Each sidebar box (Navigation, Wiki tools) */
/* Title ("Contents") */
#mw-panel .mw-portlet {
#toc .toctitle, .toc .toctitle {
   background: #1a2230;
   margin: 0 0 10px 0 !important;
  border: 1px solid rgba(255,255,255,0.08);
   padding: 0 !important;
  border-radius: 14px;
   padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
}
 
#toc .toctitle h2, .toc .toctitle h2 {
/* Portlet titles (Navigation, Wiki tools) */
   font-size: 13px;
#mw-panel .mw-portlet h3 {
  color: rgba(255,255,255,0.85);
   font-size: 14px;
   font-weight: 700;
   font-weight: 700;
  letter-spacing: 0.06em;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.06em;
   color: rgba(255,255,255,0.70);
  margin: 0 0 10px 0;
   border: none !important;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
   position: relative;
}
}


/* Small accent line under titles */
/* Remove default numbering indentation weirdness */
#mw-panel .mw-portlet h3::after {
#toc ul, .toc ul {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 6px;
  background: var(--accent, #f2b233);
  border-radius: 99px;
}
 
/* List reset */
#mw-panel .mw-portlet ul {
  margin: 0;
  padding: 0;
   list-style: none;
   list-style: none;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border-left: 2px solid rgba(255,255,255,0.07);
}
}


/* List items */
/* Nested lists */
#mw-panel .mw-portlet li {
#toc ul ul, .toc ul ul {
   margin: 0;
   margin-top: 6px !important;
  padding-left: 14px !important;
}
}


/* Sidebar links */
/* TOC links */
#mw-panel .mw-portlet li a {
#toc a, .toc a {
   display: block;
   display: block;
   padding: 8px 10px;
   padding: 7px 8px;
   border-radius: 8px;
   border-radius: 8px;
   color: rgba(255,255,255,0.78);
   color: rgba(255,255,255,0.70);
   text-decoration: none;
   text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
}


/* Hover effect */
/* Hover */
#mw-panel .mw-portlet li a:hover {
#toc a:hover, .toc a:hover {
   background: rgba(255,255,255,0.06);
   background: rgba(255,255,255,0.06);
   color: #ffffff;
   color: rgba(255,255,255,0.92);
}
 
/* Current section highlight (if MW provides :target-like states, we emulate a “current” feel) */
#toc a:focus, .toc a:focus {
  outline: none;
  background: rgba(242,178,51,0.12);
  color: rgba(255,255,255,0.92);
}
}


/* Active page highlight */
/* Optional: make section numbers less loud */
#mw-panel .mw-portlet li.selected a,
#toc .tocnumber, .toc .tocnumber {
#mw-panel .mw-portlet li a:active {
   color: rgba(255,255,255,0.38);
   background: rgba(242,178,51,0.18);
   margin-right: 6px;
   color: #ffd36a;
}
}





Revision as of 02:19, 19 January 2026

/* =========================================================
   OMNIVERSE-style Dark Theme (Timeless)
   Paste into: MediaWiki:Timeless.css
   ========================================================= */
/* =================================================
   Seamless TOC (Timeless)
   ================================================= */

/* Remove the “card/box” look */
#toc, .toc {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 18px 0 !important;
}

/* Title ("Contents") */
#toc .toctitle, .toc .toctitle {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}
#toc .toctitle h2, .toc .toctitle h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  border: none !important;
}

/* Remove default numbering indentation weirdness */
#toc ul, .toc ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border-left: 2px solid rgba(255,255,255,0.07);
}

/* Nested lists */
#toc ul ul, .toc ul ul {
  margin-top: 6px !important;
  padding-left: 14px !important;
}

/* TOC links */
#toc a, .toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
}

/* Hover */
#toc a:hover, .toc a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

/* Current section highlight (if MW provides :target-like states, we emulate a “current” feel) */
#toc a:focus, .toc a:focus {
  outline: none;
  background: rgba(242,178,51,0.12);
  color: rgba(255,255,255,0.92);
}

/* Optional: make section numbers less loud */
#toc .tocnumber, .toc .tocnumber {
  color: rgba(255,255,255,0.38);
  margin-right: 6px;
}



/* ===== Branded header ===== */
#mw-header {
  background: linear-gradient(
    rgba(10,14,20,0.9),
    rgba(10,14,20,0.9)
  ),
  url("/images/wiki-header-bg.jpg") center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo spacing */
#p-logo {
  margin-right: 18px;
}

/* Content cards */
.card {
  background: #1a2230;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}
/* ---------- Theme tokens ---------- */
:root {
  --bg: #0f141c;          /* page background */
  --panel: #1a2230;       /* card background */
  --panel-2: #202a3a;     /* slightly brighter panels */
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.88);
  --muted: rgba(255,255,255,0.65);
  --accent: #f2b233;      /* gold accent */
  --accent-2: #ffd36a;    /* hover */
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
}

/* ---------- Global background / text ---------- */
html, body {
  background: var(--bg) !important;
  color: var(--text);
}

.mw-parser-output,
.mw-body-content,
#mw-content-text {
  color: var(--text);
}

/* ---------- Links (gold accent, no validator warnings) ---------- */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ---------- Main content “card” ---------- */
/* Timeless usually wraps content in #content and/or .mw-body */
#content, .mw-body, #mw-content-text {
  background: transparent;
}

/* This targets the primary content container and makes it a card.
   If one selector doesn’t apply on your install, another usually will. */
#content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

/* Improve paragraph readability */
.mw-parser-output {
  line-height: 1.65;
  font-size: 16px;
}
.mw-body-content {
  max-width: 1100px; /* wider, like your forum panels */
}

/* ---------- Headings (forum-like, with gold rule) ---------- */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3 {
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.2px;
}

.mw-parser-output h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  position: relative;
}

.mw-parser-output h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 99px;
}

/* ---------- TOC / Category boxes become cards ---------- */
#toc, .toc, .catlinks {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

/* ---------- Tables become “forum panels” ---------- */
.wikitable {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.wikitable th {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

.wikitable td {
  color: rgba(255,255,255,0.82);
}

.wikitable > * > tr > th,
.wikitable > * > tr > td {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.wikitable > * > tr:first-child > th,
.wikitable > * > tr:first-child > td {
  border-top: 0;
}

/* ---------- Code blocks ---------- */
.mw-parser-output pre,
.mw-parser-output .mw-code {
  background: #0c1118;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-x: auto;
}

.mw-parser-output code {
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 0.12em 0.35em;
}

/* ---------- Inputs / search / buttons (make them match) ---------- */
input[type="text"],
input[type="search"],
input[type="password"],
textarea,
select {
  background: #0c1118;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(242,178,51,0.65);
  box-shadow: 0 0 0 3px rgba(242,178,51,0.15);
}

/* Buttons used by some MW UI elements */
button,
.mw-ui-button,
input[type="submit"],
input[type="button"] {
  background: var(--accent);
  border: 0;
  color: #141a22;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}

button:hover,
.mw-ui-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--accent-2);
}

/* ---------- Optional: simple “notice box” classes you can use in pages ---------- */
.mw-parser-output .notice {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0;
}

.mw-parser-output .notice-title {
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}