MediaWiki:Vector.css

From Spirit Mod Wiki
Jump to navigation Jump to search

CSS and Javascript changes must comply with the wiki design rules.


Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
/* CSS placed here will affect users of the Vector skin */
/* For elements which only display in the mobile view */
.mobileonly {
    display: none;
}
 
/* Hide main page header */
body.page-Spirit_Mod_Wiki h1.firstHeading {
    display:none;
}
.mw-changeslist table {
   background: none !important
}
/* background image */
body, #mw-page-base {
    background: url("/images/2/26/Background.png") no-repeat fixed center top / cover rgb(0,0,0)
}

/* Tweaks */
#contentSub:empty {
    margin: 0;
}

/* Framework */
body {
    background-color: #0E191A;
}

body #pageWrapper {
    margin-right: 10px;
}

/* Head */
div#mw-page-base {
    background: transparent;
    background-image: none;
}

#mw-head-base {
    background: transparent;
    background-image: none;
    border-bottom: 0px;
}

/* Tabs */
#left-navigation {
    margin-left: 11.5em;
}

#right-navigation {
    margin-right: 5px;
}

div.vectorMenu h3 span::after {
    margin-top: -1em;
}

div.vectorTabs {
    background-color: #0E191A;
    background-image: none;
    height: 33px;
    margin-top: 8px;
}

div.vectorTabs span,
div.vectorTabs li.selected,
div.vectorTabs ul,
div.vectorTabs ul li,
div.vectorTabs li a {
    background: rgba(0, 0, 0, 0);
}

div.vectorTabs li span,
#p-cactions {
    background: #1df1ff;; 
    background-image:-moz-linear-gradient(center top, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    background-image:-webkit-gradient(linear, center top, left bottom, color-stop(0%,rgba(255, 255, 255, 0.25)), color-stop(100%,rgba(255, 255, 255, 0))); 
    background-image:-webkit-linear-gradient(top, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    background-image:-o-linear-gradient(top, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    background-image:-ms-linear-gradient(top, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%); 
    border: 1px solid #1df1ff;;
    border-radius: 5px;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 2px 10px;
    margin: 0 3px 0 3px;
    height: 19px;
    text-align: center;
}

#p-cactions-label {
  margin-top: -1.3em;
  font-weight: bold;
}

#mw-head .vector-menu-dropdown .vector-menu-heading {
	background: transparent;
}
#p-cactions {
  margin-top: 0.5em;
}

div#mw-head div.vectorMenu h3 {
    background: #1df1ff;
    background-position: 0 0, 90% 50%;
    background-repeat: repeat, no-repeat;
    border: 1px solid #1df1ff;;
    border-radius: 5px;
    box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.2);
    display: inline-block;
    padding: 2px 10px;
    margin-left: 3px;
    margin-top: 0.5em;
    height: 19px;
    text-align: center;
}

div.vectorMenu h3 span {
    padding-top: 0.2em;
}

div#mw-head,
div.vectorTabs li a,
.vectorTabs li a span,
div#mw-head div.vectorTabs a,
div.vectorMenu h3 span a {
    color: #0E191A;
    font-weight: bold;
}

.vectorTabs li a span,
div#mw-head div.vectorTabs a {
    margin-top: -1.2em;
}

div.vectorTabs li.selected a,
div.vectorTabs li.selected a:visited {
    text-decoration: none;
    font-weight: bold;
}

#ca-unwatch.icon a,
#ca-watch.icon a {
    padding: 45px 0 0;
    margin-top: -1em
}

div#p-cactions .menu,
div#p-sharing .menu {
   margin-top: -7px
}

div#p-sharing .menu {
    margin-left: 45px;
    min-width: 0px;
    width: 48px;
}

#p-sharing #socialIconImages img {
    width: 100%;
}
 
#p-sharing #socialIconImages a {
    width: 40px;
}

div.vectorMenu h3 a {
    background-image: none;
}

div#mw-head div.vectorMenu h4,
div#p-variants.vectorMenu #mw-vector-current-variant {
    color: #0E191A;
    font-weight: bold;
    padding-top: 0.2em;
    text-shadow: none;
}

div.vectorMenu div.menu {
    border: 1px solid #aaaaaa;
}

div.vectorMenu div.menu ul {
    background-color: #0E191A;
    background-image: none;
}

