MediaWiki:Common.css: Difference between revisions

From Exuvia Wiki
No edit summary
No edit summary
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================
/* ============================================================
   Timeless Dark Theme
   TIMELESS DARK MODE
   ========================= */
   ============================================================ */


html {
@import url(
     background: #111 !important;
    "https://www.mediawiki.org/wiki/Skin:Timeless-DarkCSS/timeless-dark.css?action=raw&ctype=text/css"
);
 
 
/* ============================================================
  COLOR VARIABLES
  ============================================================ */
 
:root {
     --background: #111;
    --content: #181818;
    --panel: #202020;
    --input: #222;
    --border: #444;
 
    --text: #ddd;
    --heading: #eee;
    --muted-text: #aaa;
 
    --link: #75aadb;
    --visited-link: #a98bd4;
}
}


/* ============================================================
  PAGE BACKGROUND
  ============================================================ */
html,
body {
body {
     background: #111 !important;
     background: var(--background) !important;
     color: #ddd !important;
    color: var(--text) !important;
}
 
 
/* ============================================================
  MAIN CONTENT
  ============================================================ */
 
#mw-content-container {
    background: var(--background) !important;
    background-image: none !important;
}
 
#mw-content {
    background: var(--content) !important;
    color: var(--text) !important;
}
 
 
/* ============================================================
  HEADER
  ============================================================ */
 
#mw-header-container {
    background: var(--content) !important;
}
 
 
/* ============================================================
  SIDEBARS
  ============================================================ */
 
#mw-site-navigation,
#mw-related-navigation {
    background: var(--content) !important;
}
 
#mw-site-navigation .portal,
#mw-related-navigation .portal {
    background: var(--content) !important;
     color: var(--text) !important;
}
 
#mw-site-navigation .portal h3,
#mw-related-navigation .portal h3 {
    background: var(--input) !important;
    color: var(--heading) !important;
}
 
#mw-site-navigation ul,
#mw-site-navigation li,
#mw-related-navigation ul,
#mw-related-navigation li {
    background: transparent !important;
}
}


/* Main content */
/* ============================================================
#mw-content,
  LINKS
#mw-content-container,
  ============================================================ */
#mw-content-block,
 
#mw-page-base,
a {
#mw-head-base {
     color: var(--link) !important;
     background: #111 !important;
}
}


/* Article */
a:visited {
.mw-body {
     color: var(--visited-link) !important;
    background: #181818 !important;
     color: #ddd !important;
}
}


/* Headings */
 
/* ============================================================
  HEADINGS
  ============================================================ */
 
h1,
h1,
h2,
h2,
Line 34: Line 114:
h5,
h5,
h6 {
h6 {
     color: #eee !important;
     color: var(--heading) !important;
    border-color: var(--border) !important;
}
}


/* Links */
 
a {
/* ============================================================
     color: #6fa8dc !important;
  SEARCH BAR
  ============================================================ */
 
#simpleSearch {
     background: var(--input) !important;
    border-color: var(--border) !important;
}
}


a:visited {
#searchInput {
     color: #9b8dcc !important;
    background: transparent !important;
     color: var(--heading) !important;
}
}


a:hover {
 
     color: #9fc9f5 !important;
/* ============================================================
  SEARCH BUTTON
  ============================================================ */
 
.mw-searchButton {
     display: none !important;
}
}


/* Navigation/sidebar */
 
#mw-site-navigation,
/* ============================================================
#mw-related-navigation,
  HIDE TIMELESS HEADER SEARCH BUTTON
.sidebar-inner {
  ============================================================ */
 
#p-search button,
#p-search .mw-ui-button,
#p-search input[type="submit"] {
    display: none !important;
}
 
 
/* ============================================================
  SEARCH PAGE TABS
  ============================================================ */
 
.mw-search-profile-tabs {
     background: #181818 !important;
     background: #181818 !important;
    border-color: #444 !important;
}
.mw-search-profile-tabs li {
    background: #202020 !important;
    border-color: #444 !important;
}
.mw-search-profile-tabs a {
    background: #202020 !important;
     color: #ddd !important;
     color: #ddd !important;
}
}


/* Sidebar links */
.mw-search-profile-tabs .selected,
#mw-site-navigation a,
.mw-search-profile-tabs .selected a {
#mw-related-navigation a {
    background: #181818 !important;
     color: #ccc !important;
    color: #fff !important;
}
 
.mw-search-profile-tabs a:hover {
    background: #292929 !important;
    color: #fff !important;
}
 
 
/* ============================================================
  TABLES
  ============================================================ */
 
