MediaWiki:Vector.css

From Stoneshard wiki
Revision as of 12:53, 14 May 2022 by Psojed (talk | contribs) (fix navigation on desktop small resolutions)
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
/* All CSS here will be loaded for users of the Vector skin */
/* Fonts */
@font-face {
    font-family: 'Franklin Gothic';
}

/* For elements which only display in the mobile view */
.mobileonly {
    display: none;
}

/* Vector changes */
a,
a:visited {
	color: #5a93dd;
}

a:hover {
	color: #aecaee;
}

:focus {
	outline: 1px solid #fff;
}

/* override default different external color */
.mw-parser-output a.external,
.mw-parser-output a.external:visited {
	color: #5a93dd;	
}

.mw-parser-output a:hover {
	color: #aecaee;
} 

/* left and top menu buttons */
.vector-menu-tabs,
.vector-menu-tabs li,
.vector-menu-tabs li a {
	background-image: none;
	color: #5a93dd;
}

.vector-menu-dropdown .vector-menu-content,
.mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend,
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-outlined,
.mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle,
.oo-ui-tagItemWidget.oo-ui-widget-enabled:not(.oo-ui-tagItemWidget-fixed),
.oo-ui-tabSelectWidget-framed .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected,
.mw-prefs-buttons,
.mw-datatable td,
.toc,
.diff-context {
	background-color: #1e1a31;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button,
.oo-ui-tagMultiselectWidget.oo-ui-widget-enabled.oo-ui-tagMultiselectWidget-outlined .oo-ui-tagItemWidget.oo-ui-widget-enabled {
	background-color: #1e1a31;
	color: #5a93dd;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover,
.oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover,
.oo-ui-tagItemWidget.oo-ui-widget-enabled:hover,
.oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle {
	background-color: #1e1a31;
	color: #aecaee;
}

.oo-ui-tabSelectWidget-framed .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected .oo-ui-labelElement-label {
	border-bottom-color: transparent;
}

.vector-menu-dropdown h3,
.vector-menu-dropdown li a,
.vector-menu-tabs .selected,
.vector-menu-tabs .selected a,
.vector-menu-tabs li a:visited,
.vector-menu-tabs .selected a:visited,
.vector-menu-portal .vector-menu-content li a,
.vector-menu-portal .vector-menu-content li a:visited,
.wikiEditor-ui-toolbar .tabs span.tab a,
.wikiEditor-ui-toolbar .group .tool-select .options .option,
.vector-menu-dropdown .selected a, .vector-menu-dropdown .selected a:visited,
.tocnumber,
.toctogglelabel {
	color: #5a93dd;
}

.vector-menu-dropdown h3:hover,
.vector-menu-dropdown h3:focus,
.vector-menu-dropdown li a:hover,
.vector-menu-dropdown li a:focus,
.vector-menu-portal .vector-menu-content li a:hover,
.vector-menu-portal .vector-menu-content li a:focus,
.wikiEditor-ui-toolbar .tabs span.tab a:hover,
.wikiEditor-ui-toolbar .tabs span.tab a:focus,
.wikiEditor-ui-toolbar .tabs span.tab a.current {
	color: #aecaee;
}

.vector-menu-tabs .selected,
.mw-search-profile-tabs {
	background: transparent;
}

.vector-menu-dropdown h3 {
	background-image: none !important;
}
	
.vector-menu-dropdown h3:after,
.oo-ui-buttonElement-button > .oo-ui-iconElement-icon:not(.oo-ui-icon-markup):not(.oo-ui-icon-reload),
.wikiEditor-ui-toolbar .group .tool-select .label:after,
.oo-ui-icon-expand,
.oo-ui-icon-collapse {
	filter: invert(1);
}

.editOptions,
.ace-tm {
	background-color: #1e1a31;
	color: #fff;
}

.mw-changeslist > h4,
.ace_gutter-cell,
.ace-tm .ace_cursor,
.wikiEditor-ui-toolbar .group .label,
#msupload-dropzone,
.suggestions a.mw-searchSuggest-link,
.suggestions a.mw-searchSuggest-link:hover,
.suggestions a.mw-searchSuggest-link:active,
.suggestions a.mw-searchSuggest-link:focus,
.suggestions-result,
.suggestions-special .special-query,
.suggestions-special .special-label,
#pagehistory li.selected,
.mw-notification,
.diff-context,
.search-types .current a
{
	color: #fff;
}

.ace-tm .ace_gutter-active-line {
	background-color: #5a93dd;
}

.wikiEditor-ui-toolbar,
.codeEditor-status,
.ace-tm .ace_gutter,
.ace-tm .ace_print-margin,
.wikiEditor-ui-toolbar .group .tool-select .options,
#msupload-div,
.suggestions-special,
.suggestions-results,
.catlinks,
#pagehistory li.selected,
.mw-notification,
.mw-datatable th {
	background-color: #272340;
}

.suggestions-special.suggestions-result-current {
	background-color: #2a4b8d;
}

.oo-ui-icon-indent {
	filter: invert(1);
}

.diff-context {
	border-color: #5a93dd;
}

/* help button color indicator on upload page */
#mw-indicator-mw-helplink a {
	background-image:none;
}

/* background color of upload page and input fields */
textarea,
input,
select,
button,
.wikitable.mw-page-info,
.warningbox {
	background-color: #272340 !important;
	color: #fff !important;
	border: 1px solid white !important;
}

:placeholder,
:-ms-input-placeholder,
:-ms-input-placeholder {
	color: #fff;
}

/* search bar border removal */
div#simpleSearch {
	border-top: 0 !important;
	border-bottom: 0 !important;
}

