Command & Conquer Wiki

Welcome to the Command & Conquer Wiki! Log in and join the community.

READ MORE

Command & Conquer Wiki
Advertisement

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
/* BASIC CODE */
body { 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background: url(https://static.wikia.nocookie.net/cnc_gamepedia_en/images/3/35/BASE_MAP.jpg/revision/latest) no-repeat fixed top rgba(0,0,0,1);
}

#mw-page-base,
#mw-head-base{
    background: transparent !important;   
}

div#mw-head {
    border-bottom: 0px solid #001821;
}

div#pageWrapper {
    background: transparent;
}

/* NAVIGATION BAR AND LOGO */
#p-logo {
    margin-top: 0.5em;
    height: 0em;
}

#p-logo a {
    width: 25em;
    height: 7em;
}

div#p-portals {
    background: rgba(0,0,0,0.8);
}

/* Top navigation*/
#left-navigation, 
#right-navigation {
    display: inline;
    border-width: 1px;
    border-color: #01a3e8;
    padding: 0px;
    margin-top: 8em;
    margin-top: 7.25em;
}

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

@media (min-width: 1700px) {
#left-navigation {
    margin-left: 14em;
}
}

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

@media (min-width: 1700px) {
#right-navigation {
    margin-right: 3em;
}
}

div.vectorTabs ul {
    margin-top: 1.55em;
}

div.vectorMenu,
#p-search {
    height: 0.9em;
    margin-top: 1.15em;
}

#p-search {
    width: 16em;
}

div#mw-head div.vectorMenu h3 {
    padding: 4px !important;
    height: 1em;
    margin-bottom: 0.5em;
    margin-top: -0.6em;
    margin-right: 5px;
    background: black;
    transform: skew(-20deg,0deg);
    border: 1px solid #017f96;
    -moz-box-shadow: inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow: inset 0 0 20px #014d90;
}

div#mw-head div.vectorTabs a {
    margin-top: -1.3em; /* fixed 18 Nov 2018 */
}

#p-search form, #p-search input {
    margin: 0;
    margin-top: -0.8em;
}

div.vectorTabs,
div.vectorTabs span,
div.vectorTabs ul,
div.vectorTabs ul li,
div.vectorMenu h3 a  {
    background-image: none;
    background: transparent 
}

div.vectorTabs li.new a,
div.vectorTabs li.new a:visited {
    color: #ba0000 !important;
    text-decoration: none;  
}

/* Those pesky separate Social Media and More menus */
div.vectorMenu h3 span {
    font-size: 0.8em;
    font-weight: bold;
    padding-top: 0em;
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
}

div#mw-head div.vectorMenu h3 {
    background-image: url(https://cnc.gamepedia.com/skins/Vector/images/arrow-down-icon.png?d72f0);
    background-repeat: no-repeat;
    background-position: 100%;
}

/* Collapsible menus in top nav */
div.vectorMenu ul,
div#p-cactions div.menu ul,
div#p-cactions div.menu ul li a  {
background: #202020;
border: 1px #ff9900;
}

div.vectorTabs, div.vectorTabs span, div.vectorTabs li a, div.vectorMenu h3 a {
    background-image: none;
}

div.vectorMenu div.menu {
    border-color: transparent;
    top: 1em;
}

/* Top tabs */
div.vectorTabs ul {
    margin-top: 1.55em;
    background-image: none;
}

div.vectorTabs ul li {
    padding: 4px !important;
    height: 1em;
    margin-top: -1em;
    margin-right: 5px;
    background: black;
    transform: skew(-20deg,0deg);
    border: 1px solid #017f96;
    -moz-box-shadow:    inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow:         inset 0 0 20px #014d90;
}
/* commenting out in case we need to get back to it later
div.vectorTabs ul li.selected {
    border-style: solid;
    padding: 2px !important;
    margin-top: -0.96em;
    height: 1.2em;
    background: transparent;
    padding: 2px;
    border: 1px solid #017f96;
    transform: skew(-20deg,0deg);
}
*/

/* Search menu */
div#simpleSearch {
    background: transparent;
    border: 0px solid #404040;
    margin-top: 0.25em;
    color: #01a3e8;
    max-width: 15em;
    background: black;
    transform: skew(-20deg,0deg);
    border: 1px solid #017f96;
    -moz-box-shadow: inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow: inset 0 0 20px #014d90;
}

