MediaWiki:Mobile.css

Revision as of 14:46, 13 August 2019 by Teamtoto (talk | contribs)

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.
/**********
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
**********/
@font-face {
  font-family: 'Source Code Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Source Code Pro'), local('SourceCodePro-Regular'), url(https://fonts.gstatic.com/s/sourcecodepro/v9/HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevWnsUnxg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
	--body-background-color: #190d07;
	--body-background-image: url("/media/5/5d/Mobile_background.jpg");
	--body-background-attachment: fixed;
	--body-background-size: cover;
	--body-background-position: center center;
	--body-background-repeat: no-repeat;
	--body-color: #c1d3d6;
	--body-secondary-color: #ccc;

	--content-background: radial-gradient(rgba(22, 60, 51,0.8),rgba(6, 28, 23,0.8));
	--header-background: rgba(22, 60, 51,1);
	--footer-background: rgba(22, 60, 51,0.8);
	--interface-border: #000;
	--search-background: #212121;

	--link-color: #7fbadd;
	--link-redlink-color: #bb312c;

	--navigation-selected: rgba(108, 180, 122,0.5);
	--navigation-link-background: rgba(108, 180, 122,0.1);

	--last-modified-background: #444;
	--invert-icons: 1;
	
	--fpbox-background: transparent;
	--fpbox-border: 1px solid rgba(108, 180, 122,0.2);

	--fpheading-background: #061c17;
	--fpheading-border: 1px solid #c1d3d6;
	--fpheading-color: #c9c9c9;
	--fpheading-font: "Source Code Pro","Courier new",Courier,monospace;

	--fplink-background: rgba(108, 180, 122,0.2);
	--fplink-border: 0;
	--fplink-fullwidth-background: rgba(0,0,0, 0.3);

	--infobox-border: 1px solid rgba(108, 180, 122,0.2);
	--infobox-details-background: rgba(108, 180, 122,0.3);
	--infobox-details-color: #fff;
	--infobox-header-background: rgba(108, 180, 122,0.5);
	--infobox-header-color: #fff;
	--infobox-label-background: rgba(108, 180, 122,0.2);
	--infobox-label-color: #fff;

	--navbox-alt-background: rgba(108, 180, 122,0.1);
	--navbox-background: rgba(6, 28, 23,0.2);
	--navbox-border: 1px solid rgba(108, 180, 122,0.2);
	--navbox-color: #c1d3d6;
	--navbox-secondary-background: rgba(108, 180, 122,0.2);

	--wikitable-alt-background: rgba(100,100,100, 0.6);
	--wikitable-background: rgba(6, 28, 23,0.2);
	--wikitable-border: 1px solid rgba(108, 180, 122,0.3);
	--wikitable-border-collapse: collapse;
	--wikitable-border-spacing: 0;
	--wikitable-header-background: rgba(108, 180, 122,0.2);
	--wikitable-header-color: #fff;

	--code-background: rgba(6, 28, 23,0.5);
	--code-color: #c1d3d6;

	--doc-background: rgba(6, 28, 23,0.2);
	--doc-border: 1px solid rgba(108, 180, 122,0.2);
	
	--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 .content h1,
.skin-minerva .content h2,
.skin-minerva .pre-content h1,
body {
	font-family: sans-serif;
}

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

.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 .body {
	display: none;
}

/* ------- navboxes ------- */
table.navbox {
	border: var(--navbox-border);
	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-group,
.navbox-title,
table.navbox th {
	padding-left: 1em;
	padding-right: 1em;
}

.navbox-group {
	font-weight: bold;
	white-space: nowrap;
}
/** Base background **/
.navbox,
.navbox-subgroup {
	background: var(--navbox-background);
}

.navbox-list {
	border-color: var(--navbox-background);
}
/** Level 1 & 2 styling **/
.navbox-group,
.navbox-subgroup .navbox-title,
.navbox-title,
table.navbox th {
	background: var(--navbox-secondary-background);
	color: var(--navbox-color);
}
/** Level 3 styling **/
.navbox-subgroup .navbox-abovebelow,
.navbox-subgroup .navbox-group {
	background: var(--navbox-background);
	color: var(--navbox-color);
}
/** row striping **/
.navbox-even {
	background: var(--navbox-alt-background);
	color: var(--navbox-color);
}

.navbox-odd {
	background: transparent;
}
/** collapsible navboxes **/
.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 ***/
/* ------- 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);
}

/*** front page styles ***/
.fpmain {
	width: 100%;
	overflow: hidden;
}
/* ------- front page boxes **/
.fpbox {
	background: var(--fpbox-background);
	color: var(--body-color);
	margin: 5px;
	padding: 0.75em;
	overflow: auto;
	box-sizing: border-box;
	border: var(--fpbox-border);
	width: calc(100% - 2px);
}

.fpbox-heading {
	border-bottom: var(--fpheading-border);
	background: var(--fpheading-background);
	text-align: center;
	color: var(--fpheading-color);
	font-family: var(--fpheading-font), sans-serif;
	font-size: 132%;
	margin: 0 0 0.5em;
	padding: 0.25em;
	letter-spacing: 1px;
}

.fpbox-body {
	margin: 5px;
}

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

.fpbox-mainheading {
	font-size: 150%;
}

.fpbox-subheading {
	font-size: 120%;
	border: 0;
	text-align: center;
}

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

/* ------- Template:FP links ------- */
.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 {
	background: var(--fplink-background);
	border: var(--fplink-border);
	padding: 0.5em;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: table;
}

.fplink-fullwidth .fplink {
	background: var(--fplink-fullwidth-background);
}

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

/*** infoboxes ***/
.infoboxtable {
	max-width: 300px;
	float: none;
	border: var(--infobox-border);
	padding: 0.25em;
	display: table !important;
	border-collapse: separate;
}

.infoboxname {
	color: var(--infobox-header-color);
	padding: 5px;
	background: var(--infobox-header-background);
}

.infoboxdetails {
	color: var(--infobox-details-color);
	padding: 5px;
	background: var(--infobox-details-background);
}

.infoboxtable div {
	color: var(--infobox-label-color);
	background: var(--infobox-label-background);
	text-align: right;
	font-weight: bold;
	padding: 1px 5px;
}

/*** invert icons for dark theme ***/
.fpbox.mobilecollapsible .heading a:before,
.oo-ui-iconElement-icon,
.skin-minerva .copyright-icon {
	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-mf-diffview .meta:before,
.mw-echo-ui-notificationsInboxWidget-main-toolbar-top .oo-ui-iconElement-icon,
.mw-mf-user:before,
.search-overlay .clear:before {
	filter:none;
}

/* invert extension:math images */
.mwe-math-fallback-image-inline {
	filter: invert(1);
}

.qud-box-wrapper {
    overflow: hidden;
    line-height: normal;
}
.qud-box {
    border: 4px solid #77bfcf;
    border-top: 0;
    border-bottom: 0;
    padding: 0.4em 1em 0.1em 0.5em;
    margin: 1em 0 1em 0;
    font-family: Source Code Pro, Lucida Console, Consolas;
    font-size: medium;
    color: #b1c9c3;
    background: none;
    background: -o-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px);
    background: -moz-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px);
    background: -webkit-repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px);
    background: repeating-linear-gradient(transparent 0px, transparent 2px, rgba(0,0,0,0.25) 2px, rgba(0,0,0,0.25) 4px);
   -o-background-size: 100% 4px;
   -moz-background-size: 100% 4px;
   -webkit-background-size: 100% 4px;
   background-size: 100% 4px;
}
.qud-box-header {
    position: relative;
    top: -1em;
    padding-left: 0.6em;
    padding-right: 0.6em;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}
