MediaWiki:Common.css

MediaWiki interface page
Revision as of 22:58, 19 May 2024 by Xenon (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

.sci-fi-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

/* General Overrides for Dark Theme */
html, body {
    font-size: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #2a2a2a;
}

/* Header settings */
h1, h2, h3, h4, h5, h6 {
    color: #c1c1c1;
}

/* Hyperlink settings */
a, .mw-body a.external, .mw-body a.extiw {
    color: #e69710;
}

a:visited, .mw-body a.external:visited, .mw-body a.extiw:visited {
    color: #e69710;
}

a.new, #p-personal a.new {
    color: #d44;
}

/* Navigation bar customization */
#left-navigation div.vectorTabs, #right-navigation div.vectorTabs {
    background-image: inherit;
    background-color: #250b2d;
}

#left-navigation div.vectorTabs ul, #right-navigation div.vectorTabs ul {
    background-color: #250b2d;
}

/* List style and divisions */
ul {
    list-style-image: none;
}

div.thumbinner, .catlinks {
    background-color: #4c4c4c;
    border-color: #666;
}

/* Table of contents */
#toc, div.toc, ul#filetoc, li.gallerybox div.thumb {
    background-color: #4c4c4c;
    border-color: #666;
}

/* Code blocks */
code {
    border: none;
    background-color: inherit;
    color: inherit;
}

/* Metadata and diff view tables */
table.mw_metadata td, table.mw_metadata th, table.wikitable, table.wikitable>*>tr>th, table.wikitable>*>tr>td, pre {
    color: #c1c1c1;
    background-color: #4c4c4c;
    border-color: #666;
}

/* Highlight navigation tab on selection */
#left-navigation div.vectorTabs li.selected, #right-navigation div.vectorTabs li.selected {
    background-color: #333;
    background-image: linear-gradient(#e69710 0, #333 10%);
}

/* Miscellaneous adjustments for improved dark mode compatibility */
.mw-body {
    margin-left: 10em;
    padding: 1em;
    border: 1px solid #250b2d;
    border-right-width: 0;
    margin-top: -1px;
    background-color: #333;
    color: #c1c1c1;
}

/* Enhancements for vector tabs */
div#mw-head #right-navigation div.vectorMenu h3 {
    background: inherit;
}

div.vectorMenu h3 a {
    background: inherit;
}

/* Specific overrides for search box and portal */
#p-search {
    float: left;
    margin-right: .5em;
    margin-left: .5em;
}

div#simpleSearch {
    display: block;
    width: 12.6em;
    padding-right: 1.4em;
    height: 1.4em;
    margin-top: .65em;
    position: relative;
    min-height: 1px;
    border: solid 1px #aaa;
    color: black;
    background-color: white;
    background-image: url('skins/Vector/images/search-fade.png');
    background-position: top left;
    background-repeat: repeat-x;
}

/* Footer adjustments for consistent styling */
div#footer {
    margin-left: 10em;
    margin-top: 0;
    padding: .75em;
    direction: ltr;
}

/* Helper class for external images */
.swaoa-external-image-holder img {
    width: 100%;
    height: auto;
}