.wikitable,
.mw-datatable,
.mw-metadata {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
 
.wikitable th,
.mw-datatable th {
    background: #292929 !important;
    color: var(--heading) !important;
}
 
.wikitable td,
.mw-datatable td {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
 
 
/* ============================================================
  INFOBOXES
  ============================================================ */
 
.infobox {
    background: var(--panel) !important;
     color: var(--text) !important;
}
}


/* Search */
 
#simpleSearch,
/* ============================================================
#searchInput {
  CODE BLOCKS
     background: #222 !important;
  ============================================================ */
     color: #eee !important;
 
     border-color: #444 !important;
pre,
code,
.mw-code {
     background: var(--panel) !important;
     color: var(--text) !important;
     border-color: var(--border) !important;
}
}


/* Inputs */
 
/* ============================================================
  FORM INPUTS
  ============================================================ */
 
input,
input,
textarea,
textarea,
select {
select {
     background: #222 !important;
     background: var(--input) !important;
     color: #eee !important;
     color: var(--heading) !important;
     border-color: #555 !important;
     border-color: #555 !important;
}
}


/* Buttons */
 
button,
/* ============================================================
.oo-ui-buttonElement-button,
  TABLE OF CONTENTS
.oo-ui-inputWidget-input {
  ============================================================ */
     background: #292929 !important;
 
     color: #eee !important;
.toc,
     border-color: #555 !important;
.toccolours {
     background: var(--panel) !important;
     color: var(--text) !important;
     border-color: var(--border) !important;
}
}


/* Tables */
.toc a {
table.wikitable {
     color: var(--link) !important;
    background: #202020 !important;
     color: #ddd !important;
    border-color: #555 !important;
}
}


table.wikitable th {
.mw-body .toctitle {
     background: #292929 !important;
     color: var(--heading) !important;
     color: #eee !important;
     border-color: var(--border) !important;
}
}


table.wikitable td {
 
    background: #202020 !important;
/* ============================================================
     color: #ddd !important;
  WIKI LOGO
  ============================================================ */
 
#p-logo-text {
     display: none !important;
}
}


/* Code / preformatted text */
#p-logo {
pre,
     background: transparent !important;
.mw-code,
.mw-highlight {
     background: #202020 !important;
    color: #ddd !important;
    border-color: #444 !important;
}
}


/* Infoboxes */
 
.infobox {
/* ============================================================
     background: #202020 !important;
  FOOTER
     color: #ddd !important;
  ============================================================ */
 
.mw-footer-container,
.mw-footer {
     background: var(--background) !important;
     color: var(--muted-text) !important;
}
}


/* Category boxes / miscellaneous panels */
 
.mw-body .mw-parser-output {
/* ============================================================
     color: #ddd !important;
  DEFAULT FONT SIZE
  ============================================================ */
 
body {
     font-size: 16px;
}
}


/* Footer */
 
#footer {
/* ============================================================
     background: #111 !important;
  DROPDOWN LAYER 1 TITLES
     color: #aaa !important;
  ============================================================ */
 
/*
* Examples:
*
* Locations
* Religions
* People
* World Building
*
* These are the main dropdown headings.
*/
 
li:has(> .exuvia-dropdown-level-1) > a {
     font-weight: bold !important;
    font-size: 16px !important;
     color: #fff !important;
}
}


#footer a {
 
     color: #6fa8dc !important;
/* ============================================================
  DROPDOWN LAYER 2 TITLES
  ============================================================ */
 
/*
* Examples:
*
* Continents
* Kingdoms
* Towns
*
* These are the second-level dropdown headings.
*/
 
li:has(> .exuvia-dropdown-level-2) > a {
    font-size: 16px !important;
    font-weight: normal !important;
     color: #fff !important;
}
}


/* Timeless UI containers */


/* Top/header area */
/* ============================================================
#mw-header-container,
  DROPDOWN ARROWS
#mw-header,
  ============================================================ */
#mw-site-navigation,
 
#mw-related-navigation,
.exuvia-dropdown-arrow {
#mw-sidebar {
    margin-left: 4px;
    background: #181818 !important;
    font-size: 0.8em;
}
}


/* Header/search area */
 
#p-search,
/* ============================================================
#p-personal,
  DROPDOWN MENUS
#p-cactions,
  ============================================================ */
#mw-page-header-links {
 
     background: #181818 !important;
.exuvia-dropdown-menu {
    margin: 0 !important;
    padding: 0 !important;
     background: var(--panel) !important;
}
}


/* Sidebar navigation boxes */
 
#mw-site-navigation .sidebar-chunk,
/* ============================================================
#mw-related-navigation .sidebar-chunk,
  DROPDOWN MENU ITEMS
.sidebar-chunk {
  ============================================================ */
     background: #181818 !important;
 
     border-color: #333 !important;
.exuvia-dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
     padding: 0 !important;
     background: transparent !important;
}
}


/* Sidebar headings */
 
