MediaWiki:Mobile.css

/* CSS placed here will affect users of the mobile site */ .nomobile { display: none; }

body { -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background: url("https://static.wikia.nocookie.net/cardsandcastles_gamepedia_en/images/9/98/Bg.jpg/revision/latest") no-repeat fixed center center / cover #fad785; }

div#content_wrapper { background-color: unset; border: 2px solid #e86c49; }

body.mediawiki #mw-mf-page-center { background-color: rgba(255, 235, 123, 0.8); }

a, a:visited, a.external { color: #9f4a2e; }

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

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

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

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

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

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

/********************* /* Front page styles * /*********************/ .fpcontent { overflow: hidden; width: 100%; z-index: 1; }

.fpmaybecols { margin: -5px 0 -5px 0; overflow: hidden; }

.fpmaybecols + .fpmaybecols { margin: 0 0 -5px 0; }

.fpbox { background: #febc6e; background: rgba(254, 188, 110, 0.3); border-radius: 5px; border: 2px solid #e86c49; box-shadow: 0 0 0 2px #9f4a2e inset; color: #9f4a2e; margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px; }

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

.fpbox .welcome { border-bottom: 1px solid #e86c49; color: #9f4a2e; font-size: 150%; margin: 0 0 10px 0; padding: 0 0 5px 0; text-transform: uppercase; text-align: center; }

.fpbox .heading { border-bottom: 1px solid #e86c49; color: #9f4a2e; font-variant: small-caps; font-size: 132%; margin: 0 0 10px 0; padding: 0 0 5px 0; }

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

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

.fplinks { margin: -5px; }

.fplinks .linkslabel { background: transparent; border-bottom: 2px solid #e86c49; margin: 15px 5px 5px 5px; padding: 0 0 5px 0; }

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

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

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

.fplink .box .row .cell { background: #ffeb7b; /* Old browsers */ background: -moz-linear-gradient(top, #ffeb7b 48%, #ffc05a 51%); /* FF3.6-15 */ background: -webkit-linear-gradient(top, #ffeb7b 48%,#ffc05a 51%); /* Chrome10-25,Safari5.1-6 */ background: linear-gradient(to bottom, #ffeb7b 48%,#ffc05a 51%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffeb7b', endColorstr='#ffc05a',GradientType=0 ); /* IE6-9 */ border: 2px solid #e86c49; border-radius: 2px; box-shadow: 0 0 0 2px #9f4a2e inset; color: #9f4a2e; display: table-cell; font-weight: bold; position: relative; text-align: center; text-transform: uppercase; vertical-align: middle; }

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

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

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

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

@media (min-width: 188px) { .fplink { width: 50%; }

.fplink.wide { width: 100%; } }

@media (min-width: 294px) { .fplink { width: 33.333%; }

.fplink.wide { width: 66.666%; } }

@media (min-width: 400px) { .fplink { width: 25%; }

.fplink.wide { width: 50%; }

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

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

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

@media (min-width: 506px) { .fplink { width: 20%; }

.fplink.wide { width: 40%; } }

@media (min-width: 612px) { .fplink { width: 16.666%; }

.fplink.wide { width: 33.333%; } }

@media (min-width: 718px) { .fplink { width: 14.285%; }

.fplink.wide { width: 28.571%; } }

@media (min-width: 824px) { .fplink { width: 12.5%; }

.fplink.wide { width: 25%; } }

@media (min-width: 930px) { .fplink { width: 11.111%; }

.fplink.wide { width: 22.222%; } }

@media (min-width: 1036px) { .fplink { width: 10%; }

.fplink.wide { width: 20%; }

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

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

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

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

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

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

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

.fplink.image .link a { background: #febc6e !important; border: 2px solid #e86c49; }

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

.fplink.image a { top: auto; }

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

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

.fpvideo iframe { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }