MediaWiki:Common.css

/* CSS placed here will be applied to all skins */ /* This governs the sections on the Community portal */ .cpbox { display: flex; flex-direction: row-reverse; flex-wrap: wrap; }

.cpbox #admins { box-sizing: border-box; width: calc(33% - 10px); margin: 5px; flex-grow: 1; min-width: 300px; }

.cpbox #help { box-sizing: border-box; width: calc(67% - 10px); margin: 5px; flex-grow: 1; } /* CSS placed here will be applied to all skins */

/* 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 */ a.sm2_button { background-color: #3399CC; } a.sm2_button:hover, a.sm2_playing { background-color: #006A9F; } /* -- */

/* Infobox template style */

.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; } /* -- */

/* "terraria"-classed tables */ table.terraria { margin: 1em 1em 1em 0; background: #F9F9F9; border: 1px #AFCFE2 solid; padding: 0.2em; border-radius: .7em; -moz-border-radius: .7em; -webkit-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:solid #FFF; border-width:2px 2px 2px 2px; } /* table.inner th:first-of-type { border-width:0px 0px 0px 0px; } /* -- */

/* Custom list style for use in miniature bullet lists within infobox drop tables */ span.dropSub ul { list-style: none; margin-top: 0; margin-left: 0; padding-left: 0; } span.dropSub li { padding-left: 1em; text-indent: -1em; } span.dropSub li:before { content: "•"; } /* -- */

/* 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; } /* -- */

/* This removes brackets from collapse/expand links for collapsible elements with the "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: 100px; margin-top: -100px; z-index:-9999 visibility: hidden; } /* -- */

/*Removes Wiki Skin Images from appearing in Special:UnusedFiles */ /* */ /*  */ /*--- */

/*crafts table*/ div.crafts{ margin-bottom: 4px; line-height: 1.5; display: -webkit-box; display: -webkit-flex; display: -moz-flex; display: -ms-flexbox; display: flex; }

div.crafts .wrap{ border:1px solid #aaa; border-radius: 8px; padding: 6px 6px 2px; position: relative; } div.crafts .wrap::after{ content: ""; display: block; height: 1px; width: auto; background: #fcfcfc; position: absolute; bottom: 2px; left: 6px; right: 6px; } div.crafts caption{ font-size: 1.17em; background: #E4F0F7; padding: 0.25em; position: relative; margin-bottom: 2px; font-weight: bold; } div.crafts caption div._nav{ position: absolute; left: 1em; top: 0.5em; font-size: 10px; font-weight: normal; } div.crafts caption div._nav s{  text-decoration: none; } div.crafts th{ background: #E4F0F7; padding: 0.25em 0.5em; border-right: 1px solid #f9f9f9; border-left: 1px solid #f9f9f9; } div.crafts th:first-child{ border-left: 0; } div.crafts th:last-child{ border-right: 0; } div.crafts td{ padding: 0.25em 0.5em; border-bottom: 1px solid #ccc; } div.crafts td.station{ border-left: 1px solid #ccc; } div.crafts.nostation th.station, div.crafts.nostation td.station{ display: none; } div.crafts table ul{ margin: 0; list-style: none; } div.crafts table li{ margin: 3px auto; }

/* -- 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; margin-left: 3px; text-align: left; } .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; vertical-align: middle; } .item-link .note{ color: #666; font-size: 85.7142%; /*12px/14px*/ } .item-link div.note{ /*note2*/ font-size: 100%; line-height: 1; } .item-link span.note{ margin-left: 3px; } .item-link.-w span.note:last-child{ display: block; margin-left: auto; line-height: 1; } .item-link .id{ font-size:71.4285%; /*10px/14px*/ background-color:#E4F0F7; font-weight:bold; margin-top: 1px; padding: 0 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; margin-left: auto; } .item-link.notesize span.note{ font-size: 100%; } .item-link.note2size div.note{ 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 & wrapper*/ .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.item{ width: 21em; } .infobox.npc{ width: 23em; } .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.npc .statistics table th{ width: 6em; } .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-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; }

.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; -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; } .item.infobox .images .auto, .infobox.item .images .stack{ position: absolute; right: 3px; } .item.infobox .images .auto{ top: 3px; } .item.infobox .images .stack{ bottom: 3px; } .infobox ul{ list-style: none; margin: auto; text-align: center; } .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; } .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 .imageother{ 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; } /* multi-column list */ /* correct webkit/chrome uneven margin on the first column*/ .responsive-columns ul{ margin-top:0px; } .responsive-columns ul li:first-child {   margin-top:0px; }