.sidebar-chunk h3,
/* ============================================================
.sidebar-chunk .sidebar-heading {
  DROPDOWN LINKS
     background: #222 !important;
  ============================================================ */
     color: #ddd !important;
 
.exuvia-dropdown-menu a {
    display: block !important;
    padding: 8px 12px !important;
     background: transparent !important;
     color: var(--link) !important;
}
}


/* Individual sidebar links/items */
 
.sidebar-chunk li,
/* ============================================================
.sidebar-chunk ul {
  DROPDOWN HOVER
     background: transparent !important;
  ============================================================ */
 
.exuvia-dropdown-menu a:hover {
     background: var(--input) !important;
}
}


/* Top navigation links */
 
#mw-header a,
/* ============================================================
#mw-site-navigation a,
  LAYER 2 INDENTATION
#mw-related-navigation a {
  ============================================================ */
     background: transparent !important;
 
/*
* Gives second-level dropdowns a visual indentation from
* their Layer 1 parent.
*/
 
.exuvia-dropdown-level-2 {
     padding-left: 10px !important;
}
}


/* Search box and surrounding container */
 
#searchform,
/* ============================================================
#simpleSearch {
  LAYER 2 PAGE LINKS
     background: #222 !important;
  ============================================================ */
    border-color: #444 !important;
 
/*
* Normal pages underneath Layer 2 headings remain smaller
* than the Layer 2 heading itself.
*/
 
.exuvia-dropdown-level-2 li a {
     font-size: 16px !important;
}
}


/* Personal tools at top right */
 
#p-personal ul,
/*
#p-personal li {
* Re-apply the Layer 2 heading formatting after the
     background: transparent !important;
* normal-link rule above.
*/
 
li:has(> .exuvia-dropdown-level-2) > a {
    font-size: 16px !important;
     color: #fff !important;
}
}


/* Generic Timeless portlets */
/* ============================================================
.portal,
  GLOBAL NON-SERIF FONT
.portal .body {
  ============================================================ */
     background: #181818 !important;
 
    color: #ddd !important;
* {
     font-family: Arial, Helvetica, sans-serif !important;
}
}
/* ============================================================
  BODY TEXT SIZE
  ============================================================ */


/* Kill remaining white backgrounds in Timeless UI */
.mw-body-content {
#mw-content-container *,
     font-size: 17px !important;
#mw-header-container *,
#mw-site-navigation *,
#mw-related-navigation * {
     border-color: #333;
}
}

Latest revision as of 00:47, 27 August 2026

/* ============================================================
   TIMELESS DARK MODE
   ============================================================ */

@import url(
    "https://www.mediawiki.org/wiki/Skin:Timeless-DarkCSS/timeless-dark.css?action=raw&ctype=text/css"
);


/* ============================================================
   COLOR VARIABLES
   ============================================================ */

:root {
    --background: #111;
    --content: #181818;
    --panel: #202020;
    --input: #222;
    --border: #444;

    --text: #ddd;
    --heading: #eee;
    --muted-text: #aaa;

    --link: #75aadb;
    --visited-link: #a98bd4;
}


/* ============================================================
   PAGE BACKGROUND
   ============================================================ */

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


/* ============================================================
   MAIN CONTENT
   ============================================================ */

#mw-content-container {
    background: var(--background) !important;
    background-image: none !important;
}

#mw-content {
    background: var(--content) !important;
    color: var(--text) !important;
}


/* ============================================================
   HEADER
   ============================================================ */

#mw-header-container {
    background: var(--content) !important;
}


/* ============================================================
   SIDEBARS
   ============================================================ */

#mw-site-navigation,
#mw-related-navigation {
    background: var(--content) !important;
}

#mw-site-navigation .portal,
#mw-related-navigation .portal {
    background: var(--content) !important;
    color: var(--text) !important;
}

#mw-site-navigation .portal h3,
#mw-related-navigation .portal h3 {
    background: var(--input) !important;
    color: var(--heading) !important;
}

#mw-site-navigation ul,
#mw-site-navigation li,
#mw-related-navigation ul,
#mw-related-navigation li {
    background: transparent !important;
}

/* ============================================================
   LINKS
   ============================================================ */

a {
    color: var(--link) !important;
}

a:visited {
    color: var(--visited-link) !important;
}


/* ============================================================
   HEADINGS
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading) !important;
    border-color: var(--border) !important;
}


/* ============================================================
   SEARCH BAR
   ============================================================ */

#simpleSearch {
    background: var(--input) !important;
    border-color: var(--border) !important;
}

#searchInput {
    background: transparent !important;
    color: var(--heading) !important;
}


/* ============================================================
   SEARCH BUTTON
   ============================================================ */

.mw-searchButton {
    display: none !important;
}


/* ============================================================
   HIDE TIMELESS HEADER SEARCH BUTTON
   ============================================================ */

