Jump to content

MediaWiki:Mobile.css: Difference between revisions

From Stardew Valley Wiki
imported>Katzeus
mNo edit summary
imported>Margotbean
No edit summary
 
(71 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
/* CSS placed here will affect users of the mobile site */
/*
img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
*/
table {border-collapse: separate;}


#content {  
#content {  
   background-color: rgba(209,248,255,0.67);
   background-color: rgba(209,248,255,0.67);
   margin: 8px;
   margin: 8px;
  margin-top: -5px;
}
}


/* Body Styling */
/* Body Styling */
body {
body {
   background: #0A0523 url("skins/Vector/stardewimages/stardewbackground.png") no-repeat fixed center center / cover;
   background: #0A0523 url("extensions/StardewValley/images/stardewbackground.png") no-repeat fixed center center / cover;
}
}


Line 20: Line 32:
}
}


#
li#ca-watch {
  display:none;
}


code, pre {
pre {
     background-color: white;
     background-color: white;
}
}
Line 30: Line 44:
}
}


#footer {
#mainmenutable {
  display: table;
}
 
.mw-footer {
     background: rgba(0,0,0,0.8) none repeat scroll 0% 0%;
     background: rgba(0,0,0,0.8) none repeat scroll 0% 0%;
     color: #8c8c8c;
     color: #8c8c8c;
Line 37: Line 55:
}
}


.toc-mobile, .client-js .toc-mobile {
.toc-mobile {
   background-color: rgba(255,255,255,0.58);
   background-color: rgba(255,255,255,0.58) !important;
}
 
.mw-footer a {
    color: white;
}
 
.last-modified-bar {
    background-color: transparent;
}
}


#footer a {
.header .branding-box h1,
.header .branding-box a {
     color: white;
     color: white;
}
}


.header-container.header-chrome {
    background-color: transparent;
}
.overlay .overlay-content {
.overlay .overlay-content {
     background-color:white;
     background-color:white;
Line 66: Line 96:
}
}


#mainbannermiddle table.wikitable, table.skilltable {
#mainbannermiddle table.wikitable {
     width:100% !important;
     width:100% !important;
    display:table;
}
}


Line 82: Line 113:
#mainbannermiddle table {
#mainbannermiddle table {
   margin: 0 auto 0 !important;
   margin: 0 auto 0 !important;
}
#nametemplate {
  margin: 2px 5px 1px 2px;
  display:block;
  white-space:nowrap;
}
#nametemplate img {
  max-width: none;
}
#menucontent {
    padding-right:5px;
    padding-left: 5px;
    vertical-align:top;
}
.doublewidthmenu {
    width:100%;
    margin-top: 0px !important;
}
.doublewidthmenu td {
    width:50%;
}
table.menulocations {
  border:1px solid #8dcaf0;
  border-radius:11px;
  width:100% !important;
  box-shadow: 0px 1px rgba(0,0,0,0.3);
  margin-bottom:3px !important;
  margin-top:0px;
  display: block;
}
}


Line 130: Line 127:
   clear: both;
   clear: both;
   margin-top: 15px;
   margin-top: 15px;
  display: table;
}
}


Line 146: Line 144:
   border-collapse: separate;
   border-collapse: separate;
   border: none;
   border: none;
  display:block;
}
}
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
   border: 1px solid #8DCAF0 !important;
   border: 1px solid #8DCAF0 !important;
Line 166: Line 166:
}
}


#cellstretch {
table.wikitable img {
   width:100%;
   max-width:none;
}
 
#cellcenter {
  text-align:center;
}
}


#roundedborder {
table.wikitable.roundedborder {
   border:1px solid rgb(132,174,236);
   border:1px solid rgb(132,174,236);
   padding:5px;
   padding:5px;
   border-radius:11px;
   border-radius:11px;
   margin-top:15px;
   margin-top:15px;
  display:block;
}
}


#roundedborderfull {
  border:1px solid rgb(132,174,236);
  padding:5px;
  border-radius:11px;
  margin-top:15px;
  width:100%;
}


/* Infobox Styling */
/* Infobox Styling */
Line 196: Line 186:
   margin-bottom: 0px;
   margin-bottom: 0px;
   margin-top: 0px;
   margin-top: 0px;
  min-width:300px;
  border-collapse: separate;
}
}


