MediaWiki:Mobile.css

/********************************************************************** * Mobile.css Only **********************************************************************/ body { background-color: #012034; color: #000000; }  background: #FCFCFC; color: #000000; border: 0px solid #bd912f; clear: both; margin: 0 8px; } h2 { border-bottom: 0px solid #AAAAAA; } .thumb { background: none repeat scroll 0 0 #FCFCFC; border: 1px solid #aaaaaa; margin-bottom: 10px; } table[style] { float: none !important; margin-left: 0 !important; width: 100%; } table { border: 0px solid #CCCCCC; border-collapse: collapse !important; border-spacing: 0 !important; margin: auto; margin-bottom: 15px; padding: 3px; }
 * 1) content_wrapper {

table td, table th { border: 0px solid #CCCCCC; padding: 3px; }

table.infobox { background: none repeat scroll 0 0 #f9f9f9; border: 1px solid #aaaaaa; width: 21em !important; margin: auto; }

/* fix table error in infobox. override rules in /extensions/MobileFrontend/resources/skins.minerva.content.styles/tables.less */ table.infobox{ display: table; border-collapse: separate !important; }

/********************************************************************** * from common.css **********************************************************************/

/* -- Hide page title on main page--- */ body.page-Terraria_Wiki h1.firstHeading { display:none; } /* -- */

/* -- Add diff accent to make even smaller changes visible -- */ .diffchange-inline { border: 1px #FF6666 dashed; } /* -- */

/* -- Add faded horizontal line to level-3 and level-4 headers -- */ h3:not(div#mw-head h3), h4 { border-bottom: 1px #CDCDCD solid; } /* -- */

/* -- SoundManager2Button icon (It looks useless) --- */ a.sm2_button { background-color: #3399CC; } a.sm2_button:hover, a.sm2_playing { background-color: #006A9F; } /* -- */

/* -- "terraria"-classed tables - */ table.terraria { margin: 1em 1em 1em 0; background: #F9F9F9; border: 1px #AFCFE2 solid; padding: 0.2em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em; } .terraria th, .terraria td { padding: 0.2em; } .terraria th { background: #E4F0F7; color: black; text-align: center; } .terraria caption { font-weight: bold; } /* -- */

/* -- Auto line separators for tables --- */ table.lined td { border-bottom:1px #AFCFE2 solid; } table.lined tr:last-of-type td { border-bottom:0; } table tr.bottomline td { border-bottom:1px #AFCFE2 solid; } table tr.topline td { border-top:1px #AFCFE2 solid; } /* -- */

/* -- Hack for using "border-collapse" and "border-radius" in the same table display */ /* -- by using one table nested within another - */ table.outer { white-space:nowrap; } table.inner { border-collapse:collapse; background:inherit; width:100%; } table.inner th { border:2px solid #FFF; } /* -- */

/* -- Other "plaincollapse" styling - */ /* Removes brackets from collapse/expand links for collapsible elements with "plaincollapse" class specified */ .plaincollapse .mw-collapsible-toggle { color:rgba(0, 0, 0, 0.0); } /* Other "plaincollapse" styling */ .plaincollapse .mw-collapsible-toggle a, .plaincollapse .mw-collapsible-toggle  a:link, .plaincollapse .mw-collapsible-toggle a:visited, .plaincollapse .mw-collapsible-toggle a:hover { font-weight:bold; color:#11688F; } /* -- */

/* -- Offset linked anchors - */ .anchor { display: block; height: 0; position: relative; top: -100px; z-index:-9999; visibility: hidden; } /* -- */

/* -- clear fix for float block - */ .clearfix{ *zoom: 1; } .clearfix::before,.clearfix::after{ content: " "; display: table; } .clearfix::after{ clear: both; } /* -- */

/* -- helper for nowrap - */ .nowrap{ white-space:nowrap; } /* -- */

/* -- note text - */ .note-text{ color: #666; } /* -- */

/* -- item link - */ .item-link{ white-space:nowrap; display: inline-block; } .item-link > a, .item-link > img{ display: inline-block; line-height: 0.1; vertical-align: middle; margin-left: 2px; } .item-link > span{ display: inline-block; vertical-align: middle; margin-left: 3px; padding-bottom: 2px; /* vertical align position same as baseline when single line*/ } .item-link > a:first-child, .item-link > img:first-child, .item-link > span:first-child{ margin-left: auto; } .item-link.-w > span{ line-height: 1.25; } .item-link .note{ color: #666; font-size: 85.7142%; /*12px/14px*/ } .item-link div.note{ /*note2*/ font-size: 100%; line-height: 1; position: relative; top: -2px; } .item-link span.note{ margin-left: 3px; } .item-link.-w span.note:last-child{ display: block; margin-left: auto; } .item-link.-w span.note:last-child{ line-height: 1; } .item-link div.note+.id{ margin-top: 2px; } .item-link.boldname >span span:first-child{ font-weight: bold; } .item-link.notecolor span.note{ color: inherit; } .item-link.note2color div.note{ color: inherit; } .item-link.block, .item-link.block > span{ display: block; } .item-link.notesize span.note{ font-size: 100%; } .item-link.note2size div.note{ font-size: 100%; font-size: 85.7142%; /*12px/14px*/ } .item-link.alignleft{ text-align: left; } .item-link.aligncenter{ text-align: center; } .item-link.alignright{ text-align: right; } .item-link.textleft>span{ text-align: left; } .item-link.textcenter>span{ text-align: center; } .item-link.textright>span{ text-align: right; } /* -- */

/* -- Infobox & infobox wrapper template style -- */ /* some rules just kept for "old" template. */ .infobox td, .infobox th { vertical-align: top; } .infobox caption { font-size: larger; margin-left: inherit; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px #AAA solid; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } /* styles for latest template */ .infobox{ border: 1px solid #aaa; border-radius: 8px; padding: 6px; float: right; font-size: 12px; background-color: #f9f9f9; color: black; margin: 0 0 0.5em 1em; }

.infobox.float-right{ float: right; margin: 0 0 0.5em 1em; } .infobox.float-left{ float: left; margin:0 1em 0.5em 0; } }.infobox.float-none{ float: none; margin:0 1em 0.5em 0; } .infobox table{ background-color: transparent; width: 100%; border-spacing: 0; } .infobox table th{ white-space: nowrap; padding: 2px; text-align: right; border-right: 1px solid #f9f9f9; width: 5em; vertical-align: middle; } .infobox table td{ padding: 2px; vertical-align: middle; } .infobox .title{ background-color: #E4F0F7; color: #063B5E; font-weight: bold; text-align: center; padding: 2px 0; } .infobox > .title{ font-size: 15px; padding: 8px 0; line-height: 1.2; } .infobox > .title span{ display: block; font-size: 12px; color: slategray; font-style: italic; } .infobox > .title span::before{ content: "(";  font-style: normal; } .infobox > .title span::after{   content: ")"; font-style: normal; } .infobox .variant{ background-color: #E4F0F7; color: #063B5E; font-weight: bold; text-align: center; padding: 2px 0; font-size: 12px; padding: 4px 0; line-height: 1.2; } .infobox .images{ position: relative; padding: 6px 0; min-height: 40px; text-align: center; display:-webkit-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex; /* direction=column, for IE11 */ -webkit-box-direction:normal;-webkit-box-orient:vertical;-moz-box-direction:normal;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column; -webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;-moz-justify-content:center;justify-content:center; -webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;-moz-align-items:center;align-items:center; } .infobox ul{ list-style: none; margin: auto; text-align: center; } .infobox .stat td > small{ font-size: 10.5px; font-weight: bold; } .infobox .stat td > small::before{ content: "("; } .infobox .stat td > small::after{  content: ")"; } .infobox tr.buff th, .infobox tr.buff td{ background-color: #E4F0F7; border: 1px solid #f9f9f9; } .infobox tr.buff th{ border-left: 0; } .infobox tr.buff td{ border-right: 0; } .infobox tr.buff td b{  font-weight: bold; white-space: nowrap; } .infobox .section.ids{ margin-top: 3px; border-top: 1px solid #aaa; text-align: center; font-size: 10.5px; background-color: #E4F0F7; color: #063B5E; } .infobox .section.ids li{ padding: 2px 0; border-bottom: 2px solid #f9f9f9; margin: 0; font-weight: bold; } .infobox .section.ids li:last-child{ border-bottom: 0; } .infobox .variant{ margin-bottom: 2px; } .infobox .drops.items th{ background-color: #E4F0F7; color: #063B5E; padding: 2px 3px 0; } .infobox .drops td:first-child{ text-align: left; } .infobox .drops td:last-child{ text-align: right; } .infobox .drops th:first-child{ text-align: left; border-right: 0; } .infobox .section.drops{ margin-top: 6px; margin-bottom: 6px; } .infobox .drops.money{ margin: 2px auto; } .infobox .drops.items td{ border-top: 1px #AFCFE2 solid; padding: 3px; } .infobox .image2{ text-align: center; padding-top: 3px; margin-top: 6px; border-top: 1px solid #aaa; } .infobox .drops tr.caption td{ border-top:2px #AFCFE2 solid; line-height:1; text-align:center; color:#063B5E; font-size: 10.5px; background:#f0f7fb; } .infobox .drops tr.group_end td{ border-bottom:4px #AFCFE2 solid; position: relative; } .infobox .drops tr.group_end td::after{ content: ""; display: block; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background-color: #f9f9f9; } /* for item infobox */ .item.infobox{ width: 21em; } .item.infobox .images .auto, .infobox.item .images .stack{ position: absolute; right: 3px; } .item.infobox .images .instrument { position: absolute; left: 3px; } .item.infobox .images .auto{ top: 3px; } .item.infobox .images .stack, .item.infobox .images .instrument{ bottom: 3px; } .item.infobox .images ul.inline li{ display: inline-block; padding: 0 8px 0 9px; margin: 2px auto; position: relative; } .item.infobox .images ul.inline li::before{ content: ""; display: block; width: 1px; background: #ccc; height: 80%; position: absolute; left: 0; top: 10%; } .item.infobox .images ul.inline li:first-child::before{ display: none; } .item.infobox .images ul.block li{ display: block; padding: 13px 0 0 0; margin: auto; position: relative; } .item.infobox .images ul.block li::before{ content: ""; display: block; height: 1px; background: #ccc; width: 80%; position: absolute; left: 10%; top: 6px; } .item.infobox .images ul.block li:first-child{ padding-top: 0; } .item.infobox .images ul.block li:first-child::before{ display: none; } .item.infobox ul.toolpower{ padding: 6px 0; cursor: pointer; } .item.infobox ul.toolpower li{ display: inline-block; padding: 0 0.5em; } /* for npc infobox */ .npc.infobox{ width: 23em; } .npc.infobox .statistics table th{ width: 6em; } .npc.infobox .images .map{ position: absolute; left: 3px; top: 3px; } /* infobox wrapper */ .infobox-wrapper.float-right{ float: right; margin-left: 0.5em; } .infobox-wrapper.float-left{ float: left; margin-right: 0.5em; } }.infobox-wrapper.float-none{ float: none; } .infobox-wrapper.float-right.direction-row .infobox, .infobox-wrapper.float-right.direction-row-reverse .infobox, .infobox-wrapper.float-right.direction-row .infobox.float-left, .infobox-wrapper.float-right.direction-row-reverse .infobox.float-left, .infobox-wrapper.float-right.direction-row .infobox.float-right, .infobox-wrapper.float-right.direction-row-reverse .infobox.float-right, .infobox-wrapper.float-right.direction-row .infobox.float-none, .infobox-wrapper.float-right.direction-row-reverse .infobox.float-none{ float: none; margin: 0 0 0.5em 0.5em; } .infobox-wrapper.float-left.direction-row .infobox, .infobox-wrapper.float-left.direction-row-reverse .infobox, .infobox-wrapper.float-left.direction-row .infobox.float-left, .infobox-wrapper.float-left.direction-row-reverse .infobox.float-left, .infobox-wrapper.float-left.direction-row .infobox.float-none, .infobox-wrapper.float-left.direction-row-reverse .infobox.float-none, .infobox-wrapper.float-left.direction-row .infobox.float-right, .infobox-wrapper.float-left.direction-row-reverse .infobox.float-right, .infobox-wrapper.float-none.direction-row .infobox, .infobox-wrapper.float-none.direction-row-reverse .infobox, .infobox-wrapper.float-none.direction-row .infobox.float-left, .infobox-wrapper.float-none.direction-row-reverse .infobox.float-left, .infobox-wrapper.float-none.direction-row .infobox.float-none, .infobox-wrapper.float-none.direction-row-reverse .infobox.float-none, .infobox-wrapper.float-none.direction-row .infobox.float-right, .infobox-wrapper.float-none.direction-row-reverse .infobox.float-right{ float: none; margin: 0 0.5em 0.5em 0; } .infobox-wrapper.float-left.direction-column .infobox, .infobox-wrapper.float-left.direction-column-reverse .infobox, .infobox-wrapper.float-left.direction-column .infobox.float-left, .infobox-wrapper.float-left.direction-column-reverse .infobox.float-left, .infobox-wrapper.float-left.direction-column .infobox.float-none, .infobox-wrapper.float-left.direction-column-reverse .infobox.float-none, .infobox-wrapper.float-left.direction-column .infobox.float-right, .infobox-wrapper.float-left.direction-column-reverse .infobox.float-right{ float: left; margin: 0 0.5em 0.5em 0; } .infobox-wrapper.float-none.direction-column .infobox, .infobox-wrapper.float-none.direction-column-reverse .infobox, .infobox-wrapper.float-none.direction-column .infobox.float-right, .infobox-wrapper.float-none.direction-column-reverse .infobox.float-right{ float: right; margin: 0 0 0.5em 0.5em; } .infobox-wrapper.float-none.direction-column .infobox.float-left, .infobox-wrapper.float-none.direction-column-reverse .infobox.float-left, .infobox-wrapper.float-none.direction-column .infobox.float-none, .infobox-wrapper.float-none.direction-column-reverse .infobox.float-none{ float: left; margin: 0 0.5em 0.5em 0; } .infobox-wrapper.float-right.direction-column .infobox, .infobox-wrapper.float-right.direction-column-reverse .infobox, .infobox-wrapper.float-right.direction-column .infobox.float-left, .infobox-wrapper.float-right.direction-column-reverse .infobox.float-left, .infobox-wrapper.float-right.direction-column .infobox.float-none, .infobox-wrapper.float-right.direction-column-reverse .infobox.float-none, .infobox-wrapper.float-right.direction-column .infobox.float-right, .infobox-wrapper.float-right.direction-column-reverse .infobox.float-right{ float: right; margin: 0 0 0.5em 0.5em; } /* -- */

/* */ table.diagram{ border-spacing: 0; background: transparent; } table.diagram tr{ height: 1px; text-align: center; } table.diagram td.l{	border-style: none; border-width: 1px; border-color: #a0a0a0; padding: 0.5em; } table.diagram td.n{	padding: 0; } table.diagram td.db{ border-bottom-style: dashed; } table.diagram td.dr{ border-right-style: dashed; } table.diagram td.sb{ border-bottom-style: solid; } table.diagram td.sr{ border-right-style: solid; } table.diagram td.nb{ border-bottom-style: solid; border-bottom-color: transparent; } table.diagram td.nr{ border-right-style: solid; border-right-color: transparent; } /*center dot fix*/ table.diagram td.cf{ position: relative; } table.diagram td.cf:after{ content: ""; display: block; position: absolute; width: 0.9px; height: 1px; border-bottom: 1px solid #a0a0a0; right: 0; bottom: 0; } .diagram-box{ border-width: 2px; border-style: solid; border-color: #AFCFE2; border-radius: 7px; padding: 0.25em 0.5em; } table.diagram td.no-border{ border: none; } table.diagram td.craft-station{ border: none; padding: 2px 0; } .crafting-tree{ overflow: auto; padding: 0.5em 0; } .crafting-tree .diagram{ white-space: nowrap; }

/* -- multi-column list - */ /* correct webkit/chrome uneven margin on the first column*/ .responsive-columns ul, .responsive-columns ol{ margin-top:0px; } .responsive-columns ul li:first-child, .responsive-columns ol li:first-child {  margin-top:0px; } /* -- */

/* -- */ /* dot list */ .dotlist{ margin: auto; } .dotlist > .title{ font-weight: bold; } .dotlist.nobold > .title{ font-weight: normal; } .dotlist > .title::after{ content: " "; } .dotlist > ul{ display: inline; margin: auto; list-sytle: none; } .dotlist > ul > li{ display: inline; } .dotlist > ul > li::after{ content: " • "; } .dotlist > ul > li:last-child::after{ display: none; } .dotlist.l > .title{ margin-right: 5px; } .dotlist.l > ul > li::after{ margin-left: 3px; margin-right: 3px; } .dotlist.xl > .title{ margin-right: 10px; } .dotlist.xl > ul > li::after{ margin-left: 6px; margin-right: 6px; } .dotlist.xxl > .title{ margin-right: 15px; } .dotlist.xxl > ul > li::after{ margin-left: 9px; margin-right: 9px; } .dotlist.xxxl > .title{ margin-right: 20px; } .dotlist.xxxl > ul > li::after{ margin-left: 12px; margin-right: 12px; } .dotlist.xxxxl > .title{ margin-right: 25px; } .dotlist.xxxxl > ul > li::after{ margin-left: 15px; margin-right: 15px; }

/* */ .coins { white-space: nowrap; } .coins s { display: none; } /* -- */

/* ======================== Extensions ===============================*/

/* -- This is the style for the tabs of the tabber extension. --- */ body ul.tabbernav li a, body ul.tabbernav li a:link, body ul.tabbernav li a:visited, body ul.tabbernav li a:hover { border-radius: .5em .5em 0 0; } /* -- */