div#mw-head div.vectorMenu li a {
    color: #0094FF
}

/* Sidebar */
div#mw-panel div.portal h3,
#mw-panel.collapsible-nav .portal h3 a,
#mw-panel.collapsible-nav .portal h3 a:visited,
#mw-panel.collapsible-nav .portal.collapsed h3 a,
#mw-panel.collapsible-nav .portal.collapsed h3 a:visited {
    border: medium none;
    font-size: 1em;
    font-weight: bold;
    padding: 0;
    text-transform: uppercase;
    color: #B1E9FF;
}

div#mw-panel div.portal,
div#mw-panel div.portal div.body,
.skin-hydradark #mw-panel.collapsible-nav .portal {
    background-image: none;
}

div#mw-panel div.portal div.body ul li a,
div#mw-panel div.portal div.body ul li a:link,
div#mw-panel div.portal div.body ul li a:visited {
	color: #0094FF;
}

/* Content */
div#content {
    background: #0E191A;
    border: none;
    box-sizing: border-box;
    color: #ffffff;
}

/* anchors */
a, 
a:visited,
div#content a.extiw,
div#content a.extiw:visited,
div#content a.external, 
div#content a.external:visited {
	color: #0094FF;
}

#toc,
.toc,
.mw-warning {
    background: #0E191A;
}

.catlinks,
ul#filetoc {
    background: #0E191A;
}

/* Footer */
div#footer {
    background-image: none;
}

div#footer ul li {
    color: #ffffff;
    text-shadow: 1px 1px #00CDD0;
}

div#footer ul li a {
    color: #00CDD0;
    font-weight: bold;
    text-shadow: 1px 1px #00CDD0;
}

/* tables */
table.wikitable {
    background: none repeat scroll 0 0 transparent;
}

table.wikitable > caption {
    color: #00CDD0;
}

table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background: #6690b6;
    border: 1px solid #B3DCDC;
    color: #00CDD0;
    text-align: center;
}

table.wikitable > tr > td,
table.wikitable > * > tr > td {
    border: 1px solid #B3DCDC;
    padding: 0.2em;
}

.wikitable th {
    background-color: #6690b6;
    border: 1px solid #B3DCDC;
    color: #00CDD0;
    padding: 0.2em;
}

.wikitable td {
    border: 1px solid #B3DCDC;
    color: #00CDD0;
    padding: 0.2em;
}

table.mw_metadata th {
    background: #6690b6;
    border: 1px solid #B3DCDC;
    color: #00CDD0;
}

table.mw_metadata td {
    background-color: #0E191A;
    border: 1px solid #B3DCDC;
    color: #00CDD0;
}

.mw-datatable th {
    border: 1px solid #B3DCDC;
}

.mw-datatable,
.mw-datatable td {
    border: 1px solid #B3DCDC;
}

.TablePager {
    border:1px solid #B3DCDC;
    color: #00CDD0;
    padding:0 0.15em;
}

.TablePager th {
    background-color: #6690b6;
    color: #00CDD0;
    border:1px solid #B3DCDC;
    padding:0 0.15em;
}

.TablePager tr:hover td {
    background-color: #0E191A !important;
    color: #00CDD0;
}

.TablePager th a {
    background-color: #6690b6;
    color: #00CDD0
}
 
.TablePager td {
    background: transparent !important;
    border: 1px solid #B3DCDC;
    color: #d3faff;
}

/* colour fix for advanced search options box */
fieldset#mw-searchoptions {
    background-color: #058D9D;
    border-color: #B3DCDC
}

.mw-search-profile-tabs {
    background-color: #058D9D;
    border: 1px solid #B3DCDC;
    margin-top: 1em;
}

.mw-search-profile-tabs div.search-types ul li.current a {
    color: #d3faff;
}

/* other elements */
fieldset {
    border: 1px solid #6690b6;
}

code {
    background-color: transparent;
}

/* Page history */
#pagehistory li {
    border: none;
    padding: 3px;
}

#pagehistory li.selected {
    background-color: #0E191A;
    background-image: none;
    border: 1px dashed #B3DCDC;
    padding: 3px;
}

table.diff {
    background: transparent;
}

td.diff-context {
    background: none repeat scroll 0 0 transparent;
    color: #ffffff;
}