Line 211: Line 203:
   padding-left:15px;
   padding-left:15px;
   padding-right:5px;
   padding-right:5px;
   width:105px;
   min-width:105px;
   border-color:#007448;
   border-color:#007448;
   box-shadow: 0px 1px rgba(0,0,0,0.3);
   box-shadow: 0px 1px rgba(0,0,0,0.3);
Line 217: Line 209:
   text-shadow: 0px 2px #00321f;
   text-shadow: 0px 2px #00321f;
}
}
#infoboxsection a {color: white;}


#infoboxdetail {
#infoboxdetail {
Line 226: Line 220:
#infoboxdetail p {
#infoboxdetail p {
   margin:0px;
   margin:0px;
}
#infoboxfooter {
  width:100%;
  padding-top:5px;
}
}


#infoboxdetail ul {
#infoboxdetail ul {
   margin: 0em 0px 0px 0.9em;
   margin: 0em 0px 0px 0.9em;
}
#infoboxsep {
  text-align:center;
  background-color:#03A007;
  vertical-align:top;
  border-color:#007448;
  box-shadow: 0px 1px rgba(0,0,0,0.3);
  color: white;
  text-shadow: 0px 2px #00321f;
}
}


Line 252: Line 231:
   border: 9px solid transparent;
   border: 9px solid transparent;
   padding: 12px;
   padding: 12px;
   -webkit-border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -webkit-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -o-border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   -o-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch;
   border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch;
   background-color:background-color: rgba(255,255,255,0.58);
   background-color: rgba(255,255,255,0.58);
}
}


#infoboxborder {
#infoboxborder {
   border: 12px solid transparent;
   border: 12px solid transparent;
   -webkit-border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -webkit-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -o-border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   -o-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   border-image: url("skins/Vector/stardewimages/menu_border.png") 15 stretch;
   border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch;
   background-color: rgba(255,255,255,0.58);
   background-color: rgba(255,255,255,0.58);
   float:right;
   float:right;
Line 272: Line 251:




/* Template Styling */
/* Object Quality Stars */
#qualitycontainer {
  postition:relative;
  height:48px;
  width:48px;
  text-align:left;
}


#qualitycontainermed {
.no-wrap {
   postition:relative;
   white-space: nowrap;
  height:32px;
  width:32px;
  text-align:left;
}
}


#qualitycontainersm {
  postition:relative;
  height:24px;
  width:24px;
  text-align:left;
}


#qualityimage img {
/* Skill page tables */
   position:absolute;
.skillsubheader {
   text-align: center;
  font-size: 12px;
  background-color: rgba(255, 255, 255, 0.79);
}
}


#qualityimage img {
  position:absolute;
}


#qualityimage p {
/* Copyright Templates */
   margin:0px;
#c-fairuse {
  padding:10px;
  max-width:700px;
   margin: 0px auto;
  border: 1px solid #8DCAF0;
  background-color: rgba(255, 255, 255, 0.58);
}
}


#recipeimage p {
#c-fairuse td {
   margin:0px;
   vertical-align:middle;
}
}


#recipeimage img {
  position:absolute;
  opacity:0.6;
  max-height: 48px;
  width: auto;
}


/* Quality Pricing */
/* Main Page Nav Menu Styling */
div.qualitycontainerprice {
#mainbannermiddle {
   margin-top: -7px;
   width:100%;  
   padding-right:12px;
   border: none;
}
}


div.qualitycontainerprice span {
@media screen and (max-width: 540px) {
  padding-left: 20px;
    #infoboxborder {
width: 95%;
    }
    #infoboxtable {
        max-width: none;
    }
    table#infoboxtable tbody {
width: 100%;
        display: inline-table;
    }
}
}


div.qualitycontainerprice img {
/* MainLinks Template Styling */
  position: absolute;
  margin-top:2px;
}


#qualityprice {
#platform_link_table {
   margin-top:-11px;
  width:100%;
  height: 100%;
  min-height: 242px;
  max-width:650px;
  text-align:center;
   margin-bottom: 0px;
  display: inline-table;
}
}


.no-wrap {
table#platform_link_table.wikitable tbody {
   white-space: nowrap;
   width:100% !important;
  display: table;
}
}


/* Talk Page Headers */
#version_link_table {
#talkheadertitle {
   width:100% !important;
   background-color: #03A007;
  max-width:650px;
   text-align: center;
   text-align:center;
   color: white;
   margin-top: 0px;
  text-shadow: 0px 2px #00321f;
   display: inline-table;
   font-size: 120%;
}
}