.qud-box-header:before,
.qud-box-header:after {
    content: "";
    position: absolute;
    height: 4px;
    background: #77bfcf;
    top: 0.5em;
}
.qud-box-header:before {
    width: 100px;
    left: -100px;
}
.qud-box-header:after {
    width: 9999px;
    right: -9999px;
}
.qud-box-content {
    margin-top: -0.5em;
    padding-left: 0.3em;
    line-height: 1.5em;
}
.qud-box-footer-left {
    position: relative;
    top: 0.6em;
    padding-left: 0.1em;
    padding-right: 0.1em;
    font-size:1.2rem;
    font-weight: bold;
    color: #fff;
}
.qud-box-footer-left:before,
.qud-box-footer-left:after {
    content: "";
    position: absolute;
    height: 4px;
    background: #77bfcf;
    top: 50%;
}
.qud-box-footer-left:before {
    width: 100px;
    left: -98px;
}
.qud-box-footer-left:after {
    width: 9999px;
    right: -9997px;
}

.white-border .qud-box-header:before,
.white-border .qud-box-header:after,
.white-border .qud-box-footer-left:before,
.white-border .qud-box-footer-left:after
{
    background: #b1c9c3;
}
.white-border .qud-box {
    border: 4px solid #b1c9c3;
    border-top: 0;
    border-bottom: 0;
}

