Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

MediaWiki:Mobile.css

From Fishing: Barents Sea Wiki
Jump to: navigation, 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 mobile site */
/* Header and footer */
.header-container.header-chrome,
#mw-mf-page-center {
    background: transparent;
}

footer {
    /* 
    color: #e0e0e0;
    */
}

.overlay #secondary-button.user-button,
.header #secondary-button.user-button,
.overlay .user-button,
.header .user-button {
    background: transparent;
}

/* end header and footer */

.nomobile {
    display: none;
}

.client-js .toc-mobile {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 1px solid #505050 !important;
}

.mw-ui-button,
.last-modified-bar #mw-mf-last-modified {
    background-color: rgba(0, 0, 0, 0);
    /* 
    color: #e0e0e0;
    */
}

.overlay-enabled, #content {
    /* 
    background: #101010;
    color: #e0e0e0;
    */
}

a,
a:visited,
a.external {
    color: #5a93cc;
}

/* For hydradark only - makes the section collapse arrow visible */
/*
.mw-ui-icon-arrow::before {
    filter: invert(100%);
}
*/

.thumb,
#content_wrapper .thumb,
li.gallerybox div.thumb {
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #505050;
}

.content table th {
    background-color: rgba(0, 0, 0, 0);
}

.content table td,
.content table th {
    border: 1px solid #505050;
    padding: 3px;
}

.content table.wikitable {
    background-color: rgba(0, 0, 0, 0);
    margin: auto;
    margin-bottom: 1em;
}

.content table.wikitable > tr > th,
.content table.wikitable > tr > td,
.content table.wikitable > * > tr > th,
.content table.wikitable > * > tr > td {
    border: 1px solid #505050;
}

.content table.wikitable > tr > th,
.content table.wikitable > * > tr > th {
    background-color: inherit;
    padding: 3px;
}

/* Responsive main page stuff */
/********************
/* Main menu styles *
/********************/
.primary-navigation-enabled {
  border-left: 12px solid #505050 !important;
  background: #101010 !important;
}

#mw-mf-page-left {
  border-left: 12px solid #505050;
  background: transparent;
}

#mw-mf-page-left ul {
  background: transparent;
}

#mw-mf-page-left ul:first-child {
  border-bottom: 12px solid #505050;
}

#mw-mf-page-left ul li {
  border-top: 1px solid #505050;
  border-bottom: 1px solid #505050;
  background: transparent;
  text-shadow: none;
}

#mw-mf-page-left ul li a,
#mw-mf-page-left ul.hlist li a {
  border: none;
  color: #3674b3;
}

#mw-mf-page-left ul li:hover {
  border-left: 12px solid #aaaaaa;
  background: #505050;
}

#mw-mf-page-left ul.hlist li:hover {
  border: none;
}

#mw-mf-page-left ul li:hover a,
#mw-mf-page-left ul.hlist li:hover a {
  color: #ffffff;
}

/*********************
/* Front page styles *
/*********************/
.fpbox {
  border-radius: 5px;
  border: 2px solid #505050;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0) inset;
  background: transparent;
  color: inherit;
  margin: 5px;
  padding: 5px;
}

.fpbox .welcome {
  border-bottom: 1px solid #505050;
  background: transparent;
  /* color: #e0e0e0; */
  font-size: 150%;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px 0;
  padding: 0 0 5px 0;
}

.fpbox .heading {
  border-bottom: 1px solid #505050;
  background: transparent;
  /* color: #e0e0e0; */
  font-size: 132%;
  font-variant: small-caps;
  margin: 0 0 10px 0;
  padding: 0 0 5px 0;
}

.fpbox .heading .smalllink {
  color: #3674b3;
  font-weight: bold;
  font-size: 75%;
}

.fpbox hr {
  border: none;
  border-bottom: 2px solid #505050;
}

.fpplainbox {
  padding: 5px 8px 10px 8px;
  margin: 0 5px 10px 5px;
  vertical-align: top;
}

.fplinks {
  margin: -2px -3px;
}

.fplinks .linkslabel {
  border-bottom: 2px solid #505050;
  margin: 6px 3px 0 3px;
}

.fplink {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
}

/* Yeah, using display: table makes for a lot of extra markup, but it makes proportionate sizing and vertical centering a lot easier, so going with it */
.fplink .box {
  display: table;
  width: 100%;
  border-spacing: 2px 3px;
  border-collapse: separate;
}

.fplink .box .row {
  display: table-row;
}