#talkheaderbody {
.version_number_left {
   width: 80%;
   text-align:left;
  margin: 0px auto 1em;
   vertical-align: top;
   border: 1px solid rgb(170, 170, 170);
  background-color: rgba(255, 255, 255, 0.58);
  color: rgb(0, 0, 0);
}
}


/* Crop Page Headers */
.version_number_right {
div.cropheader h3 {
   text-align:right;
   margin-top:0px;
   vertical-align: top;
   padding-top:0px;
}
}


/* Skill page tables */
.platform_links {
#skilltable {
   width: 20%;
   width:100%;
  height: 33%;
}
}


#skilltable th {
.platform_link a.external, .mobile_link a.external, .mobile_link_update a.external {
  width:18%;
    display:block;
    text-decoration:none;
    background:none !important;
    padding: 0px !important;
    line-height: 60px;
}
}


th.skilltableend {
#mobile_image a.external {
  width:28% !important;
    line-height: 190px;
}
}


td.skillsubheaderten {
#switch_link {
  width:14% !important;
   background: url("extensions/StardewValley/images/platform-switch.png") no-repeat center center;
  text-align: center;
  font-size: 12px;
   background-color: rgba(255, 255, 255, 0.79);
}
}


#skilltable td {
#ps4_link {
   vertical-align:top;
   background: url("extensions/StardewValley/images/platform-ps4.png") no-repeat center center;
}
}


.skillsubheader {
#xbox_link {
  text-align: center;
   background: url("extensions/StardewValley/images/platform-xbox.png") no-repeat center center;
  font-size: 12px;
   background-color: rgba(255, 255, 255, 0.79);
}
}


/* Map Template */
.mobile_link {
#mapcontainer {
  background: url("extensions/StardewValley/images/platform-mobile.png") no-repeat center center;
   position:relative;
  width: 80%;
   height: 100%;
}
}


#maplocation {
#platform-version {
   position:absolute;
   width:50%;
  vertical-align:top;
  display: inline;
}
}


/* Calendar Template */
#main-links-table {
 
   width:100%;
#calendar {
   text-align:center;
  position:relative;
   width:481px;
  height:337px;
   float:right;
}
}


#calendar img {
#platform_table_images {
  position:absolute;
    width: 100% !important;
    display: table;
    min-height: 196px;
}
}


#calendartable {
/* Main Links Template Update */
  position: absolute;
  margin: 64px 14px 0px 16px;
  border-collapse: collapse;
}


#calendartable td {
table#platform_links_list {
   width: 60px;
   width:100% !important;
   height: 59px;
  margin: auto;
   border-style: solid;
   height: 193px;
   display:initial;
}
}


#calendartable a {
.mobile_link_update {
   width: 100%;
  /* background: url("extensions/StardewValley/images/mobile_banner_2.png") no-repeat center center; */
  background: url("images/9/98/Tenyearanniv.png") no-repeat center center;
   width: 80%;
   height: 100%;
   height: 100%;
  display:block;
  font-size:0px;
}
}


#calendartable a:hover {
#steam_link {
   border-style:solid;
   background: url("extensions/StardewValley/images/platform-steam.png") no-repeat center center;
  border-color:blue;
  border-width:3px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
}


/* Copyright Templates */
#ios_link {
#c-fairuse {
   background: url("extensions/StardewValley/images/platform-ios.png") no-repeat center center;
  padding:10px;
  max-width:700px;
  margin: 0px auto;
  border: 1px solid #8DCAF0;
   background-color: rgba(255, 255, 255, 0.58);
}
}


#c-fairuse td {
#android_link {
   vertical-align:middle;
   background: url("extensions/StardewValley/images/platform-play.png") no-repeat center center;
}
}


/* History Section in articles */
@media screen and (max-width: 625px) {
table.historysection {
  #ps4_link {
   line-height: 0.8;
      background: url("extensions/StardewValley/images/platform-ps4_small.png") no-repeat center center;
  }
  #xbox_link {
      background: url("extensions/StardewValley/images/platform-xbox_small.png") no-repeat center center;
  }
  #steam_link {
      background: url("extensions/StardewValley/images/platform-steam_small.png") no-repeat center center;
  }
  #ios_link {
      background: url("extensions/StardewValley/images/platform-ios_small.png") no-repeat center center;
  }
   #android_link {
      background: url("extensions/StardewValley/images/platform-play_small.png") no-repeat center center;
  }
  .mobile_link {
      background: url("extensions/StardewValley/images/platform-mobile_small.png") no-repeat center center;
  }
 
}
}