.qud-image-link {
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  line-height: 1em;
  height: 1em;
  display: inline-block;
}
.qud-image-link-image-container img {
  display: inline-block;
  position: absolute;
  top: -100%; left: 0; right: 0; bottom: -100%;
  margin: auto;
  margin-left: 0;
  margin-right: 0;
  vertical-align: middle;
  width: 16px;
  height: 24px;
}
.qud-image-link-image-container {
  height: 24px;
  width: 16px;
  padding-right: 0.25em;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  position: relative;
}
.qud-image-link:hover .qud-image-link-image-container {
  border-bottom: 0;
}
.qud-image-link span { 
  text-decoration: underline;
  text-decoration-style: solid;
}
.qud-image {
  height: 1em;
  background: transparent;
  transition: background 0.2s ease-in-out;
  display: inline-block;
  padding: 0 2px 0.7em 0px;
  margin: 0 0 -0.2em 0;
  border-radius: 0.2em;
}
.qud-image:hover {
  background: #0f3b3a;
}
/*
 *  QUD COLORS AND FONTS
 *  ====================
 */
:root {
  --qud-color-y:      #ffffff;
  --qud-color-y-dark: #b1c9c3;
  --qud-color-r:      #d74200;
  --qud-color-r-dark: #a64a2e;
  --qud-color-o:      #e99f10;
  --qud-color-o-dark: #f15f22;
  --qud-color-w:      #cfc041;
  --qud-color-w-dark: #98875f;
  --qud-color-g:      #00c420;
  --qud-color-g-dark: #009403;
  --qud-color-b:      #0096ff;
  --qud-color-b-dark: #0048bd;
  --qud-color-c:      #77bfcf;
  --qud-color-c-dark: #40a4b9;
  --qud-color-m:      #da5bd6;
  --qud-color-m-dark: #b154cf;
  --qud-color-k:      #155352;
  --qud-color-k-dark: #0f3b3a;

  --qud-font-terminal1: 'Source Code Pro','Consolas','Courier New','Courier','Lucida Console';
  --qud-font-terminal2: 'Source Code Pro','Consolas','Lucida Console','Courier New','Courier';
  --qud-font-icon1: 'Source Code Pro','Calibri','Courier New','Courier','Arial';
  --qud-font-icon2: 'Source Code Pro','Calibri','Consolas','Lucida Console';
  --qud-font-infobox-title: 'Source Code Pro','Segoe UI','Consolas','Lucida Console','Courier New','Courier';
  --qud-font-infobox-content: 'Segoe UI','Consolas','Lucida Console','Courier New','Courier';
  --qud-font-collapser-arrows: 'Source Code Pro, Lucida Console, Consolas';
}
/*
 *  QUD CHARACTER - INFOBOX ADJUSTMENTS
 *  ===================================
 */
.qud-character-infobox .moduleinfobox {
  overflow: hidden; /* prevent horizontal scrollbar from appearing */
}
.qud-character-infobox .moduleinfobox :focus {
  outline: 0px solid #000; /* remove focus outline on selected collapsible */
}
.qud-character-infobox .infobox-title {
  background: var(--searchsuggestions-background);
  color: var(--qud-color-y);
  font-family: var(--qud-font-infobox-title);
  font-size: 1.5em;
  line-height: 1.35em;
  padding: 0.2em 8px;
}
/* styles for generic, non-specialized infobox rows below */
.qud-character-infobox .infobox-rows th {
  background: var(--navbox-background); /* var(--navbox-alt-background); */
  font-family: var(--qud-font-terminal2);
}
.qud-character-infobox .infobox-rows th + td {
  background: var(--navbox-background);
  font-size: 1.12em;
}
/* 
 *  QUD CHARACTER - COLLAPSIBLES
 *  ============================
 */
td.qud-collapser {
  background: var(--navigation-tab-background);
  color: var(--infobox-label-color);
  font-weight: bold;
  height: 2.6em;
}
.qud-collapser-head {
  display: flex;
  font-weight: bold;
  font-size: 1.1em;
  font-family: var(--qud-font-terminal2);
}
.qud-collapser-title {
  margin-left:1.5em;
}
.qud-collapser-content {
  padding: 0 4px;
  background: var(--code-background); /*#0f3b3a;*/
}
.qud-collapser-arrow-right {
  text-align: center;
  position: absolute;
  line-height: 1.8em;
  font-family: var(--qud-font-collapser-arrows);
  left: 0.6em;
  z-index: 10;
}
.qud-collapser-arrow-down {
  text-align: center;
  position: absolute;
  line-height: 1.8em;
  font-family: var(--qud-font-collapser-arrows);
  background: var(--fpheading-background);
  left: 0.6em;
  z-index: 20;
}
/* 
 *  QUD CHARACTER - TOOLTIPS
 *  ========================
 */