/* search bar icon fix */
#searchButton, #mw-searchButton {
	background-color: transparent !important;
	border: none;
	filter: invert(1);
}

/* image thumbnail fixes */
.tleft > div.thumbinner,
.tright > div.thumbinner {
	background: transparent;
	width: auto !important;
}

.tnone > div.thumbinner {
	background: transparent;
	min-width: 50%;
    max-width: fit-content;
}

.thumbimage {
	border: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* File page fixes */
#filetoc {
	background: transparent;
}


/* temp fixes */
h3,h4 {
	color: #ffffff;
}

ul {
	list-style-image: none;
}

/* Article navigation */
div.vectorTabs,
div.vectorTabs span,
div.vectorTabs ul,
div.vectorTabs ul li,
div.vectorTabs ul li.selected,
div#mw-head div.vectorMenu h3,
div.vectorMenu h3 span::after {
    background: transparent;
}

div#mw-page-base {
    margin-bottom: 60px;
}

div.vectorMenu h3,
div.vectorTabs ul li {
    border: none;
    padding: 0;
    margin-right: 10px;
    text-transform: uppercase;
    background: none !important;
}

#right-navigation,
#left-navigation {
    border-color: transparent;
    border-image: url(https://stoneshard.com/w/images/b/bd/Small_border.jpg) 24 fill round;
    border-width: 24px;
    border-style: solid;
    text-transform: uppercase;
    background: none !important;
}

#left-navigation {
	margin-left: 15em !important;
}

@media (min-width: 784px) {
	#mw-head-base {
		margin-top: 0;
	}	
}

div.vectorMenu h3 span,
div.vectorTabs ul li a {
    color: white !important;
    font-family: 'Franklin Gothic';
    letter-spacing: 1px;
}

div.vectorMenu h3 a {
    background: none;
    width: 0;
    height: 0;
}

div.vectorMenu h3 span {
    margin-right: 0;
    padding-right: 0.5em;
}

#left-navigation {
    margin-left: 26em;
}

#right-navigation {
    margin-right: 1em;
}

div.vectorMenu div.menu,
div.vectorMenu div.menu ul {
    background: #1e1a31;
    border-color: #6e6a79;
}

