MediaWiki:Mobile.css

From Pathologic Wiki
Jump to navigation Jump to search

In other languages: Русский


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: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will affect users of the mobile site */

/*** text colors ***/
.skin-minerva #mw-mf-diffview #mw-mf-userinfo,
.skin-minerva #mw-mf-diffview #mw-mf-userinfo .mw-mf-edit-count,
.skin-minerva #mw-mf-diffview #mw-mf-userinfo .mw-mf-edit-count div,
.skin-minerva #mw-mf-page-center,
.skin-minerva .globalNotice,
.skin-minerva .last-modified-bar a,
.skin-minerva .last-modified-bar a:visited,
.skin-minerva .last-modified-bar.active a,
.skin-minerva .last-modified-bar.active a:visited,
.skin-minerva .list-header,
.skin-minerva .minerva-footer,
.skin-minerva .mw-echo-ui-notificationItemWidget-content-actions-timestamp,
.skin-minerva .mw-echo-ui-notificationItemWidget-content-message-header,
.skin-minerva .mw-mf-user,
.skin-minerva .oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button,
.skin-minerva .overlay-footer-container,
.skin-minerva .overlay-header-container,
.skin-minerva .page-list .component,
.skin-minerva .page-list .info,
.skin-minerva .page-list li > a,
.skin-minerva .page-list.side-list .list-thumb,
.skin-minerva .page-summary h2,
.skin-minerva .page-summary h3,
.skin-minerva .search-overlay,
.skin-minerva .search-overlay .results,
.skin-minerva .search-overlay .search-content,
.skin-minerva .search-overlay .search-feedback,
.skin-minerva .site-link-list .component,
.skin-minerva .site-link-list .info,
.skin-minerva .site-link-list li,
.skin-minerva .site-link-list li > a,
.skin-minerva .site-link-list.side-list .list-thumb,
.skin-minerva .topic-title-list .component,
.skin-minerva .topic-title-list .info,
.skin-minerva .topic-title-list li > a,
.skin-minerva .topic-title-list.side-list .list-thumb,
.skin-minerva footer .last-modified-bar,
.skin-minerva footer .last-modified-bar.active,
.skin-minerva nav ul li a,
.skin-minerva.navigation-enabled #mw-mf-page-center,
.skin-minerva.primary-navigation-enabled,
.skin-minerva.secondary-navigation-enabled,
body {
    color: #eee;
}

.action-edit #editpage-copywarn,
.action-edit #mw-anon-edit-warning,
.action-edit #section_0,
.action-edit .diff-ntitle,
.action-edit .diff-otitle,
.action-edit .mw-editTools,
.action-edit .mw-editnotice,
.action-edit .preview-limit-report-wrapper,
.action-submit #editpage-copywarn,
.action-submit #mw-anon-edit-warning,
.action-submit #section_0,
.action-submit .diff-ntitle,
.action-submit .diff-otitle,
.action-submit .mw-editTools,
.action-submit .mw-editnotice,
.action-submit .preview-limit-report-wrapper,
.skin-minerva .heading-holder .tagline,
.skin-minerva .mw-echo-ui-notificationItemWidget-content-message-body,
.skin-minerva .oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover,
.skin-minerva nav ul li a:visited {
    color: #ccc;
}

/*** mobile front page collapse ***/
.fpbox.mobilecollapsible .heading a.togglecollapse {
    display: block;
    padding: 0 0 0 15px;
}

.fpbox.mobilecollapsible .heading a.togglecollapse:active,
.fpbox.mobilecollapsible .heading a.togglecollapse:hover {
    text-decoration: none;
}

.fpbox.mobilecollapsible.collapsed .heading {
    border: none;
    margin-bottom: -4px;
}

.fpbox.mobilecollapsible .heading a {
    position: relative;
} 

.fpbox.mobilecollapsible .heading a:before {
    content: "";
    width: 12px;
    height: 12px;
    background-image: url("/skins/Vector/images/arrow-down.png");
    background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E %3Cpath d=%22M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5%22 fill=%22%23222%22/%3E %3C/svg%3E");
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -6px;
}

.fpbox.mobilecollapsible.collapsed .heading a:before {
    transform: rotate(-90deg);
}

.fpbox.mobilecollapsible.collapsed .body {
    display: none;
}

/*** navboxes ***/
table.navbox {
    border: 1px solid #aaaaaa;
    clear: both;
    font-size: 88%;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%;
    display: table !important;
}

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

.navbox-abovebelow,
.navbox-title,
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(255, 255, 255, 0.2);
}

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

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

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

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

/* Even row striping */
.navbox-even {
    background: rgba(0, 0, 0, 0.05);
}

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

