MediaWiki:Fandomdesktop.css

/* --- Navigation bars --- */ .global-navigation { filter: hue-rotate(50deg) saturate(10%); } .fandom-sticky-header { background-color: #565660; box-shadow: 0 3px 14px 0 rgba(0,0,0,0.4); } .wds-global-footer { background-color: var(--theme-body-background-color); } /* Custom colors */ .theme-fandomdesktop-light { --theme-border-color: #ccbec5; }

.theme-fandomdesktop-dark { /*--theme-border-color: #ccbec5;*/ } /**/ .theme-fandomdesktop-dark #music-box-table { background-color: #36363c } .theme-fandomdesktop-dark .fandom-community-header__image { filter: drop-shadow(0 0 15px black); }

.theme-fandomdesktop-dark a[title="Auto-use"] { filter: invert(0.75); }

/* --- CUSTOM styles --- */ /* Fixes */ table { border-collapse: inherit; border-spacing: revert; }	background-color: var(--theme-body-background-color); border: none; margin-bottom: 1em; } .mobileonly { display: none; }
 * 1) filetoc {

.infobox, .infoboxtable, .craftbox, .infoborder, table.terraria { color: var(--theme-border-color); } .infobox tbody, .infoboxtable tbody, .craftbox tbody, .infoborder tbody, table.terraria tbody { color: var(--theme-page-text-color); }

/*---*/

.colbox { background-color: var(--theme-accent-color) !important; color: var(--theme-page-text-color) !important; }

/* */

/* -- "terraria" box style. --*/ .terraria { border: 1px #AFCFE2 solid; padding: 8px 12px; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; position: relative; }

.terraria > .heading, .terraria > .mw-collapsible-content > .heading { background-color: var(--theme-accent-color); text-align: center; font-weight: bold; line-height: 2; min-height: 1em; margin: auto -4px; padding: 0; font-size: inherit; margin-top: 8px; } .terraria > .heading:first-child, .terraria > .mw-collapsible-content > .heading:first-child { margin-top: auto; } .terraria > .heading + *, .terraria > .mw-collapsible-content > .heading + * { padding-top: 8px; } .terraria > .mw-collapsible-toggle { position: absolute; line-height: 1; right: 12px; top: 12px; font-size: 12px; }

.terraria > .mw-collapsible-toggle > .mw-collapsible-bracket { display: none; }

.terraria > .mw-collapsible-toggle: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; }

.terraria > .mw-collapsible-toggle.mw-collapsible-toggle-collapsed:before { border-left: 0; border-top: 0; border-right: 2px solid #0645ad; border-bottom: 2px solid #0645ad; top: -2px; }

/* -- "terraria"-classed tables - */ table.terraria { margin: 1em 1em 1em 0; background-color: var(--theme-body-background-color); 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-color: var(--theme-accent-color); color: var(--theme-page-text-color); text-align: center; }

.terraria caption { font-weight: bold; }

/* -- */

.template-heading { border-radius: 10px; background-color: var(--theme-accent-color); padding: 4px; margin: 3px; font-weight: bold; text-align: center; color: var(--theme-page-text-color); font-size: 120%; }

.fp-section { padding:1em; text-align: left; color: var(--theme-page-text-color); }

/* INFOBOXES */ .infobox { font-size: 12px; background-color: var(--theme-body-background-color); border: 1px solid #cccccc; clear: right; float: right; margin-bottom: .5em; margin-left: 1em; padding: .2em; border-radius: 8px; }

.infoboxtable { background-color: var(--theme-body-background-color); border: 1px solid #aaaaaa; color: var(--theme-page-text-color); float: right; font-size: 89%; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; width: 300px; }

.infoboxtable td { vertical-align: top; }

.infoboxtable td > div { background-color: var(--theme-page-text-color); border: 2px solid inherit; border-radius: 5px; font-weight: bold; padding: 0.5px 7px; text-align: right; }

.infoboxname { background-color: var(--theme-page-text-color); font-size: 110%; font-weight: bold; padding: 0.5em; }

.infoboxdetails { background-color: var(--theme-page-text-color); padding: 0em; } .infobox .section.ids { margin-top: 3px; border-top: 1px solid #aaa; text-align: center; font-size: 10.5px; background-color: var(--theme-accent-color); color: var(--theme-page-text-color); }

.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 & 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: var(--theme-body-background-color); margin: 0 0 0.5em 1em; } @media(max-width:450px){ .infobox{ float: none; } } .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 td{ padding: 2px; vertical-align: middle; } .infobox .title{ background-color: var(--theme-accent-color); color: var(--theme-page-text-color); 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; font-style: italic; } .infobox > .title span::before{ content: "(";  font-style: normal; } .infobox > .title span::after{   content: ")"; font-style: normal; } .infobox .variant { background-color: var(--theme-accent-color); color: var(--theme-page-text-color); font-weight: bold; text-align: center; 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: var(--theme-accent-color); border: 1px solid #f9f9f9; }

.infobox tr.buff th{ border-left: 0; } .infobox tr.buff td{ border-right: 0; padding-left: 3px; } .infobox tr.buff td b{  font-weight: bold; } .infobox .variant{ margin-bottom: 2px; white-space: nowrap; } .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; } .infobox .drops.money{ margin: 2px auto; } .infobox .image2{ text-align: center; padding-top: 3px; border-top: 1px solid #aaa; } .infobox .drops.items{ margin-bottom: 1px; } .infobox .drops.items li{ border-bottom: 1px #AFCFE2 solid; padding: 3px 0; margin-bottom: auto; display:-webkit-box; display:-webkit-flex; display:-moz-flex; display:-ms-flexbox; display:flex; -ms-flex-wrap:nowrap; -webkit-flex-wrap:nowrap; -moz-flex-wrap:nowrap; flex-wrap:nowrap; -webkit-box-direction:normal; -webkit-box-orient:horizontal; -moz-box-direction:normal; -moz-box-orient:horizontal; -webkit-flex-direction:row; -ms-flex-direction:row; flex-direction:row; -webkit-box-pack:justify; -ms-flex-pack:justify; -webkit-justify-content:space-between; -moz-justify-content:space-between; justify-content:space-between; -webkit-box-align:center; -ms-flex-align:center; -webkit-align-items:center; -moz-align-items:center; align-items:center; } .infobox .drops.items li:first-child { background-color: var(--theme-accent-color); color: var(--theme-page-text-color); padding: 2px 3px 0; }

.infobox .drops.items li > div{ display: block; } .infobox .drops.items li > div:first-child{ text-align: left; } .infobox .drops.items li > div:last-child{ text-align: right; } .infobox .drops.items li:last-child{ border-bottom: none; } .infobox .drops.items li.caption { /*border-top: 2px var(--theme-body-background-color) solid;*/ background: var(--theme-page-accent-mix-color); } .infobox .drops.items li.group_end{ border-bottom-color: var(--theme-accent-color) } .infobox .drops.items li.group_end::after{ background-color: var(--theme-body-background-color); }

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