td.diff-deletedline {
    background-color: #0E191A;
    border-color: #0094FF;
    color: #ffffff;
}

td.diff-addedline {
    background-color: #0E191A;
    border-color: #0094FF;
    color: #ffffff;
}

/* thumbnails and galleries and image file history */
div.thumb {
    border: 1px solid #B3DCDC;
    margin: 2px;
    margin-left: 6px;
}

img.thumbborder {
    border: 1px solid #B3DCDC;
    border-radius: 5px;
    padding: 5px;
}

div.thumbinner {
    background-color: #0E191A;
    border: medium none;
}

li.gallerybox div.thumb {
    background-color: #0E191A;
    border: 1px solid #B3DCDC;
    border-radius: 5px;
}

html .thumbimage {
    border: 1px solid #B3DCDC;
    border-radius: 5px;
}

div.tright div.tleft {
    border: 1px solid #B3DCDC
}

div.tright {
    clear: right;
    float: right;
}

/* Preferences */
.client-js #preftoc {
    background-color: #0E191A;
    border: 0px;
    margin: 0 0 4px
}

.client-js #preftoc,
.client-js #preftoc li,  
.client-js #preferences, 
.client-js #preftoc li a {
    background-image: none;
    background-color: #0E191A;
}

.client-js #preftoc li:first-child {
    margin-bottom: 1px;
    margin-left: 5px;
}

.client-js #preftoc li.selected a {
    background-color: #0E191A;
    background-image: none;
    border-color: #0094FF;
    border-radius: 5px 5px 0 0;
    border-style: solid;
    border-width: 1px;
}

.client-js #preferences {
    background-color: #0E191A;
    border: 1px solid #0094FF;
    border-radius: 5px;
}

.client-js #preferences fieldset {
    border-color: #0094FF;
}

[type="radio"]:checked ~ label {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border-bottom: medium none;
    z-index: 2;
}

/* wiki editor styling */
.wikiEditor-ui {
    background: #0E191A;
    border: none;
}

.wikiEditor-ui-tabs div {
    border-bottom: 1px solid #0094FF;
    border-right: 1px solid #0094FF;
}

.wikiEditor-ui-buttons {
    background: #0E191A;
    border-top: none;
    margin-right: 5px;
}

.wikiEditor-ui-toolbar {
    background: none repeat scroll #0E191A;
}

.wikiEditor-ui-toolbar .tabs span.tab a,
.wikiEditor-ui-toolbar .tabs span.tab a:visited {
	color: #0094FF;
}

.wikiEditor-ui-toolbar .tabs span.tab a.current,
.wikiEditor-ui-toolbar .tabs span.tab a.current:visited {
    font-weight: bold;
}

.wikiEditor-ui-toolbar .sections .section {
    background-color: #0E191A;
    border-top: 1px solid #0094FF;
}

.wikiEditor-ui-toolbar .page-characters div span {
    border: 1px solid #0094FF;
}

.wikiEditor-ui-toolbar .booklet .pages {
    background-color: #0E191A;
}

.wikiEditor-ui-toolbar .booklet .index .current {
    background-color: #0E191A;
}

.wikiEditor-ui-toolbar .booklet .index div {
    color: #000000;
}

.wikiEditor-ui-toolbar .page-characters div span:hover {
    background-color: #0E191A;
    border-color: #0094FF;
}

.wikiEditor-ui-toolbar .page-table th,
.wikiEditor-ui-toolbar .page-table td {
    color: #000000;
}

.wikiEditor-ui-toolbar .page-table td {
    border-top: 1px solid #0094FF;
}

