MediaWiki:Mobile.css

/* Variables */ body { --roundy-border-radius: 10px; /* Colors */ --zw-background: #17456e; --zw-dark-1: #163d5f; --zw-dark-2: #0c2236; --zw-header: #1d578b; --zw-light: #1e5c93; --zw-links: #e7ea12; }

body, background: #0b284f none repeat scroll 0 0; color: #d2d2d2; }
 * 1) footer {

body.navigation-enabled .transparent-shield { background-color: rgba(18, 68, 111, 0.8) !important; }

.primary-navigation-enabled { background-color: #001226; }

.animations #mw-mf-page-center, body.navigation-enabled #mw-mf-page-center, .overlay-enabled, #content { background: #17456e none repeat scroll 0 0 !important; }
 * 1) mw-mf-page-center,

background: #001226 none repeat scroll 0 0; height: auto; min-height: 100%; }
 * 1) mw-mf-viewport {

background: #082750 none repeat scroll 0 0 !important; border-left-color: #001226 !important; }
 * 1) mw-mf-page-left {

border-bottom-color: #001226 !important; }
 * 1) mw-mf-page-left ul {

border-top-color: #001226 !important; }
 * 1) mw-mf-page-left li {

border-bottom-color: #001226 !important; }
 * 1) mw-mf-page-left li:last-child {

background-color: #12446f !important; }
 * 1) mw-mf-page-left li:hover,
 * 2) mw-mf-page-left .hlist a:hover {

.client-js #mw-mf-page-left .icon-secondary, .client-js nav .icon-secondary { border-left-color: #001226 !important; }

.header-container.header-chrome { background: #082750 none repeat scroll 0 0; }

.header .branding-box h1 { border-bottom: none !important; }

pre, .mw-code { background-color: #1D578B; border: 1px dashed #426787; color: #D2D2D2; font-size: 100% !important; }

/* table.diff, td.diff-otitle, td.diff-ntitle { background-color: transparent; }
 * Diff rendering

td.diff-addedline, td.diff-deletedline, td.diff-context { font-size: 90%; }

td.diff-addedline { background-color: #255A81; border-color: #B0FFB0; }

td.diff-deletedline { background-color: #255A81; border-color: #FFB0B0; }

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

td.diff-addedline .diffchange, td.diff-deletedline .diffchange { border-radius: 0.33em; color: black; padding: 0.25em; }

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

td.diff-deletedline .diffchange { background: #FF7070; }

/* Causes images to be resized using nearest-neighbor interpolation. * This prevents sprites, 2D game screenshots, and other pixel art from appearing blurry when resized (namely in galleries). * This comes at the cost of a slight reduction in quality for thumbnails of any other kind of image (e.g. screenshots and artwork) */ img, canvas { image-rendering:-moz-crisp-edges; image-rendering:-o-crisp-edges; image-rendering:-webkit-optimize-contrast; -ms-interpolation-mode:nearest-neighbor; image-rendering:crisp-edges; image-rendering:pixelated; }

img.optimizequality, canvas.optimizequality { image-rendering:optimizequality; }

/* ***************************** Main Page ***************************** */ /* Note that even in Mobile View, the #css stylesheet is loaded */

/* Template:Main Page Games */ div.game-container { margin: 0 auto; display: flex; flex-flow: row wrap; justify-content: center; }

div.game-container div.game { width: 100%; height: 125px; margin: 0 0 14px 0; overflow: hidden; display: inline-block; position: relative; font-size: 0; }

div.game-container div.game span.year { bottom: 12px; right: 16px; left: auto; color: rgba(255, 255, 255, 0.9); position: absolute; font-size: 12px; z-index: 10; }

div.game-container div.game a { width: 100%; height: 100%; text-align: left; box-sizing: border-box; padding: 5%; justify-content: flex-start; clip: auto; box-shadow: inset rgba(255, 255, 255, 0.1) 0 0 0 1px; z-index: 1; font-style: normal; color: rgba(255, 255, 255, 0.9); position: absolute; line-height: 29px; font-size: 25px; text-decoration: none; background-color: rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; }

div.game-container div.game img { min-width: 100%; min-height: 100%; width: auto; height: auto; vertical-align: middle; }

/*height: auto;*/ /* Provided by another stylesheet */ width: 49%; }
 * 1) mainpage .categories img {

height: auto; /* Needed */ max-width: 400px; width: 100%; }
 * 1) mf-zw-logo img {

div#mf-welcome-text { /* Extra specificity to override #css style */ margin: 1em 0; }

width: 100%; height: 125px; margin: 0 0 14px 0; overflow: hidden; }
 * 1) mf-maingames .game {

min-width: 100%; min-height: 100%; width: auto; height: auto; }
 * 1) mf-maingames .game img { /* May need more tweaking */

width: 100%; height: 100%; text-align: left; box-sizing: border-box; padding: 5%; /* Changed from 16px */ justify-content: flex-start; clip: auto; box-shadow: inset rgba(255, 255, 255, 0.1) 0 0 0 1px; z-index: 1; }
 * 1) mf-maingames .game a {

bottom: 12px; right: 16px; left: auto; }
 * 1) mf-maingames .game .year {

div#mf-NIWAnav { /* Extra specificity to override #css styles */ box-sizing:border-box; border:none; border-radius:2px; }

div#mf-NIWAnav .NIWA-header { /* Extra specificity to override #css styles */ display: table; /* Needed, probably in #css stylesheet too */ width: 100%; }

display: inline; }
 * 1) mf-NIWAnav .NIWA-header > div a {

display:flex; flex-direction: column; margin: 0; }
 * 1) mf-NIWAnav .body p:first-of-type {

margin: 16px; }
 * 1) mf-NIWAnav .body p:last-of-type {

div#mf-NIWAnav .cell { /* Extra specificity to override #css styles */ border-radius:5px; text-align:left; width:auto; padding:.7em 1em; overflow: hidden; /* Sticking-out text is hidden */ text-overflow: ellipsis; /* Long text cuts-off with ... */	white-space: nowrap; /* Long text doesn't break into two lines */ }

width: auto; margin-right: 4px; position: relative; top: -2px; }
 * 1) mf-NIWAnav .cell img {

/* ************************ End Main Page styles ************************ */

/* Style/reposition the site notice's [dismiss] */ margin: 0 5px; /* Reasonable distance from the 10px border-radius */ height: 0; }
 * 1) localNotice > .globalNoticeDismiss { /* span is for extra specificity */

.header, .mw-mf-special #content .content-header { border-color: #426787; }
 * 1) page-actions,

