MediaWiki:Mobile.css
Jump to navigation
Jump to search
In other languages: Deutsch • Español • Français • Русский
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: Clear the cache in Tools → Preferences
/* CSS placed here will affect users of the mobile site */
/* Header and footer */
.header-container.header-chrome,
#mw-mf-page-center {
background-image: url(media/townshiptale.gamepedia.com/8/87/Banner.png);
background-position: center top;
background-attachment: fixed;
background-repeat: no-repeat;
background-color: gray;
background-size: cover;
}
footer {
background-color: rgba(255, 255, 255, 0.8);
color: #505050;
}
.overlay #secondary-button.user-button,
.header #secondary-button.user-button,
.overlay .user-button,
.header .user-button {
background: transparent;
}
/* end header and footer */
.nomobile {
display: none;
}
.client-js .toc-mobile {
background-color: rgba(0, 0, 0, 0) !important;
border: 1px solid #505050 !important;
}
.mw-ui-button,
.last-modified-bar #mw-mf-last-modified {
background-color: rgba(0, 0, 0, 0);
/*
color: #e0e0e0;
*/
}
.overlay-enabled,
#content {
background-color: rgba(255, 255, 255, 0.8);
color: #505050;
}
a,
a:visited,
a.external {
color: #5a93cc;
}
/* For hydradark only - makes the section collapse arrow visible */
/*
.mw-ui-icon-arrow::before {
filter: invert(100%);
}
*/
.thumb,
#content_wrapper .thumb,
li.gallerybox div.thumb {
background-color: rgba(0, 0, 0, 0);
border: 1px solid #505050;
}
.content table th {
background-color: rgba(0, 0, 0, 0);
}
.content table td,
.content table th {
border: 1px solid #505050;
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 #505050;
}
.content table.wikitable>tr>th,
.content table.wikitable>*>tr>th {
background-color: inherit;
padding: 3px;
}
/* Responsive main page stuff */
/********************
/* Main menu styles *
/********************/
.primary-navigation-enabled {
border-left: 12px solid #505050 !important;
background: #101010 !important;
}
#mw-mf-page-left {
border-left: 12px solid #505050;
background: transparent;
}
#mw-mf-page-left ul {
background: transparent;
}
#mw-mf-page-left ul:first-child {
border-bottom: 12px solid #505050;
}
#mw-mf-page-left ul li {
border-top: 1px solid #505050;
border-bottom: 1px solid #505050;
background: transparent;
text-shadow: none;
}
#mw-mf-page-left ul li a,
#mw-mf-page-left ul.hlist li a {
border: none;
color: #3674b3;
}
#mw-mf-page-left ul li:hover {
border-left: 12px solid #aaaaaa;
background: #505050;
}
#mw-mf-page-left ul.hlist li:hover {
border: none;
}
#mw-mf-page-left ul li:hover a,
#mw-mf-page-left ul.hlist li:hover a {
color: #ffffff;
}
/*********************
/* Front page styles *
/*********************/
.fpbox {
box-shadow: 0 0.1em 0.75em #855134 inset;
background-color: rgba(211, 151, 80, 0.8);
border-radius: 5px;
border: 1px solid #505050;
color: #505050;
/* change for hydra (light) wikis */
margin: 5px 5px 5px 5px;
padding: 5px 5px 5px 5px;
}
.fpbox .welcome {
border-bottom: 1px solid #505050;
color: #505050;
/* change for hydra (light) wikis */
font-size: 150%;
margin: 0 0 10px 0;
padding: 0 0 5px 0;
text-align: center;
font-family: "OpenSans-ExtraBold";
}
.fpbox .heading {
border-bottom: 1px solid #505050;
color: #505050;
/* change for hydra (light) wikis */
font-size: 132%;
margin: 0 0 10px 0;
padding: 0 0 5px 0;
font-family: "OpenSans-ExtraBold";
}
.fpbox .heading .smalllink {
color: #505050;
/* change for hydra (light) wikis */
font-size: 75%;
font-family: "OpenSans-ExtraBold";
}
.fpbox hr {
border: none;
border-bottom: 2px solid #505050;
}
.fpplainbox {
padding: 5px 8px 10px 8px;
margin: 0 5px 10px 5px;
vertical-align: top;
}
.fplinks {
margin: -2px -3px;
}
.fplinks .linkslabel {
border-bottom: 2px solid #505050;
margin: 6px 3px 0 3px;
}
.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 {
display: table;
width: 100%;
border-spacing: 2px 3px;
border-collapse: separate;
}
.fplink .box .row {
display: table-row;
}
.fplink .box .row .cell {
background: #D39750;
background-image: -moz-linear-gradient(center top, #D39750 0%, #855134 100%);
background-image: -webkit-gradient(linear, center top, left bottom, color-stop(0%, #D39750), color-stop(100%, #855134));
background-image: -webkit-linear-gradient(top, #D39750 0%, #855134 100%);
background-image: -o-linear-gradient(top, #D39750 0%, #855134 100%);
background-image: -ms-linear-gradient(top, #D39750 0%, #855134 100%);
background-image: linear-gradient(to bottom, #D39750 0%, #855134 100%);
border: 1px solid #855134;
border-radius: 4px;
color: white;
display: table-cell;
padding: 0 6px;
position: relative;
text-align: center;
vertical-align: middle;
}
.fplink.wide .box .row .cell {
padding: 0 5px;
}
.fplink.image {
width: 78px;
height: 78px;
}
.fplink.image .box .row .cell {
width: 70px;
height: 70px;
vertical-align: bottom;
}
.fplink.image .box .row .cell .image img {
width: 70px;
height: 70px;
}
.fplink.image .image {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
font-size: 75%;
z-index: 1;
}
.fplink.image a {
z-index: 2;
}
.fplink a {
display: block;
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 3px 5px;
color: white !important;
}
.fplink.image .image a {
padding: 0;
}
.fplink.image .link a {
border-top: 2px solid #505050;
background: #ddddb7 !important;
}
.fplink.wide a {
margin: 0 -5px;
}
.fplink.image a {
top: auto;
}
.fpvideos {
margin: 0 auto;
overflow: hidden;
text-align: center;
max-width: 480px;
}
.fpvideo {
position: relative;
padding-top: 25px;
padding-bottom: 56.25%;
height: 0;
}
.fpvideo iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/************************
/* Responsive main page *
/************************/
#mainContent .threecols .leftcol {
display: inline-block;
vertical-align: top;
width: 33.333%;
max-width: 33.333%;
}
#mainContent .threecols .centercol {
display: inline-block;
vertical-align: top;
width: 33.334%;
max-width: 33.334%;
}
#mainContent .threecols .rightcol {
display: inline-block;
vertical-align: top;
width: 33.333%;
max-width: 33.333%;
}
#mainContent .listheading {
font-weight: bold;
padding: 0;
margin: 0 0 10px 1.6em;
}
#mainContent ul {
padding: 0;
margin: 0 0 10px 1.6em;
}
#mainContent ul li {
list-style: none;
padding: 0;
margin: 0 0 10px 0;
}
#mainContent .button .wrapper {
display: block;
border-radius: 8px;
background: #45341E;
font-weight: bold;
text-align: center;
padding: 4px;
margin: 40px auto 0 auto;
width: 200px;
}
#mainContent .button a {
display: block;
border-radius: 7px;
background: #855134;
background: linear-gradient(to right, #855134, #D39750 50%, #855134 100%);
background: linear-gradient(to right, #855134, #D39750 50%, #855134 100%) border-box;
color: #ffffff !important;
font-weight: bold;
text-align: center;
padding: 8px;
}
#mainContent .heading {
color: #2f1e0b;
font-weight: bold;
font-size: 125%;
text-align: center;
margin-bottom: 10px;
}
#mainContent .mainBlockInner {
border-radius: 7px;
margin: 5px;
}
#mainContent .mainBlockInner img {
max-width: 100%;
height: auto;
}
#mainFeature {
flex: 0 1 100%;
}
#mainFeature .mainBlockInner {
background: linear-gradient(rgba(42, 25, 7, 0.6), rgba(42, 25, 7, 0.6)),
#1a0e05 url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/b/bf/Discord_Splash_Feature.png/revision/latest) no-repeat center center / cover;
color: #ffffff;
font-size: 105%;
text-align: center;
padding: 15px 4%;
line-height: 2;
}
#mainFeature .heading {
color: #ffffff;
font-size: 340%;
font-weight: bold;
line-height: 62px;
margin-bottom: 10px;
}
#mainFeature p,
#mainGuide p {
padding: 0 6%;
}
#mainGuide .mainBlockInner {
background: linear-gradient(rgba(42, 25, 7, 0.6), rgba(42, 25, 7, 0.6)) repeat left top,
#2a1907 url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/1/1f/Getting_Started.png/revision/latest) no-repeat center top / cover;
color: #ffffff;
font-size: 105%;
text-align: center;
padding: 80px 8%;
line-height: 2;
}
#mainGuide .heading {
color: #ffffff;
font-size: 340%;
font-weight: bold;
line-height: 62px;
}
#mainGuide .subheading {
color: #ffdb4e;
font-size: 250%;
line-height: 45px;
margin-bottom: 40px;
}
.fillBackground .mainBlockInner {
background: #fdf0d9;
padding: 10px;
}
.linkGridContainer {
display: flex;
flex-flow: row wrap;
align-content: flex-start;
justify-content: space-around;
width: 100%;
height: 100%;
}
.linkGridItem {
display: table;
box-sizing: border-box;
color: #ffffff;
text-align: center;
overflow: hidden;
width: 33.333%;
height: 130px;
padding: 2px;
}
.linkGridItem a {
display: table-cell;
background-position: center center, center center;
background-size: cover, cover;
color: #ffffff !important;
text-shadow: 1px 1px 2px #000000;
font-size: 110%;
font-weight: bold;
text-align: center;
vertical-align: middle;
padding: 0 25px;
}
/*Town*/
#locationLink1 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/3/3c/A-Township-Tale-Town-small.png/revision/latest)
}
/*Caves*/
#locationLink2 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*Wooded Valley*/
#locationLink3 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/74/A-Township-Tale-Forest-small.png/revision/latest)
}
/*The Ponds*/
#locationLink4 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*Dust Bowl*/
#locationLink5 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*Mountain Pass*/
#locationLink6 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*Battlefield*/
#locationLink7 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*The Town*/
#locationLink8 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}
/*The Town*/
#locationLink9 a {
background-image: url(https://static.wikia.nocookie.net/atownshiptale_gamepedia_en/images/7/73/A-Township-Tale-Caves-small.png/revision/latest)
}