/*** amboxes ***/
.ambox {
    background-color: #282828;
    border-top:1px solid #484951;
    border-right:1px solid #484951;
    border-bottom:1px solid #484951;
    border-collapse: collapse;
    font-size: 95%;
    margin: 0 auto 2px;
    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 0 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;
}

/*** front page styles ***/
.fpmain {
    width: 100%;
    overflow: hidden;
}

.fpbox {
    margin: 5px;
    padding: 5px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius:2px;
}

.fpbox.plain {
    background: transparent;
    border: none;
    box-shadow: none;
}

.fpbox .heading,
.fpbox .mainheading,
.fpbox .welcome {
    margin: 0 0 10px;
    padding: 0 0 5px;
    overflow: auto;
    border: 0;
    border-bottom: 1px solid #505050;
}

.fpbox .mainheading,
.fpbox .welcome {
    font-size: 150%;
    font-weight: bold;
}

.fpbox .heading {
    text-align: center;
    font-size: 132%;
}

.linkslabel {
    margin: 15px 5px 5px;
    padding: 0 0 5px;
    border-bottom: 2px solid #505050;
}

/* auto-resize front page video to fit smaller columns */
.fpbox .embedvideo,
.fpbox .embedvideowrap {
    width: 100% !important;
    max-width: 480px;
    margin: 0 auto;
}

.fpbox .embedvideowrap iframe {
    width: 100% !important;
}

/*** Template:FP link styles ***/
.fplinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    text-align: center;
}

.fplink-outer {
    padding: 5px;
    flex-basis: calc(25% - 10px);
    width: calc(25% - 15px);
    min-width: 115px;
    display: inline-block;
    vertical-align: middle;
}

.fplink-wide {
    flex-basis: calc(33% - 10px);
    width: calc(33% - 15px);
}

.fplink-fullwidth {
    flex-basis: 100%;
    width: calc(100% - 15px);
    font-weight: bold;
}

.fplink {
    padding: 0.5em;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: table;
    background: rgba(30,30,30,0.3);
    border: 1px solid #505050;
}

.fplink-plain {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

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

.fplink a{
    display: table-cell;
    vertical-align: middle;
}

.fplink img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

/*****************
* Base framework *
******************/
.nomobile {
  display:none;
}

body,
.primary-navigation-enabled {
    background: url("https://static.wikia.nocookie.net/pathologic_gamepedia/images/1/1f/Background.jpg/revision/latest") repeat top left #a77647;
  background-size: cover;
    color: #f1eee9;
}

div#content,
div#mw-mf-page-center,
body.navigation-enabled #mw-mf-page-center {
  background:transparent;
}

div#bodyContent,
div#bodyContent table,
div.content-unstyled {
  color:#E7E7E7;
}

div#bodyContent,
div.content-unstyled {
  padding:1em;
  margin-bottom:1em;
  margin-left:0;
  max-width:calc(100% - 32px); /* 100% - (border + 32px) */
  background: rgba(5,0,0,0.7);
  border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
  box-shadow: 6px 9px 14px -7px rgba(0,0,0,0.75);
  color: #f1eee9;
}

.pre-content {
  padding-left:1em;
  padding-right:1em;
}

#page-actions {
  border-bottom:none;
  margin-left:-1em;
}

footer .last-modified-bar {
  background-color: #070707;
  border-bottom:#f48020 1px solid;
}

footer .last-modified-bar a {
  color:#D7DEE8;
  text-shadow:1px 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.3), 1px -1px 1px rgba(0,0,0,0.3), -1px -1px 1px rgba(0,0,0,0.3);
}

.page-list .info,
.topic-title-list .info,
.site-link-list .info,
.page-list .component,
.topic-title-list .component,
.site-link-list .component {
  color:#A2A4A5;
}

body nav {
  background-color:#111;
}

nav div.menu ul li {
  background-color:#000;
}

nav div.menu ul li a,
nav div.menu ul li a:visited {
  color:#fff;
}

.notification-count {
  background:none;
}

select {
   background:#fff;
}

/*********************
* End base framework *
**********************/

/**************
* Main header *
***************/
div.header-container.header-chrome {
  background: rgba(33, 33, 33, 0.7);
  border-bottom:1px solid #373F3E;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.8);
}

.mw-ui-icon.mw-ui-icon-element {
  background-size:100% 100%;
  border:none;
  height:2em;
  padding-top:0.5em;
  margin-right:5px;
}

a#mw-mf-main-menu-button::before {
  filter:invert(100%);
}

/******************
* End main header *
*******************/

/*******************
* Gamepedia 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#curse-footer .footer-box {
  flex:unset;
}

footer#curse-footer div.footer-box ul li {
  white-space:nowrap;
}
/***********************
* End Gamepedia footer *
************************/

