MediaWiki:Common.css

/* TOC 1. Template:Achievement 2. Template:Ambox 3. Template:Copyrightbox 4. Template:Dialog 5. Template:Doc 6. Template:FPbox 7. Template:FPbutton 8. Template:FPplatformp 9. Template:Key 10. Template:List entry 11. Template:LoadBox 12. Template:SimpleNavbox 13. Portable Infobox 14. Community Portal 15. JS Link 16. Other


 * root {

--wds-midlight-color: rgba(var(--theme-page-text-color--rgb),0.15); }

/* Template:Achievement */ .achievement-hide { color: var(--theme-link-color); }

/* Template:Ambox */ .ambox, .ambox-tiny { align-items: center; background: rgba(var(--theme-page-text-color--rgb),.15); border-left: 5px solid transparent; box-sizing: border-box; display: flex; padding: 0.4em 0.8em; } .ambox { margin: 0 auto 1em auto; width: auto; } .ambox-tiny { margin: 0 auto 1em 0; width: max-content; } .ambox + .ambox { margin-top: -1em; } .ambox:not(.ambox-tiny) .ambox-image { margin: 0 1.5em 0 .5em; } .ambox .ambox-image img { height: 32px; width: 32px; } .ambox .ambox-type { display: block; font-weight: bold; } .ambox .ambox-type .ambox-info { display: block; font-weight: normal; } .ambox-tiny .ambox-type { margin-left: 8px; } .ambox-blue { border-left-color: #1e90ff; } .ambox-red { border-left-color: #b22222; } .ambox-orange { border-left-color: #f28500; } .ambox-yellow { border-left-color: #f4c430; } .ambox-purple { border-left-color: #9932cc; } .ambox-gray { border-left-color: #bba; } .ambox-green { border-left-color: #228b22; }

/* Template:Copyrightbox */ .lightbox-info-dialog-content .copyrightbox { background: transparent; } .copyrightbox { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; /*box-shadow: 0 6px 10px 0 rgba(26,26,26,.1);*/ font-size: 80%; padding: 5px; }

/* Template:Dialog */ .dialog { box-sizing: content-box; font-family: cursive; height: 104px; line-height: normal; position: relative; width: 389px; } .dialog .dialog-text { /* */ background: url(https://static.wikia.nocookie.net/undermine_gamepedia_en/images/0/00/Dialog_box_02.png/revision/latest/scale-to-width-down/375?cb=20190928121238) center no-repeat; color: #453022; font-size: 75%; font-weight: bold; height: 70px; left: 14px; padding: 15px 25px 0 81px; position: absolute; top: 20px; width: 270px; } .dialog .dialog-portrait { position: absolute; left: 0; top: 0; } .dialog .dialog-name { /* */ background: url(https://static.wikia.nocookie.net/undermine_gamepedia_en/images/2/21/Dialog_name.png/revision/latest/scale-to-width-down/254?cb=20190928124710) center no-repeat; font-weight: bold; height: 24px; left: 90px; padding: 5px 0 0 8px; position: absolute; text-shadow: 1px 1px black; width: 246px; } .dialog .dialog-button-yes, .dialog .dialog-button-no { /* */ background: url(https://static.wikia.nocookie.net/undermine_gamepedia_en/images/d/df/Button_regular.png/revision/latest/scale-to-width-down/100?cb=20190928120839) center no-repeat; font-size: 90%; height: 24px; padding: 5px 0 0 0; position: absolute; text-align: center; top: 90px; width: 100px; } .dialog .dialog-button-yes { left: 130px; } .dialog .dialog-button-no { left: 240px; }

/* Template:Doc */ .doc { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; /*box-shadow: 0 6px 10px 0 rgba(26,26,26,.1);*/ padding: 5px; } .doc-header { border-bottom: 1px var(--theme-page-text-color) solid; margin-bottom: 5px; padding-bottom: 5px; } .doc-title { background-image: linear-gradient(0deg,var(--wds-midlight-color) 54%,transparent 0); display: block; font-size: 132%; font-weight: 700; line-height: normal; margin: 0 auto 5px auto; padding-left: 3px; padding-right: 3px; width: max-content; } .doc .doc-links { display: block; margin-left: auto; margin-right: auto; width: max-content; }

/* Template:FPbox */ .fp-section { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; /*box-shadow: 0 6px 10px 0 rgba(26,26,26,.1);*/ padding: 5px; text-align: center; } .fp-section .fp-title, .fp-section .fp-header .fp-text-header { background-image: linear-gradient(0deg,var(--wds-midlight-color) 54%,transparent 0); font-size: 132%; font-weight: 700; line-height: normal; margin: 5px auto 10px auto; padding-left: 3px; padding-right: 3px; width: max-content; } .fp-section .fp-link a { background: rgba(var(--theme-page-text-color--rgb),.15); border-radius: 5px; display: inline-block; margin: 0.2em 0.1em; min-width: 200px; padding: 0.5em; text-align: center; white-space: nowrap; } .fp-section .fp-link a:hover { background: rgba(var(--theme-page-text-color--rgb),.3); }

/* Main Page Section order */ .fp-main { display: grid; grid-column-gap: 10px; grid-row-gap: 10px; grid-template-areas: "a" "b" "c" "d" "e"; grid-template-columns: 100%; } @media screen and (min-width:1290px) { .fp-main { grid-template-areas: "a c" "b c" "d e"; grid-template-columns: 69% 30%; } } .fp-main .fp-header { display: grid; grid-template-areas: "aa" "ab"; grid-template-columns: 100%; height: 100%; } .fp-main .fp-header #fp-file { grid-area: aa; margin-top: auto; margin-bottom: auto; } .fp-main .fp-header #fp-file img { max-width: 200px; height: auto; } @media screen and (min-width:1070px) { .fp-main .fp-header { grid-template-areas: "aa ab"; grid-template-columns: 25% 75%; }	.fp-main .fp-header #fp-file img { max-width: 100%; height: auto; } } .fp-main .fp-header #fp-text { grid-area: ab; margin: auto 0 auto 0; }

/* Template:FPbutton */ .fp-button { background: rgba(var(--theme-page-text-color--rgb),.15); border-radius: 5px; display: inline-block; margin: 0.1em; min-width: 200px; } .fp-button .image { display: block; text-align: center; width: 100%; } .fp-button a:not(.image) { display: inline-block; text-align: center; width: 100%; }

/* Template:FPplatform */ .fp-platform { display: inline-block; width: 75px; }

/* Template:Key */ kbd { background-color: #f8f9fa; color: #222; font-size: 80%; font-family: inherit; font-weight: bold; border: 1px solid #c8ccd1; border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 0 0 2px #fff inset; padding: 0.1em 0.4em; text-shadow: 0 1px 0 #fff; text-align: center; }

/* Template:List entry */ .entry { border: 1px solid var(--theme-page-text-color); display: inline-block; height: 175px; margin-right: 5px; margin-bottom: 5px; overflow-y: auto; width: 420px; } .entry .entry-image { display: inline-block; height: 100%; vertical-align: middle; width: 30%; } .entry .entry-image img { margin-top: 27.5px; } .entry .entry-text { display: inline-block; vertical-align: middle; width: 70%; }

/* Template:LoadBox */ .simplenavbox:not(.loadbox-navbox .simplenavbox), .loadbox-navbox { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; /*box-shadow: 0 6px 10px 0 rgba(26,26,26,.1);*/ clear: both; margin: -2px 0 0; padding: 0 4px 4px 4px; width: 100%; } .simplenavbox-title, .loadbox-navbox > p { background-image: linear-gradient(0deg,var(--wds-midlight-color) 54%,transparent 0); line-height: normal; margin: 10px auto auto auto; padding-left: 3px; padding-right: 3px; width: max-content; } .loadbox-navbox .simplenavbox-top { display: none; }

/* Template:SimpleNavbox */ .simplenavbox table { margin-left: -4px; margin-right: -2px; } .simplenavbox table:first-child { margin-top: -2px; } .simplenavbox table:last-child { margin-bottom: -2px; } .simplenavbox th:not(.simplenavbox-top) { background: rgba(var(--theme-page-text-color--rgb),.15); border-radius: 2px; font-size: 12px; font-weight: 700; padding: 0 10px; vertical-align: middle; } .simplenavbox td { font-size: 14px; font-weight: 300; padding: 0 0 0 2px; width: 100%; } .simplenavbox td ul { display: inline; margin-left: 0; padding: 0; } .simplenavbox td li { display: inline; } .simplenavbox td li:not(:last-child) { padding-right: 0.286em; } .simplenavbox td li:not(:last-child)::after { background-color: var(--theme-page-text-color); bottom: 0.214em; content: ''; display: inline-block; height: 3px; left: 0.286em; position: relative; width: 3px; } .simplenavbox td li li:first-child::before { content: '(';	font-weight: normal; } .simplenavbox td li li:last-child::after {	content: ')'; font-weight: normal; } .simplenavbox td li li li { font-size: x-small; }

/* Portable Infobox */ .portable-infobox { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; } .portable-infobox.type-item .pi-image { /* */ background: url(https://static.wikia.nocookie.net/undermine_gamepedia_en/images/4/49/Item_Background.png/revision/latest?cb=20200807101820) center no-repeat; } .portable-infobox .pi-image { border: 0; margin: 0; padding: 0; vertical-align: baseline; } .portable-infobox .pi-title { background: rgba(var(--theme-page-text-color--rgb),.15); border-bottom: none !important; border-radius: 4px; margin: 5px; text-align: center; } .portable-infobox .pi-header { background-color: transparent; border: none !important; font-size: 100%; text-align: center; } .portable-infobox .pi-item:last-child { padding-bottom: 5px; } .portable-infobox .pi-data { border: none; padding: 2px 5px; } .portable-infobox .pi-data-value { padding: inherit; } .portable-infobox .pi-data-label { background: rgba(var(--theme-page-text-color--rgb),.15); border-radius: 4px; padding: inherit; text-align: right; } .portable-infobox .pi-section-label { color: var(--theme-page-text-color); } .portable-infobox .pi-section-tab.pi-section-active { box-shadow: inset 0 -2px 0 0 #FFF; } .portable-infobox .pi-section-tab.pi-section-active:hover { box-shadow: inset 0 -2px 0 0 #999; } .pi-data, .pi-group { border-bottom: 0; } .portable-infobox .minor-curse-icon::before, .portable-infobox .major-curse-icon::before, .portable-infobox .gold-icon::before, .portable-infobox .thorium-icon::before { content: ''; display: inline-block; height: 16px; vertical-align: middle; width: 16px; } .portable-infobox .major-curse-icon::before { /* */ background: url('https://static.wikia.nocookie.net/undermine_gamepedia_en/images/e/e9/Major_Curse.png/revision/latest') center / contain no-repeat; } .portable-infobox .minor-curse-icon::before { /* */ background: url('https://static.wikia.nocookie.net/undermine_gamepedia_en/images/2/2c/Minor_Curse.png/revision/latest') center / contain no-repeat; } .portable-infobox .gold-icon::before { /* */ background: url('https://static.wikia.nocookie.net/undermine_gamepedia_en/images/8/83/Gold10.png/revision/latest') center / contain no-repeat; } .portable-infobox .thorium-icon::before { /* */ background: url('https://static.wikia.nocookie.net/undermine_gamepedia_en/images/6/67/Thorium1.png/revision/latest') center / contain no-repeat; } .portable-infobox .gold-icon { color: #FFB400; } .portable-infobox .thorium-icon, .portable-infobox .minor-curse-icon, .portable-infobox .major-curse-icon { color: #C88AFF; } .portable-infobox .legendary { color: #CD0E20; } .portable-infobox .rare { color: #CD770E; } .portable-infobox .pi-data[data-source="unique"] .pi-data-value { color: #DF4949; text-align: center; width: inherit; } .portable-infobox .wds-tabs::after { align-self: stretch; content: ""; width: 100%; } .portable-infobox .wds-tabs::before { align-self: stretch; content: ""; width: 100%; }

/* Community portal */ .cpbox { display: flex; flex-direction: row-reverse; flex-wrap: wrap; }

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

.cpbox #help { box-sizing: border-box; flex-grow: 1; margin: 5px; width: calc(67% - 10px); }

/* JS Link */ .jslink { color: #f58120; font-weight: 500; } .jslink:hover { cursor: pointer; text-decoration: underline; }

/* Other */ .skin-fandomdesktop #filetoc { background: rgba(var(--theme-accent-color--rgb),.7); border-radius: 4px; border-color: transparent; }