.wikiEditor-ui-tabs div a {
    background: #6690b6; /* Old browsers */
    background: -moz-linear-gradient(top,  #6690b6 0%, #6690b6 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6690b6), color-stop(100%,#6690b6)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #6690b6 0%,#6690b6 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #6690b6 0%,#6690b6 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #6690b6 0%,#6690b6 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #6690b6 0%,#6690b6 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6690b6', endColorstr='#6690b6',GradientType=0 ); /* IE6-9 */
    display: inline-block;
}

.wikiEditor-ui-tabs div.current {
    border-bottom: 1px solid #0094FF;
}

.wikiEditor-ui-tabs div.current a {
    font-weight: bold;
}

.wikiEditor-ui-tabs {
    border-left: 1px solid #0094FF;
    border-top: 1px solid #0094FF;
}

.wikiEditor-preview-contents {
    background: #0E191A;
    background-color: #0E191A;
    border-color: #0094FF;
    border-style: solid;
    border-width: 0 1px 1px;
}

.wikiEditor-ui-controls {
    background: #0E191A;
    border-bottom: 1px solid #0094FF;
}

.wikiEditor-preview-contents,
.wikiEditor-preview-loading {
    background-color: #0E191A;
}

.editOptions {  
    background-color: #0E191A;
    border-color: -moz-use-text-color #0094FF #0094FF;
    border-image: none;
    border-radius: 0 0 5px 5px;
    border-style: none solid solid;
    border-width: medium 1px 1px;
}

input#wpSummary {
    margin-bottom: 1em;
    margin-top: 1em;
    width: 80%;
}


/* Notice templates */
.topNotice {
  border: 2px solid #0094FF;
  background: #0E191A;
  margin: 0 0 10px 0;
  padding: 3px 6px;
  overflow: auto;
}

.topNotice .heading {
  font-size: 132%;
  font-weight: bold;
  margin: 0 0 8px 0;
  padding: 0;
}

.topNotice.delete {
  border: 2px solid #0094FF;
}

.topNotice.move,
.topnotice.merge,
.topnotice.split {
  border: 2px solid #6690b6;
}

.topNotice.pagestub,
.topNotice.imagerequest,
.topNotice.nowalkthrough {
  border: 2px solid #0094FF;
}

