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.9); } .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 { font-size: 11px; text-align: center; background-color: var(--pi-secondary-background); padding: 5px; } .portable-infobox .pi-item.pi-data .pi-data-value, .portable-infobox .pi-item.pi-data .pi-data-label { align-self: center; hyphens: none; } .portable-infobox .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; white-space: nowrap; } .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; }

.portable-infobox .data-table { table-layout: fixed; width: 100%; margin: 0; } .portable-infobox .data-table + .data-table { margin-top: 4px; } .portable-infobox .data-table > * > tr > th { width: 35%; text-align: right; padding-right: 10px; }

/* ================================================================== */ /* 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 { 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: silver; position: absolute; left: 0.2em; top: 0; } blockquote.quotation > div.c { padding: 0.25em 0 0 1em; margin-left: 3em; border-left: 1px solid silver; display: inline-block; } blockquote.quotation > div.c > p:last-child { text-align: right; font-size: 0.9em; margin: 0; } @media(max-width: 550px) { blockquote.quotation { clear: both; } }