.qud-tooltip {
  position: relative;
}
.qud-tooltip .qud-tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--searchsuggestions-background);
  color: var(--qud-color-y);
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-size: calc(0.23em + 7px);
  position: absolute;
  z-index: 1;
  width: 120px;
  bottom: 100%;
  left: 50%; 
  margin-left: -60px; /* half of the width */
}
.qud-tooltip:hover .qud-tooltip-text {
  visibility: visible;
}
.qud-tooltip:hover .qud-tooltip-text.delayed-tooltip {
  transition-delay: 0.35s; /* delayed-tooltip class to delay the appearance */
}
/* 
 *  QUD CHARACTER - CORE STATS
 *  ==========================
 */
.qud-core-stats:hover,
.qud-basic-attributes:hover,
.qud-attribute-entry:hover,
.qud-attributes-row:hover,
.qud-attributes-wrapper:hover,
.qud-resistances:hover {
  cursor: default;
}
.qud-core-stats-wrapper {
  display: flex;
  padding: 0 1.2em 18px 1.2em;
  height: 1.7em;
}
.qud-core-stats-entry {
  flex: 1 0 33%;
  text-align: center;
  white-space: nowrap;
  font-size: 1.7em;
  font-weight: bold;
  font-family: var(--qud-font-terminal1);
  margin-top: 0px;
  transition: font-size 0.1s, margin-top 0.1s;
}
.qud-core-stats-entry:hover {
  font-size: calc(1.7em + 4px);
  margin-top: -2px;
}
.qud-stat-icon{
  display: inline-block;
  padding-right: 0.3em;
  line-height: 1.2em;
  font-size: 1.3em;
}
.qud-stat-icon img {
  height: .7em;
  width: .57em;
}
.qud-stat-value {
  display: inline-block;
  color: var(--qud-color-y);
}
/* 
 *  QUD CHARACTER - LEVEL
 *  =====================
 */
.qud-character-level-wrapper {
  color: var(--qud-color-y-dark);
  padding: 0em 2em 10px 2em;
  font-family: var(--qud-font-terminal1);
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
}
.qud-character-level-text,
.qud-character-level-value {
  display: inline-block;
  padding-right: 0.45em;
}
.qud-character-level-value {
  color: var(--qud-color-c);
}
/* 
 *  QUD CHARACTER - ATTRIBUTES
 *  ==========================
 */
