MediaWiki:Mobile.css

/********** Note that this loads before skin CSS, so selectors need to be more specific than the skin to override it.

There will still be a 'white flash' as the default (light) mobile css initially loads. To avoid this, you should first enable the Gadgets extension, then add gphelp:MediaWiki:Gadget-darkmobile to your wiki and rename this css file to MediaWiki:Gadget-darkmobile.css
 * root {
 * root {

--body-background-color: #333; --body-background-image: url("https://static.wikia.nocookie.net/fromthedepths_gamepedia/images/5/5d/Mobile_background.jpg/revision/latest"); --body-background-attachment: fixed; --body-background-size: 100%; --body-background-position: top center; --body-background-repeat: no-repeat; --body-color: #fff; --body-secondary-color: #ccc;

--content-background: rgba(0,0,0,0.85); --header-background: #222; --footer-background: #111; --interface-border: #000; --search-background: #222;

--link-color: #007BFF; --link-redlink-color: #B33D20;

--navigation-selected: #4275d6; --navigation-link-background: #222;

--last-modified-background: #555; --invert-icons: 1;

--infobox-border: 1px solid rgba(255,255,255, 0.2); --infobox-background: rgba(255,255,255,0.1); --infobox-header-background: #0088CC; --infobox-header-color: #000; --infobox-label-background: #40424E; --infobox-label-color: #fff;

--navbox-background: rgba(255,255,255, 0.2); --navbox-border: 1px solid rgba(255,255,255, 0.2); --navbox-header-color: #fff; --navbox-header-background: #0088CC; --navbox-secondary-background: #40424E;

--wikitable-alt-background: rgba(255,255,255, 0.15); --wikitable-background: rgba(255,255,255, 0.1); --wikitable-border: 1px solid rgba(255,255,255, 0.3); --wikitable-border-collapse: collapse; --wikitable-border-spacing: 0; --wikitable-header-background: #0088CC; --wikitable-header-color: #000;

--code-background: rgba(255,255,255, 0.1); --code-color: #fff;

--doc-background: rgba(255,255,255, 0.1); --doc-border: 1px solid #4a83b0;

--ambox-background: rgba(120,120,120,0.3); --ambox-blue: #1e90ff; --ambox-gray: #bbbbaa; --ambox-green: #228b22; --ambox-orange: #f28500; --ambox-purple: #9932cc; --ambox-red: #b22222; --ambox-yellow: #f4c430; }

/*** mobile-specific style classes ***/ .nomobile { display: none; }

.mobileleft { text-align: left; }

.mobilecenter { text-align: center; }

.mobileright { text-align: right; }

/********** interface /*** 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 .header-container.header-chrome, .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 > .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, a, a:not([href]), body { color: var(--body-color); }

.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: var(--body-secondary-color); }

.skin-minerva .mw-ui-anchor.mw-ui-progressive, .skin-minerva .mw-ui-anchor.mw-ui-progressive:active, .skin-minerva .mw-ui-anchor.mw-ui-progressive:focus, .skin-minerva nav ul.hlist li a, a, a.external, a.extiw, a:visited { color: var(--link-color); }

a.new { color: var(--link-redlink-color); }

/** code/pre tags **/ .mw-code, code, kbd, pre, samp, tt { font-family: monospace; font-size: 110%; color: var(--code-color); }

.mw-highlight { background: transparent; }

.mw-code, code, pre, pre.mw-code { background: var(--code-background); border-color: var(--code-color); }

.mw-code a, code a { color: var(--code-color); text-decoration: underline double; }

/*** interface colors ***/ .client-js .skin-minerva .toc-mobile, .skin-minerva #mw-mf-diffview #mw-mf-userinfo, .skin-minerva .globalNotice, .skin-minerva .header-container.header-chrome, .skin-minerva .list-header, .skin-minerva .mw-echo-ui-bundleNotificationItemWidget-group, .skin-minerva .mw-echo-ui-crossWikiNotificationItemWidget-group, .skin-minerva .notifications-overlay .overlay-content, .skin-minerva .overlay-header-container, .skin-minerva .search-overlay .results, .skin-minerva .search-overlay .search-content, .skin-minerva .search-overlay .search-feedback { background-color: var(--header-background); }

.skin-minerva .minerva-footer, .skin-minerva .overlay-footer-container, .skin-minerva nav { background-color: var(--footer-background); }