div#simpleSearch #searchInput {
    color: #01a3e8;
    font-weight: bold;
}

/* SIDEBAR STYLING */
div#mw-panel {   
    position: absolute;
    top: 150px;
    width: 10em;
    padding: 10px;
    margin-left: 0.7em;
     margin-top: 0.6em;
    border: 1px solid #017f96;
    border-radius: 5px;
    -moz-box-shadow:    inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow:         inset 0 0 20px #014d90;
    background: rgba(0, 0, 0, 0.78);
}
.skin-hydradark #mw-panel.collapsible-nav .portal h3 { background-image: url(https://static.wikia.nocookie.net/commons_hydra/images/7/72/Sidebar_expanded.png); }
.skin-hydradark #mw-panel.collapsible-nav .portal.collapsed h3 { background-image: url(https://static.wikia.nocookie.net/commons_hydra/images/3/37/Sidebar_collapsed.png); }

/* 1.29 Fixes */
div#mw-panel div.portal div.body,
.skin-hydradark #mw-panel.collapsible-nav div.portal,
.skin-hydradark div#mw-panel.collapsible-nav div#p-socialProfiles.portal,
.skin-hydradark #mw-panel.collapsible-nav #p-sitePromos.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,
div#mw-panel div.portal h3,
.skin-hydradark #mw-panel.collapsible-nav .portal h3 a,
.skin-hydradark #mw-panel.collapsible-nav .portal h3 a:visited,
.skin-hydradark #mw-panel.collapsible-nav div.portal h3 a,
.skin-hydradark #mw-panel.collapsible-nav div.portal h3 a:visited,
.skin-hydradark #mw-panel.collapsible-nav .portal.collapsed h3 a,
.skin-hydradark #mw-panel.collapsible-nav .portal.collapsed h3 a:visited,
.skin-hydradark div#mw-panel div.portal h3,
.skin-hydradark #mw-panel.collapsible-nav .portal.collapsed h3 {
    color: #01a3e8;
}

/* MAIN CONTENT AREA */

div#content {
    color: #F4FFF3;
    margin-left: 13em;
    margin-right: 1em;
    margin-top: 5em;
    border-color: #001821;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    border: 1px solid #017f96;
    -moz-box-shadow:    inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow:         inset 0 0 20px #014d90;
}

/* Tempo fix for small screens */
@media screen and (max-width: 720px) {
	div#content {
		margin-left: 0;
		margin-right: 0;
        margin-top: 0;
	}

	#p-search form, #p-search input {
	    margin-top: 0;
	}
}

/* FOOTER */
div#footer {
    border-color: transparent;
    background: transparent;
    margin-top: 1em;
    margin-bottom: 1em;
    border: 1px solid #017f96;
    -moz-box-shadow:    inset 0 0 20px #014d90;
    -webkit-box-shadow: inset 0 0 20px #014d90;
    box-shadow:         inset 0 0 20px #014d90;
}

div#footer #footer-info li {
color: white;
}

div#footer {
    margin-left: 13em;
}

div#footer ul {
    list-style-type: none;
    list-style-image: none;
    margin-left: 1em;
    margin-right: 2em;
    display: inline;
}

#footer-icons {
    float: left;
}

/* LINK STYLING */
a,
a:visited,
div#content a.extiw,
div#content a.extiw:visited,
div#content a.external,
div#content a.external:visited, 
.skin-hydradark #mw-indicator-mw-helplink a,
label.toctogglelabel {
	color: #01a3e8;
}

a.mw-selflink.selflink {
    filter: grayscale(100%);
    text-transform: uppercase;
    text-decoration: underline;
}

div#content a.new, #quickbar a.new {
    color: #A63232 !important;
}

a.new:visited, #p-personal a.new:visited {
    color: #a55858 !important;
}

div#netbar a,
footer#footer a {
    color: #aeaeae !important;
}

/* Sidebar and top */

.vectorTabs li a span,
div#mw-head a,
div#mw-head div.vectorTabs a,
div#mw-head div.vectorMenu a {
    color: #fff !important;
    font-weight: bold;
     text-transform: uppercase;
}