div.vectorMenu div.menu ul li a {
    color: #969499;
    font-family: 'Franklin Gothic';
}

div#simpleSearch {
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: 2px solid #9c9c9e;
    border-bottom: 2px solid #9c9c9e;
}

div#simpleSearch #searchInput {
    font-family: 'Franklin Gothic';
}

.skin-hydradark .suggestions-results,
.skin-hydradark .suggestions-special {
    background: #171628;
    border-color: #9c9c9e;
    border-top: none;
    font-family: 'Franklin Gothic';
}

/* Sidebar */
div#mw-panel {
    border-color: transparent;
    border-image: url(https://stoneshard.com/w/images/b/bd/Small_border.jpg) 24 fill round;
    border-width: 24px;
    border-style: solid;
    text-transform: uppercase;
    background: none !important;
    margin-left: 10px;
    font-family: 'Franklin Gothic';
}

#mw-panel .body a {
    color: #969499 !important;
}

#mw-panel h3,
#mw-panel h3 a {
    color: #fff !important;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.skin-hydradark div#mw-panel:not(.collapsible-nav) div.portal:not(#p-claimWiki):not(#p-socialProfiles):not(#p-sitePromos) h3 {
    border-bottom: 2px solid #9c9c9c;
}

/* Content area */
div#content {
    background-color: transparent;
    border-color: transparent;
    border-image: url(https://stoneshard.com/w/images/6/6a/Content_border.jpg) 25 fill round;
    border-width: 25px;
    border-style: solid;
    padding: 0;
    margin-right: 1em;
    margin-left: 15em;
    margin-top: 20px;
}

.mw-body, .vector-body, .parsoid-body {
	color: #ffffff;
}

.mw-body h1,
.mw-body h2 {
    font-family: 'Franklin Gothic';
    border-color: #9c9c9c;
    color: #ffffff;
}

.mw-body h1 {
    border-width: 2px;
}

.mw-footer {
    margin-left: 15em;
}

/* Background */
body {
    background-color: #03080e;
}

div#mw-page-base {
    background: transparent;
}

/* Logo */
.mw-wiki-logo {
    background-size: 160px;
}

#p-logo a {
    width: 160px;
}

/* Preferences */
.client-js #preferences {
    background: #161527;
}

.client-js .mw-prefs-buttons,
.client-js .mw-prefs-tabs-wrapper.oo-ui-panelLayout-framed {
    border-color: black;
}

.client-js .oo-ui-tabSelectWidget {
    background: transparent;
}

.client-js .oo-ui-tabOptionWidget .oo-ui-labelElement-label {
    font-family: 'Franklin Gothic';
    color: #969499;
}

/* Fieldsets */
fieldset legend {
    color: #dd6f38 !important;
    font-family: 'Franklin Gothic';
}

fieldset {
    border-color: #9c9c9e;
}

/* Tables */
.wikitable {
	background: transparent;
}

table.wikitable > tr > th, 
table.wikitable > * > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > td {
    background-color: #272340;
    color: #ffffff;
    border: 1px solid #504d5e;
}