.client-js .skin-minerva .toc-mobile, .skin-minerva #mw-mf-diffview #mw-mf-userinfo, .skin-minerva .header, .skin-minerva .header-container, .skin-minerva .minerva-footer, .skin-minerva .mw-echo-ui-bundleNotificationItemWidget-separator, .skin-minerva .mw-echo-ui-crossWikiNotificationItemWidget-separator, .skin-minerva .mw-echo-ui-notificationItemWidget, .skin-minerva .mw-echo-ui-notificationItemWidget:last-child, .skin-minerva .overlay-footer-container, .skin-minerva .page-list li, .skin-minerva .search-overlay .search-content, .skin-minerva .site-link-list li, .skin-minerva .topic-title-list li, .skin-minerva footer .last-modified-bar, .skin-minerva footer > .post-content > .skin-minerva nav .secondary-action, .skin-minerva nav ul li, .skin-minerva.ns-special .content-header, h2 { border-color: var(--interface-border); }

.skin-minerva .search-overlay, .skin-minerva.search-overlay { background: var(--search-background); }

.skin-minerva #mw-mf-page-center, .skin-minerva.navigation-enabled #mw-mf-page-center, .skin-minerva.primary-navigation-enabled, .skin-minerva.secondary-navigation-enabled, body { background-color: var(--body-background-color); background-image: var(--body-background-image); background-size: var(--body-background-size); background-attachment: var(--body-background-attachment); background-position: var(--body-background-position); background-repeat: var(--body-background-repeat); }

.skin-minerva #content, .skin-minerva .mw-echo-ui-notificationsInboxWidget-toolbarWrapper, .skin-minerva.ns-special #content, .skin-minerva.ns-special #content form, .skin-minerva.ns-special .pre-content { background: var(--content-background); }

/*** basics ***/ .center { text-align: center; }

.skin-minerva h1, .skin-minerva .content h1, .skin-minerva .content h2, .skin-minerva .pre-content h1, body { font-family: sans-serif; color: var(--body-color); }

/*** header and footer ***/ .header { border-width: 1px 0; border-style: solid; }

.header-container.header-chrome { box-shadow: 0 1px 1px rgba(100,100,100,0.2); }

@supports (position:sticky) { .header-container.header-chrome { position: sticky; top: 0; z-index: 1000; }

.overlay-enabled .header-container.header-chrome { position: static; }

.navigation-enabled .header-container.header-chrome { z-index: 0; } }

.skin-minerva .globalNotice { overflow: hidden; padding: 0 0.5em 0.25em; }

.skin-minerva .notification-count { background: transparent; }

/*** notifications ***/ .skin-minerva .mw-echo-ui-bundleNotificationItemWidget-separator, .skin-minerva .mw-echo-ui-crossWikiNotificationItemWidget-separator, .skin-minerva .mw-echo-ui-notificationItemWidget, .skin-minerva .mw-echo-ui-notificationItemWidget:last-child { background: rgba(0,0,0,0.1); }

.skin-minerva .mw-echo-ui-notificationItemWidget-unread { background: rgba(0,0,0,0.3); }

.skin-minerva .mw-echo-ui-notificationItemWidget:hover { background: rgba(0,0,0,0.2); }

.skin-minerva .mw-echo-ui-notificationItemWidget-unread:hover { background: rgba(0,0,0,0.4); }

/*** search ***/ .skin-minerva .page-list li .watch-this-article, .skin-minerva .site-link-list li .watch-this-article, .skin-minerva .topic-title-list li .watch-this-article { top: 50%; margin-top: -0.75em; }

/*** navigation ***/ .skin-minerva.navigation-enabled .transparent-shield { background: rgba(50,50,50,0.9); }

.skin-minerva nav ul li { background: var(--navigation-link-background); width: 100%; }

.skin-minerva nav ul li a:hover { box-shadow: inset 4px 0 0 0 var(--navigation-selected); }

/*** last-modified bar ***/ .skin-minerva footer .last-modified-bar { background-color: var(--last-modified-background); }