/* WIKITABLES */
.skin-hydradark .TablePager th, .skin-hydradark .mw-datatable th, .skin-hydradark table.mw_metadata th,
.skin-hydradark table.wikitable > * > tr > th {  
    background-color: rgba(0,0,0,0.5);
}

table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {

    border: 1px solid #01a3e8;
}


/* USER INTERFACE AKA MORE INTERACTIVE STUFF */
/* Editor styling */
/* MW 1.29 Hydra Dark Visual Editor Fix */
.oo-ui-barToolGroup.oo-ui-widget-enabled .oo-ui-widget-enabled, 
.oo-ui-popupToolGroup.oo-ui-widget-enabled, 
.oo-ui-popupWidget-popup,
.oo-ui-barToolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool,
.oo-ui-toolbar-position-top > .oo-ui-toolbar-bar {
    background: rgba(55, 55, 55, 1) !important;
}

.oo-ui-barToolGroup.oo-ui-widget-enabled .oo-ui-widget-enabled, .oo-ui-popupToolGroup.oo-ui-widget-enabled, .oo-ui-popupWidget-popup {   
    border-color: #c8ccd1;
}

.oo-ui-toolbar-actions .oo-ui-toolGroup {
    border-right: 0;
    border-left: 1px solid #2c2c2c !important;
}

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

/* Source Editor */
div.wikiEditor-ui,
.editOptions,
div.wikiEditor-preview-contents,
div.wikiEditor-preview-loading,
div.wikiEditor-ui-toolbar,
div.wikiEditor-ui-buttons,
div.wikiEditor-ui-controls  {
background: transparent;
}

.editOptions {  
    border-image: none;
    border-style: none solid solid;
    border-width: medium 1px 1px;
}

div.wikiEditor-ui {
    border: medium none;
}

div.wikiEditor-ui-buttons {
border-top: 0px solid white;
}

div.wikiEditor-ui-controls {
    border-bottom: 1px solid #01a3e8;
}

/* Page history */

table.diff {
background-color: transparent;
}

#pagehistory li.selected {
background-color: #151515;
border: 1px dashed #aaa;
}

td.diff-context {
background: transparent;
border-color: #e6e6e6;
color: #e6e6e6;
}

td.diff-addedline {
border-color: #01a3e8;
}

td.diff-addedline .diffchange {
    background: #067700;
}

td.diff-deletedline,
td.diff-deletedline .diffchange {
border-color: #990000;
}

/* Search results styling */

.skin-hydradark .mw-search-profile-tabs,
.skin-hydradark fieldset#mw-searchoptions,
.skin-hydradark .mw-search-profile-tabs {
    background-color: transparent;
    border: 1px solid #01a3e8;
}

.mw-ui-button.mw-ui-primary,
.mw-ui-button.mw-ui-progressive {
    background: #01a3e8;
    color: #fff;
    border: 1px solid #01a3e8;
}

.skin-hydradark .mw-search-profile-tabs div.search-types ul li.current a,
.skin-hydradark .mw-search-profile-tabs div.search-types ul li.current a  {
    color: #FFFFFF;
}

/* Preferences styling */

.skin-hydradark #preferences {
    background-color: transparent;
}

.skin-hydradark #preferences legend {
    color: white;
    font-weight: bold;
}

.htmlform-tip {
    color: whitesmoke;
}

.skin-hydradark #preftoc li {
    background-image: none;
    color: #01a3e8;
    font-weight: bold;
    text-shadow: 1px 1px black;
}

/* UI TWEAKING */
/* Frontpage pagename display */
body.page-Command_Conquer_Wiki h1.firstHeading {
    display:none;
}

/* Presentation and code fields */

pre, 
code,
.skin-hydradark .mw-code {
border: 1px solid #ddd;
color: white;
background-color: transparent;
border-style: solid;
}

.mw-highlight {
    background: rgba(0, 0, 0, 0.69);
    color: white;
}

/* Fieldsets, category links, tables of content */
fieldset,
ul#filetoc,
#catlinks,
div#toc, 
div.toc, 
div.mw-warning,
.skin-hydradark .mw-search-profile-tabs {
     background-color: transparent;
     border: 1px solid #01a3e8;
}