/* custom table for use on our wiki */
table.stoneshard th,
table.stoneshard td,
table.stoneshard {
    border: 5px solid #1e1a31;
    border-collapse: collapse;
    color: white;
}
table.stoneshard {background-color: #231f36;}
table.stoneshard th {background-color: #343047;}
table.stoneshard tr:nth-child(even){background-color: #272340;}

table.row-hover th:hover,
table.row-hover tr:hover {background-color: #34306f;}
table.cell-hover th:hover,
table.cell-hover td:hover {background-color: #34306f;}

table.valign-bottom td,
table.valign-bottom th,
table.valign-bottom {
	vertical-align: bottom;
}

/* table column highlighting
- I'll comment this out since it's ugly, we don't really need it anyway.
table.column-hover {
	background-color: #231f36;
	overflow: hidden;
}
table.column-hover td,
table.column-hover th {position: relative;}
table.column-hover td:hover::after,
table.column-hover th:hover::after { 
   background-color: #34306f;
   background-color: rgba(52, 48, 111, 0.5);
   content: '\00a0';  
   height: 200vh;    
   left: 0;
   position: absolute;  
   top: -100vh;
   width: 100%;   
}
*/

table th a {
    color: #0f4497;
}

/* Misc */
li.gallerybox div.thumb,
code,
pre,
.mw-code {
    background: #272340;
    color: #fff;
    border: 2px solid gray;
}

span.warning {
    color: #a37400;
}

/* Search */
.skin-hydradark .mw-search-profile-tabs,
.skin-hydradark fieldset#mw-searchoptions {
    background-color: #161527;
    border: 2px solid black;
}

.skin-hydradark fieldset#mw-searchoptions {
    border-top: none;
}

.skin-hydradark fieldset#mw-searchoptions div.divider {
    border-color: #9c9c9c;
}

.skin-hydradark .mw-search-profile-tabs ul li a {
    font-family: 'Franklin Gothic';
    color: #969499;
}

div.wikiEditor-preview-loading,
div.wikiEditor-ui {
    background: none;
}

/* Visual editor */
.oo-ui-popupToolGroup .oo-ui-toolGroup-tools {
    background-color: #282828;
    border: 1px solid #383838;
    box-shadow: 0 2px 2px 0 rgba(255,255,255,0.2);
}

.oo-ui-popupToolGroup .oo-ui-tool-link .oo-ui-tool-title {
    color: #e0e0e0;
}

.oo-ui-listToolGroup .oo-ui-tool.oo-ui-widget-enabled:hover,
.oo-ui-popupToolGroup.oo-ui-widget-enabled > .oo-ui-popupToolGroup-handle:hover,
.oo-ui-barToolGroup.oo-ui-widget-enabled > .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-widget-enabled:hover,
.oo-ui-widget.oo-ui-widget-enabled.oo-ui-optionWidget.oo-ui-decoratedOptionWidget.oo-ui-outlineOptionWidget.oo-ui-outlineOptionWidget-level-0.oo-ui-iconElement.oo-ui-labelElement:hover {
    background-color: rgba(255,255,255,0.2);
}

.oo-ui-decoratedOptionWidget .oo-ui-iconElement-icon,
.oo-ui-decoratedOptionWidget .oo-ui-indicatorElement-indicator,
.oo-ui-fieldsetLayout.oo-ui-iconElement > .oo-ui-fieldsetLayout-header > .oo-ui-iconElement-icon {
    filter: invert(100%);
}

.oo-ui-textInputWidget.oo-ui-iconElement .oo-ui-iconElement-icon {
    filter: unset;
}

.oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-buttonElement-active > .oo-ui-buttonElement-button {
    border-color: #ffffff;
}

.oo-ui-popupToolGroup.oo-ui-widget-enabled.oo-ui-popupToolGroup-active {
    background-color: rgba(255,255,255,0.2);
}

.oo-ui-popupToolGroup-handle .oo-ui-iconElement-icon,
.oo-ui-popupToolGroup.oo-ui-labelElement.oo-ui-indicatorElement .oo-ui-popupToolGroup-handle .oo-ui-labelElement-label,
.oo-ui-barToolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-iconElement > .oo-ui-tool-link .oo-ui-iconElement-icon {
    filter: invert(100%);
}

.oo-ui-messageDialog-actions .oo-ui-actionWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive .oo-ui-buttonElement-button:hover {
    background-color: #282828;
}

.oo-ui-indicator-down {
    background-image: linear-gradient(transparent,transparent),url(https://static.wikia.nocookie.net/commons_hydra/images/0/00/Light_down_arrow.svg);
    filter: unset;
}

.ve-ui-mwSaveDialog-options {
    background-color: #282828;
}

.ve-ui-mwSaveDialog-license {
    color: #e0e0e0;
}

/* Diffs */
td.diff-addedline .diffchange {
    background: none;
    color: #bfd959;
}

td.diff-deletedline .diffchange {
    background: none;
    color: #e62444;
}

td.diff-addedline,
td.diff-deletedline {
    border-color: transparent;
}

table.diff,
td.diff-otitle,
td.diff-ntitle {
    background: #161527;
}

table.diff {
    border: 2px solid black;
}

/* for "edit this page" tab and "discussion" tab etc */
.pagetab {
     border-style: solid solid none;
     border-width: thin;
     border-color: #808080;
     padding: 0.25ex 1ex 0ex;
     font-size: 95%;
}

.ambox {
    background-color: #282828;
    border-bottom-color: #383838;
    border-right-color: #383838;
    border-top-color: #383838;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px auto;
    width: 80%;
}

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

.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;
}

/* INFOBOXES: game or book depended color style */
.infoboxtable {
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #505050;
    color: #ffffff;
    float: right;
    font-size: 89%; 
    margin-bottom: 0.5em; 
    margin-left: 1em; 
    padding: 0.2em; 
    width: 300px;
}

.infoboxtable td {
    vertical-align: top;
}

.infoboxtable td > div {
    background-color: #181818; 
    border: 2px solid #505050; 
    border-radius: 5px; 
    font-weight: bold;
    padding: 0.5px 7px;
    text-align: right;
}

.infoboxname {
    background-color: #181818; 
    font-size: 110%; 
    font-weight: bold;
    padding: 0.5em; 
}

.infoboxdetails {
    padding: 0em;
}

/* copyright images tweak */
.skin-hydradark .copyright-icon {
    background-image: url("https://static.wikia.nocookie.net/commons_hydra/images/thumb/5/58/Copyright_darkwiki.png/32px-Copyright_darkwiki.png");
    background-size: 100%;
    height: 32px;
    width: 32px;
}

.feature {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 5px; padding: 10px;
}

/* Navbox template style */
table.navbox {
    border: 1px solid #505050;
    clear: both;
    font-size: 88%;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%; 
}

/* 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: rgba(0, 0, 0, 0.1);
}

.navbox-list {
    border-color: rgba(0, 0, 0, 0.1); /* Must match background color */
}

/* Level 1 color */
.navbox-title,
table.navbox th {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 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 */

/* front page styles */
.fpbox .heading,
.fpbox .mainheading {
    border: 0;
    border-bottom: 2px solid #9c9c9c;
    color: #fff;
    font-family: 'Franklin Gothic';
    text-transform: uppercase;
	font-size: 18px;
	letter-spacing: 1px;
}

.fpbox {
    background: #161527;
    border: 2px solid #000;
    color: #B3B4B7;
}

.linkslabel {
    border-bottom: 1px solid #9c9c9c;
    color: #fff;
    font-family: 'Franklin Gothic';
    text-align: center;
    text-transform: uppercase;
	font-size: 18px;
	letter-spacing: 1px;
}

.fplink {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid #000;
}

.fplink a {
    color: #fff !important;
}

/* Notifications fix */
.mw-echo-ui-notificationsInboxWidget-toolbarWrapper {
    background: inherit;
}

/* Tooltip: [[File:Tooltip Border.png]] */
.tooltip {
    border-image-source: url(https://stoneshard.com/w/images/b/bc/Tooltip_Border.png);
    border-image-slice: 32;
    border-image-repeat: round;
    border-width: 24px;
    border-style: solid;
    display: inline-block;
    background: #1b1926;
    text-shadow: black 2px 1px 4px; 
    font-size: 90%; 
    color: #ffffff; 
    line-height: 1.6;
}

/* Hide elements that should be collapsed and elements that collapse them in the tooltips */
.to_tooltip .mw-collapsed,
.to_tooltip span[id^="mw-customcollapsible-"] {
	display: none;
}