.fplink .box .row .cell {
  background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
  /* 
    background-color: #000000;
    background-image: -moz-linear-gradient(center top , #151515 0%, #000000 100%);
    background-image:-webkit-gradient(linear, center top, left bottom, color-stop(0%,#151515), color-stop(100%,#000000));
    background-image:-webkit-linear-gradient(top, #151515 0%, #000000 100%);
    background-image:-o-linear-gradient(top, #151515 0%, #000000 100%);
    background-image:-ms-linear-gradient(top, #151515 0%, #000000 100%);
    background-image: linear-gradient(to bottom, #151515 0%, #000000 100%);
  */
  border: 2px solid #505050;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #505050 inset;
  /* color: #e0e0e0; */
  display: table-cell;
  font-weight: bold;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
}

.fplink.wide .box .row .cell {
  padding: 0 5px;
}

.fplink.image {
  width: 78px;
  height: 78px;
}

.fplink.image .box .row .cell {
  width: 70px;
  height: 70px;
  vertical-align: bottom;
}

.fplink.image .box .row .cell .image img {
  width: 70px;
  height: 70px;
}

.fplink.image .image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  font-size: 75%;
  z-index: 1;
}

.fplink.image a {
  z-index: 2;
}

.fplink a {
  display: block;
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3px 5px;
}

.fplink.image .image a {
  padding: 0;
}

.fplink.image .link a {
  border-top: 2px solid #505050;
  background: #ddddb7 !important;
}

.fplink.wide a {
  margin: 0 -5px;
}

.fplink.image a {
  top: auto;
}

.fpvideos {
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  max-width: 480px;
}

.fpvideo {
  position: relative;
  padding-top: 25px;
  padding-bottom: 56.25%;
  height: 0;
}

.fpvideo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@font-face {
	font-family: 'ArchitectsDaughter';
	src: local('ArchitectsDaughter'), local('ArchitectsDaughter'), url(/media/hydra/fonts/ArchitectsDaughter.ttf) format('truetype');
}
@font-face {
	font-family: 'OpenSans-Semibold';
	src: local('OpenSans-Semibold'), local('OpenSans-Semibold'), url(/media/hydra/fonts/OpenSans-Semibold.ttf) format('truetype');
}

/* base framework */
div#content {
  background-attachment:fixed;
  background:url(/media/f/fa/Bg_mobile.jpg);
  background-repeat:no-repeat;
  background-color:#000; 
}

div#bodyContent {
  padding:1em;
  margin-bottom:1em;
  position:relative;
  color:#E7E7E7;
  border:10px solid transparent;
  border-image:url(https://fishingbarentssea.gamepedia.com/media/4/46/Border.png) 6% stretch;
  border-radius:13px;
  background-color:rgba(51,93,102,0.9);
}

div.header-container.header-chrome {
  background-color: #274F55;
  background: linear-gradient(to bottom,#274F55,#335D66);
  border-bottom:1px solid #E2AB23;
  color:#fff;
  box-shadow:none;
}

form.header div.search-box {
  display:inline-block;
  margin:10px 20px;
}

div.header-container.header-chrome h1 {
  color:#fff;
}

.pre-content {
  padding-bottom:0;
}

h1#section_0 {
  margin-top:1em;
  text-align:center;
  background-color:#2F4449;
  border-radius: 10px 10px 0 0;
}

h1#section_0,
.fpbox .heading,
.fpbox .welcome,
.fpbox .linkslabel {
	font-family: OpenSans-SemiBold, sans-serif;
  color:#ddd;
}
/* end base framework */

/* Links */
div#content a:not(.new),
div#footer a,
div#content a:visited,
div#content a.extiw,
div#content a.extiw:visited,
div#content a.external,
div#content a.external:visited,
#mw-indicator-mw-helplink a {
  color:#ff967c;
}

div#content a:not(.new):hover,
div#footer a:not(.new):hover {
  color:#f7f7f7;
  text-decoration:none;
}

div#content a.new {
  color:#7F0000;
}

div#content a.new:hover {
  text-decoration:none;
  color:#7f0000;
}

.suggestions a {
  text-shadow:none;
}
/* End links */

/* front page (fp) styles */
.fpbox .heading,
.fpbox .welcome,
.fplinks .linkslabel {
	font-family: 'OpenSans-Semibold', sans-serif;
}

.fpbox {
  position:relative;
  border:0;
  background:none;
  box-shadow:none;
  padding:1.5em;
  margin-top:1em;
}