input.search { background: #082750 none repeat scroll 0 0 !important; color: #d2d2d2 !important; }

.search-overlay { background-color: rgba(0, 0, 0, 0.8) !important; }

.overlay, .overlay-header-container, .overlay-footer-container, .search-overlay .overlay-header, .search-overlay .results { background-color: #082750 !important; }

.overlay-header { border-color: #426787 !important; }

.overlay-content { background: rgba(0, 0, 0, 0.5) none repeat scroll 0 0 !important; }

.overlay-title h2 { border-bottom: medium none !important; }

.search-content.overlay-header { background-color: #426787 !important; }

.results .page-list li { background-color: #17456e !important; border-bottom: 1px solid #426787 !important; margin-bottom: 1px !important; }

.overlay .panel, .page-list li, .topic-title-list li, .site-link-list li { border-color: #426787 !important; color: #d2d2d2; }

.page-list li > a, .page-list li > a > h3, .topic-title-list li > a, .topic-title-list li > a > h3, .site-link-list li > a, .site-link-list li > a > h3 { border-bottom: medium none !important; color: #f4f26b; }

.page-list li > a:active, .page-list li > a:hover, .page-list li > a:visited, .topic-title-list li > a:active, .topic-title-list li > a:hover, .topic-title-list li > a:visited, .site-link-list li > a:active, .site-link-list li > a:hover, .site-link-list li > a:visited { color: #e8e760; }

.list-thumb.list-thumb-none { background-color: #17456e; }

.mw-mobile-mode .searchresults ul.mw-search-results .mw-search-result-data { color: #808080; }

.overlay.media-viewer img { background: rgba(0, 0, 0, 0) none repeat scroll 0 0; }

.overlay.media-viewer div.details { background: #1d578b none repeat scroll 0 0; }

.overlay input, .overlay textarea { color: #d2d2d2; }

div.editor-overlay .summary-request, div.overlay .license { color: #b6b6b6; }

background: #fff none repeat scroll 0 0 !important; width: 60vw !important; }
 * 1) powerSearchText {

footer .last-modified-bar { background: rgba(0, 0, 0, 0) none repeat scroll 0 0 !important; color: #d2d2d2; }

footer .last-modified-bar a { color: #d2d2d2; }

footer .last-modified-bar a:nth-child(2) { color: #f4f26b; }

border-top-color: #1d578b !important; }
 * 1) footer {

color: #b6b6b6; text-align: left !important; }
 * 1) footer ul,
 * 2) footer ul li {

.footer-places li:first-of-type { padding-left: 0 !important; }

h1, h2, h3, h4, h5, h6 { border-bottom: 1px solid #426787 !important; color: #d2d2d2; padding-top: 0; width: auto; }

.mw-headline { display: inline-block; font-family: "Helvetica Neue",Helvetica,"Nimbus Sans L",Arial,"Liberation Sans",sans-serif; }

.mw-body h1, .mw-body h2 { font-family: "Linux Libertine",Georgia,Times,serif; }

.section-heading .icon { margin-top: 0.2em; }

a { background: rgba(0, 0, 0, 0) none repeat scroll 0 0; color: #f4f26b; text-decoration: none; }

a:visited, div.drawer.references a{	color: var(--zw-links); }

a:active { color: #f4f26b; }

a:hover { text-decoration: underline; }

a.stub { color: #f4f26b; }

color: #ff8581; }
 * 1) bodyContent a.new {

a.new, color: #ff8581; }
 * 1) p-personal a.new {

a.new:visited, color: #ff8581; }
 * 1) p-personal a.new:visited {

a.mw-ui-button, a.mw-ui-button.mw-ui-progressive, a.mw-ui-button.mw-ui-primary { background: #0b284f none repeat scroll 0 0; color: #d2d2d2; }

a.mw-ui-button:hover, a.mw-ui-button.mw-ui-progressive:hover, a.mw-ui-button.mw-ui-primary:hover { color: #b6b6b6; }

a.mw-ui-button:active, a.mw-ui-button.mw-ui-progressive:active, a.mw-ui-button.mw-ui-primary:active { background: #17315a none repeat scroll 0 0; color: #d2d2d2; }

a.mw-ui-button:focus, a.mw-ui-button.mw-ui-progressive:focus, a.mw-ui-button.mw-ui-primary:focus { border-color: rgba(204, 204, 204, 0.75); }

.content table.wikitable, .content table.prettytable { background-color: #17456e; border: 1px solid #426787; border-collapse: collapse; color: #d2d2d2; margin: 1em 1em 1em 0; }

.content table.wikitable th, .content table.wikitable td, .content table.prettytable th, .content table.prettytable td { background: #17456e none repeat scroll 0 0; border: 1px solid #426787; }

.content table.wikitable th, .content table.prettytable th { background: #1d578b none repeat scroll 0 0; text-align: center; }

.content table.wikitable > tr > th, .content table.wikitable > tr > td, .content table.wikitable > * > tr > th, .content table.wikitable > * > tr > td { border: 1px solid #426787; padding: 0.4em; }

.content table.wikitable > tr > th, .content table.wikitable > * > tr > th { background: #1d578b none repeat scroll 0 0; }

.content table.wikitable caption, .content table.prettytable caption { font-weight: bold; margin-left: inherit; margin-right: inherit; }

/* Alt table */ table.altrow, table.altcol { background: #17456e; border: 1px solid #426787; border-collapse: collapse; margin: 1em 1em 1em 0; }

table.altrow td, table.altcol td { border: 1px solid #426787; padding: 0.4em; }

table.altrow tr:nth-child(even) { background: #17456e; }

table.altrow tr:nth-child(odd) { background: #163d5f; }

table.altcol td:nth-child(even) { background: #17456e; }

table.altcol td:nth-child(odd) { background: #163d5f; }

table.altrow th, table.altcol th { background: #1d578b; border: 1px solid #426787; padding: 0.4em; text-align: center; }

table.altrow caption, table.altcol caption { font-weight: bold; margin-left: inherit; margin-right: inherit; }

table.altrow code, table.altcol code { background-color: transparent; }

div.toc-mobile, .client-js div.toc-mobile { background-color: #1d578b; border: 1px solid #426787; min-width: 250px; }

div.toc-mobile .collapsible-heading, .client-js div.toc-mobile .collapsible-heading { border-bottom: medium none !important; margin-bottom: 0 !important; }

div.toc-mobile .collapsible-heading .indicator, .client-js div.toc-mobile .collapsible-heading .indicator { margin-right: 5px !important; }

div.toc-mobile .collapsible-block, .client-js div.toc-mobile .collapsible-block { margin-left: 15px; margin-right: 15px; }

hr { background-color: #426787; color: #426787; }

.list-header { background: rgba(0, 0, 0, 0) none repeat scroll 0 0; color: inherit; }

.mw-mf-special #content .content-header { padding-top: 1em; }

.mw-mf-special #content .content-header h2 { border-bottom: medium none !important; }

.mw-mf-user { color: #d2d2d2; }

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

.page-list.side-list .list-thumb, .topic-title-list.side-list .list-thumb, .site-link-list.side-list .list-thumb { color: #b6b6b6; }

.minoredit { background: rgba(0, 0, 0, 0) none repeat scroll 0 0; }

.page-summary h2, .page-summary h3 { color: #d2d2d2; }

.page-summary h2 a, .page-summary h3 a { color: #f4f26b; }

background: #0b284f none repeat scroll 0 0; }
 * 1) mw-mf-diffview #mw-mf-userinfo {

color: #b6b6b6; }
 * 1) mw-mf-diffview #mw-mf-userinfo .mw-mf-edit-count {

color: #d2d2d2; }
 * 1) mw-mf-diffview #mw-mf-userinfo .mw-mf-edit-count div {

.mw-mf-special .content h2 { color: #d2d2d2; } .profile .card { background-color: #1d578b; border-color: #426787; color: #d2d2d2; }

.profile a { color: #f4f26b; }

.profile .footer { color: #d2d2d2; }

.tabcontainer .tab { background-color: #1d578b; background-image: -moz-linear-gradient(center top, #1d679b, #1a4e7d); border: 2px solid #426787; border-radius: 2px; cursor: pointer; float: left; margin: 0 1px 2px; padding: 3px; text-align: center; white-space: nowrap; }

.tabcontainer .tab:hover { background-color: #24527c; background-image: -moz-linear-gradient(center top, #305f89, #17456e); color: #f4f26b; }

.tabcontainer .tab.active { background-color: #17456e !important; background-image: -moz-linear-gradient(center top, #1d578b, #17456e); color: #f4f26b; }

.tabcontainer-top .tab.active { border-bottom: none; }

.icon-back, .icon-cancel, .icon-cancel-light, .icon-citation, .icon-edit, .icon-edit-enabled, .icon-mainmenu, .icon-photo, .icon-search-white, .icon-talk, .icon-toc, .icon.watch-this-article, filter: brightness(10) opacity(0.65); }
 * 1) ca-upload.icon {

.icon-arrow-down, .icon-arrow-up { filter: invert(1) brightness(10) opacity(0.65); }

/* This makes galleries etc. look squashed .content table.wikitable, .content table.prettytable, .content [style*="width"] { width: auto !important; } ul.gallery { text-align: center; padding-left: 0; } @media screen and (max-width: 354px) { .gallerybox, .gallerybox div { width: 100% !important; } }

button.icon.cancel { background: rgba(0, 0, 0, 0) none repeat scroll 0 0 !important; }

button.icon.cancel::before, button.icon.cancel::after { background: #cfcfd0 none repeat scroll 0 0; content: ""; height: 5px; left: 0; position: absolute; top: 50%; width: 100%; }

button.icon.cancel::before { transform: rotate(45deg); }

button.icon.cancel::after { transform: rotate(-45deg); }

.content table[style*="border:1px"][style*="padding:2px"] td { padding: 1em; }

td[style*="font-size:11px"], td[style*="font-size: 11px"], span[style*="font-size:6pt"], span[style*="font-size: 6pt"] { font-size: inherit; }

/* Gallery image boxes */ li.gallerybox div.thumb { background-color: #1D578B; border: 1px solid #426787; border-radius: var(--roundy-border-radius); }

/* fileinfo styling */ .fileinfo { background-color: #1d578b; border: 1px solid #426787; border-radius: var(--roundy-border-radius); font-size:12px; margin: 1em auto; border-collapse:unset; }

.fileinfo th{ width:60px; border:none; text-align:left; padding:4px; }

.fileinfo td{ border:1px solid #426787; border-radius: var(--roundy-border-radius); background-color:#17456e; padding:4px; }

/* gradient for mobile */ .gradient { background-image: linear-gradient(to bottom, #2D679B, #1A4E7D); background-image: -webkit-linear-gradient(top, #2D679B, #1A4E7D); /* Android Browser <= 4.3 */ }

/* Remove black background around sitenotices (globalNotice) */ .skin-minerva div.globalNotice { /* override existing style with div specificity */ background: none; }

/* Fix thumbnail caption color */ .content .thumbcaption { color: inherit !important; }

/* INFOBOXES */ table.new-infobox { padding: 5px; border-radius: var(--roundy-border-radius); } /* Template:Tab2 */ /* centering image in for infoboxes */ table.infobox-curse-ad div.tabcontents.vertical-centered-content > div.content img { position: relative; top: 50%; transform: translateY(-50%); }

div.tabcontents div.content { margin: 0; }

div.tabcontainer span.tab.explain { text-decoration: none; float: none; display: inline-block; }

div.tabcontainer { margin-left: auto; margin-right: auto; }

div.tabcontainer-top { padding-top: 5px; margin-top: 0; margin-bottom: 10px; }

div.tabcontainer-bottom { padding-bottom: 5px; margin-top: 10px; margin-bottom: 0; }

/* Template:Media */ @media screen and (max-width: 414px) { div.media-template div.tabcontents div.tabcontainer span.tab.explain { font-size: 0.9em; } }

@media screen and (max-width: 375px) { div.media-template div.tabcontents div.tabcontainer span.tab.explain { font-size: 0.78em; } }

@media screen and (max-width: 360px) { div.media-template div.tabcontents div.tabcontainer span.tab.explain { font-size: 0.73em; } }

@media screen and (max-width: 320px) { div.media-template div.tabcontents div.tabcontainer span.tab.explain { font-size: 0.61em; } }

/* FACELIFT */ /* All CSS placed under there is for the upcoming facelift of Zelda Wiki, place any other CSS above it */

/* COMMON */ /* MISC */ .centered { text-align: center; }

.no-mobile { display: none; }

.roundy { border-radius: var(--roundy-border-radius); padding: 10px; }

/* TABLES */ table.roundy { padding: 5px; box-sizing: border-box; }

table.pill-rows { border-collapse: separate; }

table.pill-rows tr:not(:first-child) th, table.pill-rows tr:not(:first-child) td { padding: 10px; }

table.pill-rows tr:not(:first-child) th:first-child, table.pill-rows tr:not(:first-child) td:first-child { border-radius: var(--roundy-border-radius) 0px 0px var(--roundy-border-radius); }

table.pill-rows tr:not(:first-child) th:last-child, table.pill-rows tr:not(:first-child) td:last-child { border-radius: 0px var(--roundy-border-radius) var(--roundy-border-radius) 0px; }

table.pill-rows tr:not(:first-child) th:first-child:last-child, table.pill-rows tr:not(:first-child) td:first-child:last-child { border-radius: var(--roundy-border-radius) var(--roundy-border-radius) var(--roundy-border-radius) var(--roundy-border-radius); }

table.compressed td:last-child { width: 100%; }

table.compressed tr:not(:first-child) th { padding-top: 15px; }

/* STYLE */ table.pill-rows { background-color: var(--zw-light); }

table.alternate-rows tr:nth-child(odd):not(:first-child) th, table.alternate-rows tr:nth-child(odd) td { background-color: var(--zw-dark-1); }

table.alternate-rows tr:nth-child(even) th, table.alternate-rows tr:nth-child(even) td { background-color: var(--zw-background); }

table.alternate-rows tr th:first-child:last-child { background-color: transparent; }

/* NAVBOXES */ div.facelift-tabbed-navbox { background-color: #1e5c93; }

/* LIST BOXES */ div.list-box-container { display: flex; flex-wrap: wrap; justify-content: center; }

div.list-box { position: relative; margin: 8px; flex-basis: 100%; background-color: #1d578b; box-shadow: 2px 2px 2px #0c2236; }

div.list-box:hover { background-color: #163d5f; }

div.list-box span.list-box-link a { text-align: right; position: absolute; height: 100%; width: 100%; top: 0; left: 0; text-decoration: none; }

div.list-box span.list-box-link a span.list-box-text { position: relative; top: 50%; transform: translateY(-50%); display: block; padding-right: 1em; font-size: large; }

/* NATIVE SKIN FIXES */ .content table { display: table; }

/* SITE NOTICE */ div#localNotice div.sitenotice-container { font-size:1.25em; text-align:center; background-color: var(--zw-header); padding:1em; border-radius: var(--roundy-border-radius); } .sitenotice-date { float:left; line-height:0; font-size:.8em; }

.sitenotice-header { font-size: 1.5em; padding-top: 0.5em; }

.sitenotice-body { padding-bottom: 0.5em; }

.sitenotice-latest-announcements { float:right; line-height:0; font-size:.8em; }

/* Citations */ ol.references li:target, sup.reference:target { background-color: var(--zw-header); }

div.drawer.references { background-color: var(--zw-dark-1); }

/* Template:Ref */ div.references-small { max-height: 175px; overflow: auto; margin-bottom: 1em; padding: 0.5em; }