/* ========================================================================== */ /* === New flex mainpage styles ============================================= */ /* ========================================================================== */   min-width: 300px; background: #ffffff; }
 * 1) mainpage-global-wrapper {

color: #000000; background: #ffffff; border: 7px solid #e4f0f7; margin: 1px 3px 5px; border-radius: 5px; box-shadow: 0 0 0 1px #e4f0f7; position: relative; padding: 5px; /* this value shouldn't be greater then "right" and/or "top" of #mf-wikiheader-toggle-link */ }
 * 1) mf-wikiheader {

transition: all 0.3s; }
 * 1) mf-wikiheader * {

position: absolute; z-index: 50; line-height: 1; right: 5px; top: 5px; cursor: pointer; font-size: 10px; display: none; }
 * 1) mf-wikiheader-toggle-link {

content: ""; vertical-align: middle; display: inline-block; width: 4px; height: 4px; transform: rotate(45deg); position: relative; left: -3px; border-left: 0; border-top: 0; border-right: 2px solid #0645ad; border-bottom: 2px solid #0645ad; top: -2px; }
 * 1) mf-wikiheader-toggle-link span:first-child::before {

content: ""; vertical-align: middle; display: inline-block; width: 4px; height: 4px; transform: rotate(45deg); position: relative; left: -3px; border-left: 2px solid #0645ad; border-top: 2px solid #0645ad; border-right: 0; border-bottom: 0; top: 1px; }
 * 1) mf-wikiheader-toggle-link span:last-child::before {

display: none; }
 * 1) mf-wikiheader-toggle-link span:first-child {

text-align: center; position: relative; z-index: 10; padding-bottom: 8px; }
 * 1) mf-wikiheader .main-title {

position: relative; z-index: 100; background: #ffffff; overflow: hidden; padding-top: 5px; padding-bottom: 12px; }
 * 1) mf-wikiheader .related-info {

margin: 0.25em 1em 1em; text-align: center; }
 * 1) mf-wikiheader .related-info .i {

margin-bottom: 0; }
 * 1) mf-wikiheader .related-info .i:first-child {

line-height: 1; display: -webkit-box; display: -webkit-flex; display: -moz-flex; display: -ms-flexbox; display: flex; -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; -ms-flex-wrap: wrap; -webkit-flex-wrap: wrap; -moz-flex-wrap: wrap; flex-wrap: wrap; margin: 0 auto; }
 * 1) latest-version {

vertical-align: middle; }
 * 1) latest-version * {

text-decoration: none; }
 * 1) latest-version a:hover {

padding: 0; background: none; color: #397d75; }
 * 1) latest-version a.external {

display: -webkit-box; display: -webkit-flex; display: -moz-flex; display: -ms-flexbox; display: flex; -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; -ms-flex-wrap: wrap; -webkit-flex-wrap: wrap; -moz-flex-wrap: wrap; flex-wrap: wrap; margin: 0; }
 * 1) latest-version ul {

display: -webkit-box; display: -webkit-flex; display: -moz-flex; display: -ms-flexbox; display: flex; -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; margin: 0.25em 0.5em; }
 * 1) latest-version ul li {

margin: auto auto auto 0.25em; text-align: left; }
 * 1) latest-version ul li > div {

display: block; }
 * 1) latest-version ul li > div > * {

display: inline; }
 * 1) latest-version ul li > div.pic > * {

font-size: 10px; }
 * 1) latest-version ul li > div > span {

font-size: 16px; }
 * 1) latest-version ul li > div > strong {

font-size: 10px; color: #999; }
 * 1) latest-version ul li > div > small {

text-align: center; }
 * 1) latest-version div.pic {

display: inline; }
 * 1) mf-wikiheader.collapsed #mf-wikiheader-toggle-link span:first-child {

display: none; }
 * 1) mf-wikiheader.collapsed #mf-wikiheader-toggle-link span:last-child {

display: none !important; }
 * 1) mf-wikiheader.collapsed .related-info {

display: none; }
 * 1) mf-wikiheader.collapsed .main-title .statistics {

@media(max-width: 600px) { #mf-wikiheader { padding: 15px; } }

.fp-box { border: 1px solid #e4f0f7; -moz-border-radius: 5px; border-radius: 5px; padding: 7px; box-sizing: border-box; margin: 0 2px 4px; }

.fake-bullet { padding: 1px 0; white-space: nowrap; }

.fake-bullet::before { content: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A); padding-right: 5px; }

text-align: center; margin: 0.5em 2px; }
 * 1) mainpage-global-wrapper .footer {

border: 1px solid #e4f0f7; -moz-border-radius: 5px; border-radius: 5px; background: #e4f0f7; padding: 0.5em; max-width: 25em; margin: auto; }
 * 1) mainpage-global-wrapper .footer > div {

/* ========================================================================== */ /* === New flex mainpage styles end ========================================= */ /* ========================================================================== */

/* Hide main page header */ body.page-Decimation_Mod_Wiki h1.firstHeading { display:none; }