/********
* Links *
*********/
a,
a:visited,
div#content a.extiw,
div#content a.extiw:visited,
div#content a.external,
div#content a.external:visited,
.pseudo-link {
  color:#caa976;
}

/************
* End Links *
*************/

/***********
* Headings *
************/
h1#section_0,
.content h1,
.content h2,
.fakeh2 {
    color: #fafafa;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: #fafafa;
    border-bottom-color: rgba(136,115,16,0.5);
}

.fakeh2 {
  font-size: 1.5em;
  margin: 0;
  margin-top: 1em;
  margin-bottom: 0.25em;
  line-height: 1.3;
  padding: 0;
  color: #fafafa;
  background: none;
  font-weight: normal;
  overflow: hidden;
}
/***************
* end headings *
****************/

/*****************
* Search overlay *
******************/
div.overlay.search-overlay {
  background:linear-gradient(to bottom, rgba(0,0,0,0.8) 90%, transparent);
  background-color:rgba(0,0,0,0.8);
  color:#eee;
}
div.overlay.search-overlay h3 {
  text-shadow:none;
}
.overlay-header {
  border-top:0;
}

.search-overlay .results,
.search-overlay .search-feedback {
  background-color:#000;
}
/*********************
* End search overlay *
**********************/

/***************
* Page History *
****************/
table.diff,
td.diff-otitle,
td.diff-ntitle {
  background-color:rgba(0,0,0,0.3)
}

.list-header {
  background-color:rgba(127,127,127,0.2);
}

#mw-mf-diffview #mw-mf-userinfo {
    z-index:1;
    background-color:#282828;
    border-top:1px solid #7f7f7f;
}

/**************
* end history *
***************/

/*********************
* Tablepager styling *
**********************/
table.TablePager td {
  border:1px solid #373F3E;
}

table.TablePager tr th {
  background-color:#849895;
  color:#0F1214;
  border:1px solid #000;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.8);
}

table.TablePager tbody tr td {
  background-color:rgba(21,21,19,0.1);
}
/*************************
* end tablepager styling *
**************************/

/********************
* wikitable styling *
*********************/
.content table.wikitable {
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.1);
  color: #160E01;
}

.content table.wikitable > tbody > tr > th
.content table.wikitable > tr > th,
.content table.wikitable > * > tr > th {
  border: ridge;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: bolder;
}

.content table.wikitable > tbody > tr > td {
  border: 1px ridge #ffffff;
}
/************************
* End wikitable styling *
*************************/

/*******************
* Thumnbail tweaks *
********************/
div.thumbinner,
li.gallerybox div.thumb {
  background: rgba(21, 17, 13, 0.6);
  border: 1px solid #15110D;
}

ul.mw-gallery-nolines li.gallerybox div.thumb {
  background:none;
  border:none;
  box-shadow:none;
}
/***********************
* End thumbnail tweaks *
************************/

/**********
* Filetoc *
***********/
ul#filetoc {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #2c74ae;
}
/**************
* End filetoc *
***************/

/**********************************
* Table of contents (toc) styling *
***********************************/
div#toc,
.client-js div.toc-mobile {
  border:1px solid #424C4B;
  background-color: rgba(0, 0, 0, 0.2);
}

div#toc h2 {
  border:0;
}
/******************
* End toc styling *
******************/

/***************************
* Used by [[Template:Key]] *
****************************/
/* Dark Wiki Variation */
.keysDark {
  color:black; 
  border: 1px solid rgb(170, 170, 170); 
  box-shadow: 0.1em 0.2em 0.2em rgb(221, 221, 221); 
  border-radius: .2em; 
  background-image: linear-gradient(to bottom, rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238)); 
  background-color: rgb(249, 249, 249); 
  padding: 0.1em 0.6em 0.1em 0.6em; 
  margin-right:2px; 
  font-size:85%; 
  font-family:inherit; 
  font-style:normal;
}

/* Light Wiki Variation */
.keysLight {
  color:white; 
  border: 1px solid rgb(0, 0, 0); 
  box-shadow: 0.1em 0.2em 0.2em rgb(0, 0, 0); 
  border-radius: .2em; 
  background-image: linear-gradient(to bottom, rgb(0, 0, 0), rgb(15, 15, 15), rgb(30, 30, 30)); 
  background-color: rgb(30, 30, 30); 
  padding: 0.1em 0.6em 0.1em 0.6em; 
  margin-right:2px; 
  font-size:85%; 
  font-family:inherit; 
  font-style:normal;
}

/******************************
* End Template:Key coloration *
*******************************/

/********************
* Front page tweaks *
*********************/
#fpimages .slideboxlightshow,
#fpimages .slideboxlightshow a.sbls-image,
#fpimages .slideboxlightshow img {
  max-width:100%;
}

.fpheader img {
  display:none;
}

/************************
* End front page tweaks *
*************************/