/* recently changed page last-modified bar*/ .skin-minerva footer .last-modified-bar.active { background: #00af89; }

/*** page history and diffs ***/ .skin-minerva .minoredit { color: #808080; }

.skin-minerva #mw-mf-diffview #mw-mf-userinfo { z-index: 100; box-shadow: 0 -1px 3px rgba(0,0,0,0.6); opacity: 0.95; }

/*** editor ***/ .skin-minerva .editor-overlay-ve { color: #000; }

.skin-minerva .editor-overlay .wikitext-editor { background: rgba(0,0,0,0.1); } /* --- Template:Doc --- */ .doc, .doc-footer { background: var(--doc-background); border: var(--doc-border); margin: 0 auto 1em; border-radius: 1em; padding: 1em; }

.doc-footer { margin-bottom: 0; }

.doc-header { padding-bottom: 3px; border-bottom: var(--doc-border); margin-bottom: 1ex; } /********** content /*** mobile front page collapse ***/ .fpbox.mobilecollapsible .fpbox-heading a.togglecollapse { display: block; padding: 0 0 0 15px; }

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

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

.fpbox.mobilecollapsible .fpbox-heading a { position: relative; color: var(--body-color); }

.fpbox.mobilecollapsible .fpbox-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 .fpbox-heading a:before { transform: rotate(-90deg); }

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

table.collapsed tr.collapsible { display: none; } /*** amboxes ***/ /* --- Amboxes --- */ .ambox { background-color: var(--ambox-background); border-width: 0 0 0 10px; border-style: solid; border-collapse: collapse; font-size: 95%; margin: 0 auto 2px; width: 80%; }

.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-gray { border-left-color: var(--ambox-gray); }

.ambox-blue { border-left-color: var(--ambox-blue); }

.ambox-red { border-left-color: var(--ambox-red); }

.ambox-orange { border-left-color: var(--ambox-orange); }

.ambox-yellow { border-left-color: var(--ambox-yellow); }

.ambox-purple { border-left-color: var(--ambox-purple); }

.ambox-green { border-left-color: var(--ambox-green); } /* Ambox small text */ .amsmalltext { font-size: smaller; margin-left: 0.8em; margin-top: 0.5em; } /** for 'edit this page' and 'discussion' link in template:cleanup etc **/ .pagetab { border: 1px solid var(--body-color); padding: 0.25ex 1ex; font-size: 95%; } /* copyright images tweak */ .copyright-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22%3E%3Cpath d=%22M100 200C44.772 200 0 155.228 0 100S44.772 0 100 0s100 44.772 100 100-44.772 100-100 100zm0-179.115c-43.694 0-79.115 35.421-79.115 79.115 0 43.694 35.421 79.115 79.115 79.115 43.694 0 79.115-35.421 79.115-79.115 0-43.694-35.421-79.115-79.115-79.115zm0 108.599c20.627 0 27.518-18.427 27.518-18.427h26.536s-7.847 43.734-54.054 43.734c-30.532 0-55.283-24.751-55.283-55.282 0-30.532 24.751-55.283 55.283-55.283 45.365 0 53.317 41.769 53.317 41.769h-26.781S118.966 69.533 100 69.533c-16.555 0-29.975 13.421-29.975 29.976s13.42 29.975 29.975 29.975z%22/%3E%3C/svg%3E%0A"); background-size: 100%; width: 32px; height: 32px; filter:invert(var(--invert-icons,0)); }

/* --- tables --- */ table.wikitable { border-collapse: var(--wikitable-border-collapse); border-spacing: var(--wikitable-border-spacing); background: transparent; border: var(--wikitable-border); }

.mediawiki table.wikitable > * > tr > td, .mediawiki table.wikitable > * > tr > th, .mediawiki table.wikitable > tr > th { border: var(--wikitable-border); }

.mediawiki table.wikitable > * > tr > th, .mediawiki table.wikitable > tr > th { background: var(--wikitable-header-background); color: var(--wikitable-header-color); text-align: center; }

.mediawiki table.wikitable > * > tr > td { background: var(--wikitable-background); padding: 0.2em 0.4em; }

.mediawiki table.jquery-tablesorter th.headerSort { background-image: none!important; padding-right: 1.4em; }

.mediawiki table.jquery-tablesorter th.headerSort:after { content: '\f0dc'; font-family: 'FontAwesome'; display: inline-block; width: 1em; margin-right: -1em; text-align: right; }

.mediawiki table.jquery-tablesorter th.headerSortUp:after { content: '\f0de'; }

.mediawiki table.jquery-tablesorter th.headerSortDown:after { content: '\f0dd'; }

.mediawiki table.jquery-tablesorter th.unsortable, .mediawiki th.header-bg.th.unsortable { background: var(--wikitable-header-background); } /** Cargo tables **/ .mediawiki table.cargoTable { border-collapse: collapse; color: var(--body-color); background: transparent; }

.mediawiki table.cargoTable td.even, .mediawiki table.cargoTable td.odd { background: transparent; }

.cargoTable tr:nth-child(even) { background: var(--wikitable-alt-background); }

.mediawiki table.cargoTable > * > tr > th, .mediawiki table.cargoTable > tr > th { background: var(--wikitable-header-background); color: var(--wikitable-header-color); text-align: center; font-variant: small-caps; border: var(--wikitable-border); }

.mediawiki table.cargoTable > * > tr > td { border: var(--wikitable-border); padding: 0.2em 0.4em; color: var(--body-color); } /** Dynamic Tables **/ table.cargoDynamicTable { margin-top: 1em; border: 0 solid transparent; }

table.dataTable tfoot td, table.dataTable tfoot th, table.dataTable thead td, table.dataTable thead th { background: var(--wikitable-header-background)!important; border: var(--wikitable-border)!important; }

table.dataTable tbody tr { color: var(--body-color); background: transparent; }

table.dataTable.display tbody tr.odd, table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1, table.dataTable.stripe tbody tr.odd { background: transparent; text-align: center; }

table.dataTable.display tbody tr.even, table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1, table.dataTable.stripe tbody tr.even { background: var(--wikitable-alt-background); text-align: center; }

table.dataTable.display tbody tr:hover, table.dataTable.hover tbody tr:hover { background: var(--wikitable-header-background); }

.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .dataTables_processing { color: var(--wikitable-header-color); padding: 0.5em 0; }

.dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--link-color)!important; }

.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--wikitable-header-background); }

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color: var(--body-color) !important; background: var(--wikitable-header-background); border: var(--wikitable-border); } /** Tablepager **/ .mediawiki .TablePager th { background: var(--wikitable-header-background); color: var(--wikitable-header-color); border: var(--wikitable-border); padding: 0 0.15em; }