Latest revision as of 02:42, 21 March 2026

/* CSS placed here will affect users of the mobile site */

/*
img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
*/

table {border-collapse: separate;}

#content { 
   background-color: rgba(209,248,255,0.67);
   margin: 8px;
   margin-top: -5px;
}

/* Body Styling */
body {
   background: #0A0523 url("extensions/StardewValley/images/stardewbackground.png") no-repeat fixed center center / cover;
}

#bodyContent hr {
    border-bottom: 1px solid #aaa;
    border-top: none;
}

#searchInput {
    padding: 7px;
}

li#ca-watch {
   display:none;
}

pre {
    background-color: white;
}

.client-js .collapsible-heading {
    border-bottom: solid 1px #aaa !important;
}

#mainmenutable {
   display: table;
}

.mw-footer {
    background: rgba(0,0,0,0.8) none repeat scroll 0% 0%;
    color: #8c8c8c;
    margin-top: 20px;
    border-top: none !important;
}

.toc-mobile {
   background-color: rgba(255,255,255,0.58) !important;
}

.mw-footer a {
    color: white;
}

.last-modified-bar {
    background-color: transparent;
}

.header .branding-box h1,
.header .branding-box a {
    color: white;
}

.header-container.header-chrome {
    background-color: transparent;
}
.overlay .overlay-content {
    background-color:white;
}

.overlay-header-container {
   background: #8dc4e5;
}

.overlay.visible {
   background: none;
}

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

#mw-mf-page-center, .animations #mw-mf-page-center {
  background-color:transparent !important;
}

#mainbannermiddle table.wikitable {
    width:100% !important;
    display:table;
}

/* Main Page Content */
body.page-Main_Page h1#section_0, body.page-Main_Page .pre-content heading-holder, body.page-Main_Page #bodyContent hr {
   display: none;
}

body.page-Main_Page .content table {
   width: 100% !important;
   margin: 0 auto 0;
}

#mainbannermiddle table {
   margin: 0 auto 0 !important;
}

#mainbannerleft, #mainbannerright, td#sidebar, th#sidebar {
   display: none;
}

/* Navboxstyling */
#navbox {
   margin:auto;
   border: 1px solid rgb(132, 174, 236);
   padding: 5px; 
   border-radius:11px;
   clear: both;
   margin-top: 15px;
   display: table;
}

td#infoboxdetail table {
   margin-top:0px;
   margin-bottom:0px;
}

.center {
   text-align: center;
}

/* Table Styling */
table.wikitable {
  background-color: transparent;
  border-collapse: separate;
  border: none;
  display:block;
}

table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td {
   border: 1px solid #8DCAF0 !important;
   padding: 0.2em;
   background-color: rgba(255, 255, 255, 0.58) !important;
}

table.wikitable > tr > th, table.wikitable > * > tr > th {
   background-color: #03A007 !important;
   text-align: center;
   border-color: #007448 !important;
   box-shadow: 0px 1px rgba(0, 0, 0, 0.3);
   color: white;
   text-shadow: 0px 2px #00321f;
}

table.wikitable > tr > th a, table.wikitable > * > tr > th a {
   color:white;
}

table.wikitable img {
   max-width:none;
}

table.wikitable.roundedborder {
   border:1px solid rgb(132,174,236);
   padding:5px;
   border-radius:11px;
   margin-top:15px;
   display:block;
}


/* Infobox Styling */

#infoboxtable {
   max-width:350px;
   width:100%;
   margin-bottom: 0px;
   margin-top: 0px;
   min-width:300px;
   border-collapse: separate;
}

#infoboxheader {
   text-align:center;
   font-size:24px;
   padding-top:5px;
   padding-bottom:5px;
   text-shadow: 0px 1.5px 0px rgba(0,0,0,0.2);
}

#infoboxsection {
   background-color:#03A007;
   vertical-align:top;
   padding-left:15px;
   padding-right:5px;
   min-width:105px;
   border-color:#007448;
   box-shadow: 0px 1px rgba(0,0,0,0.3);
   color: white;
   text-shadow: 0px 2px #00321f;
}

#infoboxsection a {color: white;}

#infoboxdetail {
   vertical-align:top;
   padding-left:3px;
   padding-right:12px;
}

#infoboxdetail p {
   margin:0px;
}

#infoboxdetail ul {
   margin: 0em 0px 0px 0.9em;
}


/* Graphical borders */
#menuborder {
   border: 9px solid transparent;
   padding: 12px;
   -webkit-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -o-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch;
   background-color: rgba(255,255,255,0.58);
}

