Jump to content

MediaWiki:Common.css: Difference between revisions

From Dreamon Studios Wiki
Replaced content with "Base background + text: body { background-color: #000; color: #fff; } Main content area: .mw-body, .mw-parser-output { background-color: #000; color: #fff; } Headings: h1, h2, h3, h4, h5, h6 { color: #fff; } Links: a { color: #6aa9ff; } a:visited { color: #b38cff; } Tables: table { background-color: #111; color: #fff; } Infoboxes / wikitables: .infobox, .wikitable { background-color: #111;..."
Tag: Replaced
No edit summary
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Base background + text */
/* ------------------
body {
--- General Style ---
    background-color: #000;
------------------ */
    color: #fff;
 
:root {
  color-scheme: light !important;
}
 
:root, .skin-invert, .no-theme {
 
}
}


/* Main content area */
/* -----------------
.mw-body,
--- Infoboxes ---
.mw-parser-output {
----------------- */
    background-color: #000;
 
    color: #fff;
.infobox {
  border: 1px solid #a2a9b1;
  color: #000;
  padding: .2em;
  font-size: .9em;
  line-height: 1.5em;
  border-spacing: 3px;
}
}


/* Headings */
.infobox th,
h1, h2, h3, h4, h5, h6 {
.infobox td {
    color: #fff;
  padding: .2em .5em;
  text-align: left;
  vertical-align: top;
}
}


/* Links */
.infobox .infobox-above,
a {
.infobox .infobox-title {
    color: #6aa9ff;
  font-size: 1.25em;
  font-weight: bold;
  text-align: center !important;
}
}
a:visited {
 
    color: #b38cff;
.infobox .infobox-caption {
  font-weight: normal !important;
  text-align: center !important;
}
}


/* Tables */
.infobox .infobox-header {
table {
  font-size: 1.1em;
    background-color: #111;
  font-weight: bold;
    color: #fff;
  text-align: center !important;
}
}


/* Infoboxes / wikitables */
.infobox .infobox-label {
.infobox,
  font-weight: bold;
.wikitable {
    background-color: #111;
    border-color: #333;
}
}


/* Table headers */
/* Fixes weird stretching bug with the Vector skin */
.infobox th,
.infobox img {
.wikitable th {
  display: block;
    background-color: #222;
  margin: 0 auto;
    color: #fff;
  max-width: 100%;
  height: auto;
}
}


/* Sidebar (Vector) */
@media (max-width: 640px) {
#mw-panel {
  .infobox {
     background-color: #000;
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 1em 0;
    table-layout: fixed;
  }
 
  .infobox .nowrap {
     white-space: normal;
  }
}
}


/* Footer */
@media (min-width: 640px) {
#footer {
  .infobox {
     background-color: #000;
    /* @noflip */
     color: #aaa;
    margin: 0.5em 0 0.5em 1em;
    /* @noflip */
    float: right;
    /* @noflip */
     clear: right;
     width: 22em;
  }
}
}

Latest revision as of 10:03, 7 January 2026

/* ------------------
--- General Style ---
------------------ */

:root {
  color-scheme: light !important;
}

:root, .skin-invert, .no-theme {

}

/* -----------------
--- Infoboxes ---
----------------- */

.infobox {
  border: 1px solid #a2a9b1;
  color: #000;
  padding: .2em;
  font-size: .9em;
  line-height: 1.5em;
  border-spacing: 3px;
}

.infobox th,
.infobox td {
  padding: .2em .5em;
  text-align: left;
  vertical-align: top;
}

.infobox .infobox-above,
.infobox .infobox-title {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-caption {
  font-weight: normal !important;
  text-align: center !important;
}

.infobox .infobox-header {
  font-size: 1.1em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-label {
  font-weight: bold;
}

/* Fixes weird stretching bug with the Vector skin */
.infobox img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .infobox {
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 1em 0;
    table-layout: fixed;
  }
  
  .infobox .nowrap {
    white-space: normal;
  }
}

@media (min-width: 640px) {
  .infobox {
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    width: 22em;
  }
}