.mediawiki .TablePager td { background: var(--wikitable-background); border: var(--wikitable-border); color: var(--body-color); }

.mediawiki .TablePager tr:hover td { background: var(--wikitable-header-background)!important; color: var(--wikitable-header-color); } /** Miscellaneous front page fixes **/ .fpbox .embedvideowrap { width: 100%!important; max-width: 480px; margin: 0 auto; }

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

.fpbox .slideboxlightshow { max-width: 100%; margin: 0 auto; }

.fpbox .slideboxlightshow a, .fpbox .slideboxlightshow img { max-width: 100%!important; }

/*** invert icons for dark theme ***/ .oo-ui-iconElement-icon, .skin-minerva .copyright-icon, .fpbox.mobilecollapsible .fpbox-heading a::before { filter:invert(var(--invert-icons,0)); }

.mw-echo-ui-notificationItemWidget-icon, .mw-echo-ui-toggleReadCircleButtonWidget-circle, .mw-ui-icon:before { filter:brightness(calc(2 * var(--invert-icons,0))); }

.mw-echo-ui-notificationsInboxWidget-main-toolbar-top .oo-ui-iconElement-icon, .mw-mf-user:before, .search-overlay .clear:before { filter:none; } /* custom styles */
 * 1) mw-mf-diffview .meta:before,

.fpbox { background: rgba(255,255,255,0.05); width: calc(100% - 0.5em); padding: 0 1em 1em; box-sizing: border-box; position: relative; border-radius: 22px 2px; border: 1px solid #4a83b0; border-left: 1px solid transparent; margin: 0.25em 0.25em 0.25em 15px; }

border-radius: 2px 22px; border-right: 1px solid transparent; border-left: 1px solid #4a83b0; margin-right: 15px; }
 * 1) fp-section2 .fpbox {

.fpbox-main { border: 0; border-radius: 2px; line-height: 1; padding: 0; background: radial-gradient(closest-side, rgba(255,255,255,0.25), transparent); }

.fpbox-heading { background: rgba(255,255,255,0.05); border-bottom: 1px solid #fff; font-size: 150%; padding: 0.25em; margin-bottom: 0.5em; text-align: center; }

.fpbox-main .fpbox-heading { background: none; border: 0; display: grid; grid-template-columns: 1fr 8em 1fr; grid-column-gap: 1em; align-items: baseline; margin: 0; line-height: 1; }

.fp-welcome-image { margin: 0 0 -1em; width: 8em; height: auto; }

.fp-welcome-left { text-align: right; }

.fp-welcome-center a { vertical-align: -50%; }

.fp-welcome-right { text-align: left; }

/* infoboxes */ .infobox-table { float: right; clear: right; margin: 0 0 0.5em 0.5em; width: 300px; background: var(--infobox-background); border: var(--infobox-border); border-collapse: collapse; }

.infobox-table td, .infobox-table th { border: var(--infobox-border); padding: 0.2em 0.4em; }

.infobox-table th { background: var(--infobox-label-background); color: var(--infobox-label-color); }

.infobox-table .infobox-title { text-align: center; background: var(--infobox-header-background); color: var(--infobox-header-color); }

.infobox-table img { max-width: 100%; height: auto; }

/* navboxes */ .navbox { background: var(--navbox-background); border: var(--navbox-border); font-size: 90%; margin: 1em 0; width: 100%; border-collapse: collapse; }

.navbox td, .navbox th { border: var(--navbox-border); padding: 0.2em 0.4em;

}

.navbox th { background: var(--navbox-secondary-background); }

.navbox .navbox-header { background: var(--navbox-header-background); color: var(--navbox-header-color); }

.navbox-header a { color: var(--navbox-header-color)!important; }