.qud-attributes-wrapper,
.qud-attributes-header-row {
  color: var(--qud-color-y-dark);
  padding: 0 1em 4px 1em;
}
.qud-attributes-row,
.qud-attributes-header-row {
  display: flex;
  line-height: 1.6em;
  white-space: nowrap;
}
.qud-attributes-header-button {
  flex: 1 0 50%;
  opacity: 0.5;
  color: var(--qud-color-c-dark);
  font-size: 1em;
  font-weight: bold;
  font-family: var(--qud-font-terminal1);
  text-align: center;
  font-style: italic;
  text-decoration: underline;
  transition: color 0.1s, opacity 0.1s;
}
.qud-attributes-header-button:hover {
  opacity: 1;
  color: var(--qud-color-c);
}
.qud-attributes-title {
  padding: 0 0 0.2em 0;
  color: var(--qud-color-y-dark);
  font-size: 1em;
  font-weight:bold;
  font-family: var(--qud-font-terminal1);
}
.qud-attribute-entry {
  flex: 1 0 33%;
  font-size: 1.3em;
  font-weight: bold;
  font-family: var(--qud-font-terminal1);
  transition: transform 0.1s;
  transform: perspective(1px); /* fixes bluriness in Chrome immediately after hover, during transition-delay */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.qud-attribute-entry.qud-tooltip:hover {
  transform: scale(1.08,1.08);
  transition-delay: 0.35s;
}
.qud-attribute-entry.qud-tooltip:hover .qud-tooltip-text {
  transition-delay: 0.35s;
}
.qud-attribute-label {
  display: inline-block;
  padding-right: 0.45em;
}
.qud-attribute-value {
  display: inline-block;
}
.qud-roll-range {
  font-style: italic;
  display: block;
  color: var(--qud-color-y-dark)
}
.qud-roll-raw {
  display: none;
}
div.qud-attribute-st + div.qud-attribute-value,
div.qud-attribute-ag + div.qud-attribute-value,
div.qud-attribute-to + div.qud-attribute-value,
div.qud-attribute-wi + div.qud-attribute-value,
div.qud-attribute-in + div.qud-attribute-value,
div.qud-attribute-eg + div.qud-attribute-value {
  color: var(--qud-color-c)
}
.qud-attribute-st { color: var(--qud-color-y); }
.qud-attribute-ag { color: var(--qud-color-w); }
.qud-attribute-qn { color: var(--qud-color-y-dark); }
.qud-attribute-to { color: var(--qud-color-r); }
.qud-attribute-wi { color: var(--qud-color-g); }
.qud-attribute-ms { color: var(--qud-color-y-dark); }
.qud-attribute-in { color: var(--qud-color-b); }
.qud-attribute-eg { color: var(--qud-color-m); }
.qud-attribute-ma { color: var(--qud-color-y-dark); }
/* 
 *  QUD CHARACTER - DETAILED ATTRIBUTES
 *  ===================================
 */
.qud-stat-details-wrapper {
  color: var(--qud-color-y-dark);
  margin: 0.5em 0;
  display: table;
  border-collapse: collapse;
}
.qud-stat-details-entry {
  display: table-row;
  font-size: 0.9em;
  font-weight: bold;
  font-family: var(--qud-font-terminal1);
}
.qud-stat-details-entry > div {
  display: table-cell;
  text-align: center;
  padding: 0 0.4em;
  color: var(--qud-color-y-dark);
  border-left: var(--infobox-border);
}
.qud-stat-details-entry > div:first-child {
  border-left: none;
  text-align: left;
}
.qud-stat-details-entry > div.qud-stat-table-header {
  color: var(--qud-color-k);
}
.qud-stat-name {
  color: var(--qud-color-y);
}
/* 
 *  QUD CHARACTER - RESISTANCES
 *  ===========================
 */
.qud-resistances-wrapper {
  color: var(--qud-color-y-dark);
  padding: 0 1.3em 1.8em 1.6em;
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--infobox-border);
  margin-bottom: 12px;
}
.qud-resistance-row {
  flex: 1 0 50%;
  font-size: 1em;
  font-weight: bold;
  font-family: var(--qud-font-terminal1);
}
.qud-resistance-prefix,
.qud-resistance-text,
.qud-resistance-value {
  display: inline-block;
  padding-right: 0.45em;
}
.qud-resistance-value.positive-value {
  color: var(--qud-color-g);
}
.qud-resistance-value.negative-value {
  color: var(--qud-color-r);
}
/* 
 *  QUD CHARACTER - INVENTORY
 *  =========================
 */
.qud-inv-group {
  font-weight: bold;
}
.qud-equipped {
  border-bottom: var(--infobox-border);
  padding-bottom: 6px;
}
.qud-carried {
  border-top: none;
  padding-bottom: 6px;
}
.qud-item-qty {
  color: var(--infobox-details-background);
}
.qud-equipped-title {
  color: var(--infobox-details-background);
  
}
.qud-inv-content-itemlist {
  padding: 2px 3px 2px 5px;
  font-family: var(--qud-font-infobox-content);
  font-size: 1.2em;
  
}
.qud-inventory-item {
  text-overflow: clip;
  max-width: 149px;
  white-space: nowrap;
}
/* 
 *  QUD CHARACTER - SKILLS and MUTATIONS
 *  ====================================
 */
.qud-skills-wrapper,
.qud-mutations-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: 1.1em;
  font-weight: bold;
  font-family: var(--qud-font-infobox-content);
  max-width: 260px;
  padding: 0.4em 0;
}
.qud-skill-entry,
.qud-mutation-entry { 
  flex: 1 0 100%;
  transition: .8s opacity;
  line-height: 1.2em;
  padding: 0.1em 0 0.4em 0.5em;
  overflow: hidden;
  box-sizing: border-box;
  text-overflow: clip;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  transition: background 0.15s;
}
.qud-skill-entry:hover,
.qud-mutation-entry:hover { 
  background: var(--navigation-tab-background);
}
.qud-skill-entry a,
.qud-mutation-entry a {
  display: block; /* make entire row clickable */
}
.qud-mutation-entry {
  display: flex;
  justify-content: left;
}
.qud-mutation-entry a {
  width: 100%;
}
.qud-mutation-entry:hover a b {
  display: inline-block;
  text-decoration: none;
}