#infoboxborder {
   border: 12px solid transparent;
   -webkit-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Safari 3.1-5 */
   -o-border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch; /* Opera 11-12.1 */
   border-image: url("extensions/StardewValley/images/menu_border.png") 15 stretch;
   background-color: rgba(255,255,255,0.58);
   float:right;
   border-radius: 12px;
   margin-left: 15px;
   margin-bottom:15px;
   min-width: 300px;
}



.no-wrap {
   white-space: nowrap;
}


/* Skill page tables */
.skillsubheader {
   text-align: center;
   font-size: 12px;
   background-color: rgba(255, 255, 255, 0.79);
}


/* Copyright Templates */
#c-fairuse {
   padding:10px;
   max-width:700px;
   margin: 0px auto;
   border: 1px solid #8DCAF0;
   background-color: rgba(255, 255, 255, 0.58);
}

#c-fairuse td {
   vertical-align:middle;
}


/* Main Page Nav Menu Styling */
#mainbannermiddle {
   width:100%; 
   border: none;
}

@media screen and (max-width: 540px) {
    #infoboxborder {
	width: 95%;
    }
    #infoboxtable {
        max-width: none;
    }
    table#infoboxtable tbody {
	width: 100%;
        display: inline-table;
    }
}

/* MainLinks Template Styling */

#platform_link_table {
   width:100%;
   height: 100%;
   min-height: 242px;
   max-width:650px;
   text-align:center;
   margin-bottom: 0px;
   display: inline-table;
}

table#platform_link_table.wikitable tbody {
   width:100% !important;
   display: table;
}

#version_link_table {
   width:100% !important;
   max-width:650px;
   text-align:center;
   margin-top: 0px;
   display: inline-table;
}

.version_number_left {
   text-align:left;
   vertical-align: top;
}

.version_number_right {
   text-align:right;
   vertical-align: top;
}

.platform_links {
   width: 20%;
   height: 33%;
}

.platform_link a.external, .mobile_link a.external, .mobile_link_update a.external {
    display:block;
    text-decoration:none;
    background:none !important;
    padding: 0px !important;
    line-height: 60px;
}

#mobile_image a.external {
    line-height: 190px;
}

#switch_link {
   background: url("extensions/StardewValley/images/platform-switch.png") no-repeat center center;
}

#ps4_link {
   background: url("extensions/StardewValley/images/platform-ps4.png") no-repeat center center;
}

#xbox_link {
   background: url("extensions/StardewValley/images/platform-xbox.png") no-repeat center center;
}

.mobile_link {
   background: url("extensions/StardewValley/images/platform-mobile.png") no-repeat center center;
   width: 80%;
   height: 100%;
}

#platform-version {
   width:50%; 
   vertical-align:top;
   display: inline;
}

#main-links-table {
   width:100%;
   text-align:center;
}

#platform_table_images {
    width: 100% !important;
    display: table;
    min-height: 196px;
}

/* Main Links Template Update */

table#platform_links_list {
   width:100% !important;
   margin: auto;
   height: 193px;
   display:initial;
}

.mobile_link_update {
   /* background: url("extensions/StardewValley/images/mobile_banner_2.png") no-repeat center center; */
   background: url("images/9/98/Tenyearanniv.png") no-repeat center center;
   width: 80%;
   height: 100%;
}

#steam_link {
   background: url("extensions/StardewValley/images/platform-steam.png") no-repeat center center;
}

#ios_link {
   background: url("extensions/StardewValley/images/platform-ios.png") no-repeat center center;
}

#android_link {
   background: url("extensions/StardewValley/images/platform-play.png") no-repeat center center;
}

@media screen and (max-width: 625px) {
   #ps4_link {
      background: url("extensions/StardewValley/images/platform-ps4_small.png") no-repeat center center;
   }
   #xbox_link {
      background: url("extensions/StardewValley/images/platform-xbox_small.png") no-repeat center center;
   }
   #steam_link {
      background: url("extensions/StardewValley/images/platform-steam_small.png") no-repeat center center;
   }
   #ios_link {
      background: url("extensions/StardewValley/images/platform-ios_small.png") no-repeat center center;
   }
   #android_link {
      background: url("extensions/StardewValley/images/platform-play_small.png") no-repeat center center;
   }
   .mobile_link {
      background: url("extensions/StardewValley/images/platform-mobile_small.png") no-repeat center center;
   }

}