#p-search button,
#p-search .mw-ui-button,
#p-search input[type="submit"] {
    display: none !important;
}


/* ============================================================
   SEARCH PAGE TABS
   ============================================================ */

.mw-search-profile-tabs {
    background: #181818 !important;
    border-color: #444 !important;
}

.mw-search-profile-tabs li {
    background: #202020 !important;
    border-color: #444 !important;
}

.mw-search-profile-tabs a {
    background: #202020 !important;
    color: #ddd !important;
}

.mw-search-profile-tabs .selected,
.mw-search-profile-tabs .selected a {
    background: #181818 !important;
    color: #fff !important;
}

.mw-search-profile-tabs a:hover {
    background: #292929 !important;
    color: #fff !important;
}


/* ============================================================
   TABLES
   ============================================================ */

.wikitable,
.mw-datatable,
.mw-metadata {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.wikitable th,
.mw-datatable th {
    background: #292929 !important;
    color: var(--heading) !important;
}

.wikitable td,
.mw-datatable td {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}


/* ============================================================
   INFOBOXES
   ============================================================ */

.infobox {
    background: var(--panel) !important;
    color: var(--text) !important;
}


/* ============================================================
   CODE BLOCKS
   ============================================================ */

pre,
code,
.mw-code {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}


/* ============================================================
   FORM INPUTS
   ============================================================ */

input,
textarea,
select {
    background: var(--input) !important;
    color: var(--heading) !important;
    border-color: #555 !important;
}


/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.toc,
.toccolours {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.toc a {
    color: var(--link) !important;
}

.mw-body .toctitle {
    color: var(--heading) !important;
    border-color: var(--border) !important;
}


/* ============================================================
   WIKI LOGO
   ============================================================ */

#p-logo-text {
    display: none !important;
}

#p-logo {
    background: transparent !important;
}


/* ============================================================
   FOOTER
   ============================================================ */

.mw-footer-container,
.mw-footer {
    background: var(--background) !important;
    color: var(--muted-text) !important;
}


/* ============================================================
   DEFAULT FONT SIZE
   ============================================================ */

body {
    font-size: 16px;
}


/* ============================================================
   DROPDOWN LAYER 1 TITLES
   ============================================================ */

/*
 * Examples:
 *
 * Locations
 * Religions
 * People
 * World Building
 *
 * These are the main dropdown headings.
 */

li:has(> .exuvia-dropdown-level-1) > a {
    font-weight: bold !important;
    font-size: 16px !important;
    color: #fff !important;
}


/* ============================================================
   DROPDOWN LAYER 2 TITLES
   ============================================================ */

/*
 * Examples:
 *
 * Continents
 * Kingdoms
 * Towns
 *
 * These are the second-level dropdown headings.
 */

li:has(> .exuvia-dropdown-level-2) > a {
    font-size: 16px !important;
    font-weight: normal !important;
    color: #fff !important;
}


/* ============================================================
   DROPDOWN ARROWS
   ============================================================ */

.exuvia-dropdown-arrow {
    margin-left: 4px;
    font-size: 0.8em;
}


/* ============================================================
   DROPDOWN MENUS
   ============================================================ */

.exuvia-dropdown-menu {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--panel) !important;
}


/* ============================================================
   DROPDOWN MENU ITEMS
   ============================================================ */

.exuvia-dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}


/* ============================================================
   DROPDOWN LINKS
   ============================================================ */

.exuvia-dropdown-menu a {
    display: block !important;
    padding: 8px 12px !important;
    background: transparent !important;
    color: var(--link) !important;
}


/* ============================================================
   DROPDOWN HOVER
   ============================================================ */

.exuvia-dropdown-menu a:hover {
    background: var(--input) !important;
}


/* ============================================================
   LAYER 2 INDENTATION
   ============================================================ */

/*
 * Gives second-level dropdowns a visual indentation from
 * their Layer 1 parent.
 */

.exuvia-dropdown-level-2 {
    padding-left: 10px !important;
}


/* ============================================================
   LAYER 2 PAGE LINKS
   ============================================================ */

/*
 * Normal pages underneath Layer 2 headings remain smaller
 * than the Layer 2 heading itself.
 */

.exuvia-dropdown-level-2 li a {
    font-size: 16px !important;
}


/*
 * Re-apply the Layer 2 heading formatting after the
 * normal-link rule above.
 */

li:has(> .exuvia-dropdown-level-2) > a {
    font-size: 16px !important;
    color: #fff !important;
}

/* ============================================================
   GLOBAL NON-SERIF FONT
   ============================================================ */

* {
    font-family: Arial, Helvetica, sans-serif !important;
}
/* ============================================================
   BODY TEXT SIZE
   ============================================================ */

.mw-body-content {
    font-size: 17px !important;
}