.fpbox::before {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  content:"";
  background:url(https://fishingbarentssea.gamepedia.com/media/a/ab/FP_box.png) no-repeat top left border-box;
  background-size:100% 100%;
  opacity:0.4;
}
/* end front page styles */

/* Footer */
footer {
  border-top:none;
  background: #1b1b1c ;
  color: rgb(240,240,240);
}
footer div.license a, #footer-info-desktop-toggle a, ul.footer-places a {
  color:#5A93CC !important;
}
footer div.license a:visited, #footer-info-desktop-toggle a:visited, ul.footer-places a:visited {
  color:#800074 !important;
}
.content table th {
    background-color: rgba(0, 0, 0, 0);
}
footer a, footer a.external {
    color:rgba(0 0 128);
}
footer a:visited {
    color:rgba(128 0 128);
}

footer .last-modified-bar {
  background-color:rgba(127,127,127,0.5);
}

.last-modified-bar a,
.last-modified-bar a:visited {
  color:#fff; 
}

/* End Footer */

/* Recent changes cleanup */
div.mw-changeslist table tbody td {
  border:1px solid #e6e6e6;
}

table.mw-enhanced-rc tr:not(:first-child) td:not(:last-child),
table.mw-enhanced-rc td:first-child:not(.mw-enhanced-rc) {
  border:0;
}

table.mw-enhanced-rc.mw-collapsible {
  margin-left:-0.3em;
}

table.mw-enhanced-rc.mw-collapsible td.mw-enhanced-rc,
table.mw-enhanced-rc td.mw-enhanced-rc:first-child {
  width:4.75em;
}
/* End recent changes cleanup */

/* other recent changes tweaks */
.mw-changeslist-legend {
  border-color:#e6e6e6;
}
/* end other recent changes tweaks */

/* Infobox styles */
.infobox {
  position:relative;
  float: right;
  width: 23em;
  margin-left: 1em;
  margin-right: 1em;
  margin-bottom: 0.5em;
  padding: 2px;
  border-radius:2px;
  border:2px solid #7e7e7e;
  background-color:rgb(51,93,102);
}

.infobox-table {
  width: 100%;
  padding: 0;
  background-color:rgba(0,0,0,0.2);
  border: 0;
}

.infobox-header {
  padding:0.5em;
	font-family: 'OpenSans-Semibold',sans-serif;
  color: #FFF8EF;
  background-color:#7B3431;
  font-size: 130%;
  text-align: center;
  background:url(/media/8/87/Tab_selected.png) no-repeat top center;
  background-size:100% 100%;
  background-position-y:-5px;
}

.infobox-section {
  color: #fff;
  background-color: #274F55;
  border:1px solid #000;
  box-shadow:inset 1px 1px 10px rgba(0,0,0,0.5);
}

.infobox-centered {
  text-align: center;
}

.infobox-row {
  vertical-align: top;
}

.infobox-row-name {
  text-align: left;
  white-space: nowrap;
}

.infobox-spacer {
  height: 0.5em;
}
/* End infobox styles */

/* Search overlay */
div.overlay.search-overlay {
  background-color:rgba(51,93,102,0.8);
  color:#0e0e0e;
}
/* End search overlay */


hr {
  color:#c80000;
}

/* Code tweaks */
code {
  background-color:#4C5760;
  color:#e6e6e6;
  border:1px solid #000
}
/* end code tweaks */

/* Table of contents (toc) */
div#toc {
  border: 3px outset #000;
  background-color:#3D6F7A;
}
/* End table of contents */


/* Ambox tweaks */
.ambox {
  background-color:#5E6772;
  color:#D6D8DB;
  border-top:1px solid #2E3C4D;
  border-bottom:1px solid #2E3C4D;
  border-right:1px solid #2E3C4D
}
/* end ambox tweaks */

#mw-mf-main-menu-button,
.cancel {
  background-color:#CCCCCC;
  padding-top:0.4em;
  padding-bottom:0.4em;
  border-radius:4px;
}

/* Page History */
ul#pagehistory > li {
  border:none;
}

#pagehistory li.selected {
  background-color:rgba(0,0,0,0.2);
  border:1px solid #484951;
}

table.diff {
  background-color:rgba(0,0,0,0.3)
}

.mw-plusminus-pos {
    color:#00A500;
}

.mw-plusminus-neg {
    color:#C60000;
}

td.diff-deletedline {
	background-color: #440000;
	border: none;
}

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

td.diff-addedline {
	background-color: #004400;
	border: none;
}

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