/* Category tree and custom bulletpoints */
ul {
list-style-type: disc;
}

.CategoryTreeToggle {
    color: #01a3e8;
}

/* Thumbs */

div.thumb {
    background: transparent !important;

}

div.thumbinner {

    background: transparent !important;
}

html .thumbimage,
li.gallerybox div.thumb  {
    background: transparent;
    border: 1px solid #01a3e8;
}

/* fix for black redirection arrow */
.redirectMsg > img {
    display: none;
}

.redirectMsg > span::before {
    content: url("https://static.wikia.nocookie.net/commons_hydra/images/a/aa/Redirectltr_white.png");
}

/* Achievement fixes */
#p-achievement-list, .achievement_category, .achievement_category_select {
    background: black;
}

/* Edit count fix */
#editcount > table * table,
#editcount > table * table th,
#editcount > table * table td {
    background-color: #000000 !important;
    padding: 0 12px 0 0.15em;
    border: 1px solid #01a3e8;
}

/* References highlighting */
ol.references li:target, sup.reference:target {
    background-color: #0B3800;
}

/* LEGACY */

/* Data table styling */ 

table.mw_metadata td, 
table.mw_metadata th {
border: 1px solid #01a3e8;
background-color: transparent;
}

.skin-hydradark .mw-datatable td {
background-color: transparent;
}

.skin-hydradark .mw-datatable tr:hover td {
background-color: #151515;
}

/* HydraDark default code */

pre {
    overflow: auto;
}

/* Notice templates */
.topNotice {
    border: 2px solid #ff9900;
    background: rgba(0, 0, 0, 0);
    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 #ff0000;
}

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

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

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

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

/* Make <ref> tags not increase line height */
.reference {
   line-height: 1em;
}



/* Tabber styling */
.tabberlive .tabbertab,
.tabber .tabbertab {
	background: black;
	border: 1px solid #017f96;
	-moz-box-shadow: inset 0 0 20px #014d90;
	-webkit-box-shadow: inset 0 0 20px #014d90;
	box-shadow: inset 0 0 20px #014d90;
    border-image: none;
}

ul.tabbernav {
    border-bottom: none;/*
	transform: skew(-20deg,0deg);*/
}

ul.tabbernav li a {
    background: none repeat scroll 0 0 #000000;
    border: 1px solid #017f96;
    border-image: none;
    margin-left: 3px;
    padding: 3px 0.5em;
    text-decoration: none;
}

ul.tabbernav li {
    display: inline;
    list-style: none outside none;
    margin: 0 0 0 7px;
}
.eva_box ul.tabbernav li {
	display: inline-block;
	padding-top: .5em;
}
.infobox ul.tabbernav li:first-child {
    margin: 0;
}
ul.tabbernav li a:link, ul.tabbernav li a:visited {
    color: #777;
}

ul.tabbernav li a:hover {
    background: none repeat scroll 0 0 #000;
    border-color: #017f96;
    color: #fff;
}

ul.tabbernav li.tabberactive a {
    background-color: #000;
    color: #fff;
}

ul.tabbernav li.tabberactive a,
ul.tabbernav li.tabberactive a:hover,
ul.tabbernav li.tabberactive a:link {
    background-color: #000000;
    border-bottom: 1px none;
    padding: 2px 0.5em 4px;
	-moz-box-shadow: inset 0 0 20px #014d90;
	-webkit-box-shadow: inset 0 0 20px #014d90;
	box-shadow: inset 0 0 20px #014d90;
}

ul.tabbernav li.tabberactive a:hover {
	color: #fff;
}

.noborders .tabberlive .tabbertab, .noborders .tabber .tabbertab { /* Used on the main page */
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

/* FIX FOR MEDIAWIKI UPDATE - 18 Nov 2018 */
div.vectorMenu h3 span:after { top: 0em; }
.vectorTabs #ca-unwatch.icon a, .vectorTabs #ca-watch.icon a { padding-top: 1.0em; }
#simpleSearch #searchButton, #simpleSearch #mw-searchButton { top: 0.7em; }

 .games-indicator { margin-top: -45px; }
Advertisement