MediaWiki:Common.css

/* CSS placed here will affect users of all desktop skins */

/* Common CSS for both desktop and mobile skins */ @import url(https://terraria.fandom.com/index.php?title=MediaWiki:Common-base.css&action=raw&ctype=text/css);

.catlinks { background-color: var(--theme-accent-color); border: 1px ridge var(--theme-border-color); border-radius: .3em; -moz-border-radius: .3em; -webkit-border-radius: .3em; }

/* More noticeable diff coloring */ .diff td.diff-context { background: none repeat scroll 0 0 transparent; color: var(--theme-page-text-color); border-color: rgba(var(--theme-border-color--rgb), 0.5); } .diff td.diff-deletedline { background-color: #FFE49C; border-color: #FFE49C; color: #000; } .diff td.diff-deletedline .diffchange { background-color: #feeec8; color: #000; } .diff td.diff-addedline { background-color: #A3D3FF; border-color: #A3D3FF; color: #000; } .diff td.diff-addedline .diffchange { background-color: #d8ecff; color: #000; }

/* ================================================================== */ /* Portable infobox theme */ /* ================================================================== */

.portable-infobox { --pi-border-color: var(--theme-border-color); --pi-border-color--rgb: var(--theme-border-color--rgb); padding: 6px; border-radius: 0.5em; } .portable-infobox .pi-item.pi-data { padding-bottom: 6px; padding-top: 6px; padding-left: 4px; padding-right: 4px; } .portable-infobox .pi-item.pi-data.pi-border-color { border-color: rgba(var(--pi-border-color--rgb), 0.8); } .page-content .portable-infobox .pi-title { padding: 7px; font-size: 15px; } .page-content .portable-infobox .pi-header { padding: 6px; font-size: 12px; text-align: center; } .portable-infobox .pi-collapse .pi-header:first-child { padding-right: 0; } .portable-infobox .pi-collapse .pi-header:first-child::after { width: 7px; height: 7px; margin-top: -4px; } .portable-infobox .pi-collapse-closed .pi-header { margin-bottom: 2px; } .portable-infobox .pi-title + .pi-item .pi-header { margin-top: 2px; } .portable-infobox .pi-navigation:not([data-item-name="data-nav"]) { font-size: 11px; text-align: center; background-color: var(--pi-secondary-background); padding: 5px } .portable-infobox .pi-navigation[data-item-name="data-nav"] { padding: 0; } .portable-infobox .pi-navigation[data-item-name="data-nav"].pi-secondary-font { font-weight: revert; } .portable-infobox .pi-item.pi-data .pi-data-value, .portable-infobox .pi-item.pi-data .pi-data-label { align-self: center; hyphens: none; } /* Align data labels to the right (except for stacked layout) */ .portable-infobox:not(.pi-layout-stacked) .pi-item.pi-data .pi-data-label { text-align: right; } .portable-infobox .pi-data-value abbr[title] { text-decoration: none; } .portable-infobox .pi-image { margin: 6px; } /* Automatically resize images inside data values if they are too big for the infobox */ .portable-infobox .pi-data-value .image img { max-width: 100%; width: auto; height: auto; } .portable-infobox .pi-caption { padding-bottom: 0; } /* Hide tabs if there is only 1 section */ .portable-infobox .wds-tabs .wds-tabs__tab:only-of-type { display: none; } /* Center tabs if there's no scroll */ .portable-infobox .wds-tabs__wrapper .wds-tabs { justify-content: center; } .portable-infobox .wds-tabs__wrapper.right-arrow-visible .wds-tabs, .portable-infobox .wds-tabs__wrapper.left-arrow-visible .wds-tabs, .portable-infobox .wds-tabs__wrapper.both-arrows-visible .wds-tabs { justify-content: left; } /* Slightly reduce size of tab labels */ .portable-infobox .wds-tabs .wds-tabs__tab-label { font-size: 14px; height: 34px; padding: 0; margin: 0 8px; } .portable-infobox .wds-tabs__wrapper { margin-bottom: 10px; } /* Remove li bullets added by FandomDesktop */ .pi-data-value ul li::before { display: none; } .portable-infobox .pi-secondary-background + .pi-secondary-background, .portable-infobox .pi-group .pi-smart-group:first-of-type, .portable-infobox .pi-group .pi-horizontal-group:first-of-type .pi-data-label { border-top: none; }

.portable-infobox .tags > li { display: inline-block; border-radius: 3px; border: 1px solid rgba(var(--theme-link-color--rgb), 0.4); padding: 0 4px; margin: 3px 6px 3px auto; } .portable-infobox .tags.unlinked > li, .portable-infobox .tags > li.unlinked { border-color: rgba(var(--theme-page-text-color--rgb), 0.4); }

.portable-infobox .pi-title[data-item-name="subtitle"] { margin-top: -12px; font-size: 12px; font-style: italic; line-height: 12px; color: var(--custom-note-light-color); padding-bottom: 8px; }

/* ================================================================== */ /* Templates */ /* ================================================================== */

/* Template:Multi-column TOC */ .horizontal-toc { /* to match styles of .toc */ border: 1px solid var(--theme-border-color); border-radius: 3px; margin: 24px auto 24px 0; } .horizontal-toc #toc { display: block; border: 0; padding: 0; margin: 0; } .horizontal-toc .toctitle { -webkit-column-span: all; column-span: all; margin-bottom: 9px; min-width: 0 !important; } .horizontal-toc .toctogglecheckbox:checked ~ .toctitle { margin-bottom: 0; } .horizontal-toc ul:after { content: ''; display: block; -webkit-column-span: all; column-span: all; height: 9px; } .horizontal-toc .toctogglecheckbox:checked ~ ul:after { display: none; } .horizontal-toc .toctitle h2 { margin: 0; } .horizontal-toc ul, .horizontal-toc ol { margin-top: 0; padding: 0; } .horizontal-toc ul li:first-child, .horizontal-toc ol li:first-child { margin-top: 0; }

/* Template:Quotation */ blockquote.quotation { --quotation-mark-color: rgba(var(--theme-page-text-color--rgb), 0.25); position: relative; font-style: italic; padding: 0 1em; margin: 1em auto; overflow: hidden; } blockquote.quotation > div.m { display: block; font: bold 5em Times New Roman, Times, Georgie, serif; line-height: 0.8; color: var(--quotation-mark-color); position: absolute; left: 0.2em; top: 0; } blockquote.quotation > div.c { padding: 0.25em 0 0 1em; margin-left: 3em; border-left: 1px solid var(--quotation-mark-color); display: inline-block; } blockquote.quotation > div.c > p:last-child { text-align: right; font-size: 0.9em; margin: 0; } @media (max-width: 640px) { blockquote.quotation { clear: both; } }

/* From the gg wiki */

.crafts td.result .version-note{ margin-bottom: 0.25em; }

.crafts .note-text{ line-height: 1.25; vertical-align: middle; }

.recipe.compact .result-note{ margin-left: 2px; }

/* ================================================================== */ /* Gadgets */ /* ================================================================== */

/* Reference Tooltips */ /* For more info see Reference Tooltips */ .referencetooltip { position: absolute; list-style: none; opacity: 0; font-size: 13px; line-height: 1.5em; color: var(--theme-page-text-color); margin: 0; z-index: 5; padding: 0; } .referencetooltip li { border: var(--theme-link-color) 2px solid; border-radius: 5px; max-width: 320px; padding: 10px 8px 13px 8px; margin: 0; background-color: var(--theme-page-background-color--secondary); box-shadow: 2px 4px 2px rgba(0,0,0,0.3); -moz-box-shadow: 2px 4px 2px rgba(0,0,0,0.3); -webkit-box-shadow: 2px 4px 2px rgba(0,0,0,0.3); } .referencetooltip li + li { margin-left: 7px; margin-top: -2px; border: 0; padding: 0; height: 3px; width: 0; background-color: transparent; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; border-top: 12px var(--theme-link-color) solid; border-radius: 5px; border-right: 7px transparent solid; border-left: 7px transparent solid; } .referencetooltip > li + li::after { content: ''; border-top: 8px var(--theme-page-background-color--secondary) solid; border-right: 5px transparent solid; border-left: 5px transparent solid; margin-top: -12px; margin-left: -5px; z-index: 1; height: 0; width: 0; display: block; } .client-js body .referencetooltip li li { border: none; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; height: auto; width: auto; margin: auto; padding: 0; position: static; } .RTflipped { padding-top: 13px; } .referencetooltip.RTflipped li+li { position: absolute; top: 2px; border-top: 0; border-bottom: 12px var(--theme-link-color) solid; border-radius: 5px; } .referencetooltip.RTflipped li+li::after { border-top: 0; border-bottom: 8px var(--theme-page-background-color--secondary) solid; position: absolute; margin-top: 7px; } .RTsettings { float: right; height: 16px; width: 16px; cursor: pointer; background-image: url(//upload.wikimedia.org/wikipedia/commons/e/ed/Cog.png); margin-top: -9px; margin-right: -7px; transition: opacity 0.15s; opacity: 0.6; } .RTsettings:hover { opacity: 1; } .RTTarget { border: var(--theme-link-color) 2px solid; border-radius: 5px; }

/* Geshi syntax highlighting */ .mw-highlight pre { background: #282828 !important; color:#fff !important; } .mw-highlight, .kw1 { color: #FFFFFF; font-weight: bold; } .nf { color: aqua; } /* Operators */ .mw-highlight .p, .mw-highlight .o { color: #fff; font-weight: bold; } /* Comments */ .mw-highlight .c { color: #8d9e6b; font-weight: bold; } /* HTML Tags */ .mw-highlight .nt { color: #bfe431; } /* IDs */ .mw-highlight .nn { color: #a8a8ff; } /* Classes */ .mw-highlight .nc { color: #7676ff; } /* Pseudo-classes */ .mw-highlight .nd { color: #cf82ff; } /* Properties */ .mw-highlight .k, .mw-highlight .kp { color: #fff; font-weight: normal; } /* Keywords */ .mw-highlight .nb { color: #ff5858; } /* Text values, strings */ .mw-highlight .kc, .mw-highlight .s1, .mw-highlight .s2, .mw-highlight .sx, .mw-highlight .n { color: #00c6d2; } /* Numeric values */ .mw-highlight .mi, .mw-highlight .mf { color: #60feff; font-weight: bold; } /* Units */ .mw-highlight .kt { color: #ff3f85; font-weight: bold; } /* #Color values */ .mw-highlight .mh { color: #b2d241; } /* !important */ .mw-highlight .cp { color: #F37F20; } /* JS generic */ .mw-highlight .nx { color: #a8a8ff; } /* Highlight fields inside code class (e.g. Template:Code) */ .code .mw-highlight { background: var(--theme-page-background-color) !important; color: var(--theme-page-text-color) !important; }

/* pre class to mimic pre tag */ .page-content .pre { word-wrap: normal; background-color: var(--theme-page-background-color--secondary); border: 1px solid var(--theme-border-color); color: var(--theme-page-text-color); line-height: 1.2; overflow: auto; padding: 12px; white-space: pre-wrap; }