/* Ambox */
.ambox {
    background-color: #0E191A;
    border-bottom-color: #0094FF;
    border-right-color: #0094FF;
    border-top-color: #0094FF;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}

.ambox-gray {
    border-left-color: #0094FF;
}

.ambox.ambox-tiny {
    font-size: 90%;
    margin: 2px 0;
    width: auto;
}

.ambox + .ambox {
     margin-top: -2px;
}

.ambox-text {
     padding: 0.25em 0.5em;
}

.ambox-image {
     padding: 2px 0px 2px 0.5em;
     text-align: center;
     width: 60px;
}

.ambox-tiny .ambox-image {
     padding: 2px 0.5em;
     text-align: left;
     width: auto;
}

/* Ambox colors */
.ambox-blue {
     border-left: 10px solid #1e90ff;
}

.ambox-red {
     border-left: 10px solid #b22222;
}

.ambox-orange {
     border-left: 10px solid #f28500;
}

.ambox-yellow {
     border-left: 10px solid #f4c430;
}

.ambox-purple {
     border-left: 10px solid #9932cc;
}

.ambox-gray {
     border-left: 10px solid #bba;
}

.ambox-green {
     border-left: 10px solid #228b22;
}

/* Ambox small text */
.amsmalltext {
     font-size: smaller;
     margin-left:0.8em;
     margin-top:0.5em;
}

/* copyright images tweak */
.copyright-icon {
    background: url("https://static.wikia.nocookie.net/commons_hydra/images/thumb/b/b6/Copyright.png/32px-Copyright.png") transparent center center no-repeat;
    background-size: 100%;
    width: 32px;
    height: 32px;
}

/* Infobox template style */
.infobox {
   border: 1px #0094FF solid;
   background-color: #0E191A;
   color: #ffffff;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px #0094FF solid;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

/* Terraria Infobox template style */
.infobox {
   border: 1px #0094FF solid;
   background-color: #0E191A;
   color: #ffffff;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px #0094FF solid;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}
/* ------------------ */

/* -- "terraria" box style. ------------------------------------------*/
.terraria{
    border: 1px #aaa solid;
    padding: 8px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    position: relative;
}
.terraria th{
    background: var(--theme-page-background-color--secondary);
}
.terraria > .heading,
.terraria > .mw-collapsible-content > .heading {
    background: var(--template-heading-background-color-1);
    text-align: center;
    font-weight: bold;
    line-height: 2;
    min-height: 1em;
    margin: auto -4px;
    padding: 0;
    font-size: inherit;
    margin-top: 8px;
}
.terraria > .heading:first-child,
.terraria > .mw-collapsible-content > .heading:first-child {
    margin-top: auto;
}
.terraria > .heading + *,
.terraria > .mw-collapsible-content > .heading + * {
    padding-top: 8px;
}
.terraria > .mw-collapsible-toggle {
    position: absolute;
    line-height: 1;
    right: 12px;
    top: 12px;
    font-size: 12px;
}
.terraria > .mw-collapsible-toggle > .mw-collapsible-bracket {
    display: none;
}
.terraria > .mw-collapsible-toggle:before {
    content: "";
    vertical-align: middle;
    display: inline-block;
    width: 4px;
    height: 4px;
    transform: rotate(45deg);
    position: relative;
    left: -3px;
    border-left: 2px solid #aaa;
    border-top: 2px solid #aaa;
    border-right: 0;
    border-bottom: 0;
    top: 1px;
}
.terraria > .mw-collapsible-toggle.mw-collapsible-toggle-collapsed:before {
    border-left: 0;
    border-top: 0;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    top: -2px;
}
/* ------------------ */

/* Auto line separators for tables */
table.lined td {
        border-bottom:1px #0094FF solid;
}
table.lined tr:last-of-type td {
        border-bottom:0;
}
table tr.bottomline td {
        border-bottom:1px #0094FF solid;
}
table tr.topline td {
        border-top:1px #0094FF solid;
}
/* ------------------ */


/* Hack for using "border-collapse" and "border-radius" in the same table display 
   ...by using one table nested within another */  
table.outer {
        white-space:nowrap;
}
table.inner {
        border-collapse:collapse; 
        background:inherit; 
        width:100%;
}
table.inner th {
        border:solid #0094FF; 
        border-width:2px 2px 2px 2px;
}
/*
table.inner th:first-of-type {
        border-width:0px 0px 0px 0px;
}
*/
/* ------------------ */

/* Custom list style for use in miniature bullet lists within infobox drop tables */
span.dropSub ul {
  list-style: none;
  margin-top: 0;
  margin-left: 0;
  padding-left: 0;
}
span.dropSub li {
  padding-left: 1em;
  text-indent: -1em;
}
span.dropSub li:before {
  content: "•";
}
ul {
    list-style-type: disc;
    list-style-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A);
}
/* ------------------ */

.feature {
    background: #0E191A;
    border: 1px solid #0094FF;
    border-radius: 5px; padding: 10px;
}

/* Navbox template style */
table.navbox {
    border: 1px solid #aaa;
    clear: both;
    /*font-size: 12px;*/
    margin-top: 0.75em !important;
    /*text-align: center;*/
    width: 100%; 
    border-radius: 8px;
    padding: 6px;
    background-color: var(--template-background-color-1);
}

/* Border between adjacent navboxes */
table.navbox + table.navbox {
    margin-top: -1px;
}

.navbox-title,
.navbox-abovebelow,
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}

.navbox-group {
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
    white-space: nowrap;
}

/* Base background */
.navbox, .navbox-subgroup {
    background: #0E191A;
}

.navbox-list {
    border-color: #0094FF; /* Must match background color */
}

/* for crafts template */
.crafts{
}
.crafts th{
    background-color: #00727a;
    color: white;
    border: solid #0e191a 1px !important
}
.crafts td:nth-child(2){
    border-right: solid white 1px 
}
.crafts td{
    padding-right: 6px;
    padding-left: 6px;
    border-spacing: 10px;
    color: white;
}

/* Level 1 color */
.navbox-title,
table.navbox th {
    background: var(--template-heading-background-color-1);
    color: var(--template-heading-text-color-1);
}

/* Level 2 styling */
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Level 3 styling */
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Even row striping */
.navbox-even {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Odd row striping */
.navbox-odd {
    background: transparent;
}
 
.collapseButton {
    font-weight: normal;
    width: auto;
}

.navbox .collapseButton {
    width: 6em;
}
 
.navbar {
    font-size: 88%;
    font-weight: normal;
}

.navbox .navbar {
    font-size: 100%;
}
 
table.collapsed tr.collapsible {
    display: none;
}
/* End of new Navbox styling */

#footer-info {
  background: #00CDD0;
  padding: 1em;
  border: 1px solid white;
}
#footer-places {
  display: none;
}

/* Terraria class redlinks */
.terraria a.new {
  color: #ba0000;
}

/* Log comments */
span.comment {
	white-space: break-spaces;
}