MediaWiki:Themes.css

From UnderMine Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* TOC
 1. Base styles
 2. Header and Title
 3. Label and Data
 4. Tabs
 5. Currency icons
 6. Item rarity
 7. Item types
*/

/* Base styles */
.portable-infobox {
	background-color: #b99a6d;
	border: 3px solid #1f3042;
	border-radius: 0.25rem;
	padding: 0.5rem;
}
html.theme-dark .portable-infobox {
	background-color: #242424;
	border-color: var(--undermine-border);
}
.portable-infobox .pi-image img {
	max-width: 100%;
}
.portable-infobox.pi-type-item .pi-image img { /* [[File:Item Background.png]] */
	background: url(https://undermine.wiki.gg/images/4/49/Item_Background.png) center no-repeat;
}
.portable-infobox .pi-caption {
	padding: 0;
}
.portable-infobox .pi-image {
	border: 0;
	margin: 0;
	padding: 5px;
	vertical-align: baseline;
}
.portable-infobox .pi-item:last-child {
	padding-bottom: 3px;
}
.pi-data,
.pi-group {
	border-bottom: 0;
}
.portable-infobox .pi-navigation {
	background-color: transparent;
	text-align: center;
}

/* Header and Title */
.portable-infobox .pi-header,
.portable-infobox .pi-title {
	background-color: #365857;
	border: 2px solid #23130c;
	border-radius: 0.25rem;
	box-shadow: inset 0 0 0 2px #b49a6d;
	color: #fff;
	font-weight: 700;
	margin-bottom: 4px;
	text-align: center;
}

/* Label and Data */
.portable-infobox .pi-data-label {
	flex-basis: 120px;
	font-size: 12px;
	line-height: 1.5;
}
.portable-infobox .pi-data {
	align-items: center;
	border: none;
	padding: 2px 5px;
}
.portable-infobox .pi-data-value {
    flex-basis: 180px;
}
.portable-infobox .pi-data-value > ul {
	list-style: none none;
	margin: 0;
}

/* Tabs */
.portable-infobox .pi-section-navigation,
.portable-infobox .pi-media-collection-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding-bottom: 5px
}
.portable-infobox .pi-section-navigation > .pi-section-tab,
.portable-infobox .pi-media-collection-tabs > .pi-tab-link {
	background: none;
	border: none;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	height: 18px;
	letter-spacing: .5px;
	line-height: 14px;
	margin: 0 5px;
	padding: 0;
}
.portable-infobox .pi-section-navigation > .pi-section-tab.pi-section-active,
.portable-infobox .pi-media-collection-tabs > .pi-tab-link.current {
	box-shadow: inset 0 -3px 0 -1px currentColor;
	color: var(--theme-link-color);
}

/* Currency icons */
/* [[File:Minor Curse.png]] */
.portable-infobox .minor-curse { color: #C785E6 }
.portable-infobox .minor-curse::before { background-image: url(https://undermine.wiki.gg/images/2/2c/Minor_Curse.png) }

/* [[File:Major Curse.png]] */
.portable-infobox .major-curse { color: #C785E6 }
.portable-infobox .major-curse::before { background-image: url(https://undermine.wiki.gg/images/e/e9/Major_Curse.png) }

/* [[File:Blessing.png]] */
.portable-infobox .blessing { color: #EBC68D }
.portable-infobox .blessing::before { background-image: url(https://undermine.wiki.gg/images/c/cb/Blessing.png) }

/* [[File:Heart.png]] */
.portable-infobox .health { color: #991D1E }
.portable-infobox .health::before { background-image: url(https://undermine.wiki.gg/images/d/d9/Heart.png) }

.portable-infobox .nether { color: #AEECE1 }

/* [[File:Thorium1.png]] */
.portable-infobox .craft-cost { color: #C785E6 }
.portable-infobox .craft-cost::before { background-image: url(https://undermine.wiki.gg/images/6/67/Thorium1.png) }

/* [[File:Gold10.png]] */
.portable-infobox .shop-cost { color: #FFB400 }
.portable-infobox .shop-cost::before { background-image: url(https://undermine.wiki.gg/images/8/83/Gold10.png) }

.portable-infobox .pi-data-value span:is(.health, .blessing, .major-curse, .minor-curse, .shop-cost, .craft-cost)::before {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	display: inline-block;
	height: 16px;
	vertical-align: middle;
	width: 16px;
}
.portable-infobox .pi-data-value span:is(.health, .blessing, .major-curse, .minor-curse, .nether, .shop-cost, .craft-cost) {
	font-weight: bold;
}
.theme-light .portable-infobox .pi-data-value span:is(.health, .blessing, .major-curse, .minor-curse, .nether, .shop-cost, .craft-cost) {
	text-shadow: 0 0 5px #000;
}

/* Item rarity */
.portable-infobox .rarity-legendary {
	color: #CD0E20;
}
.portable-infobox .rarity-rare {
	color: #CD770E;
}

/* Item types (m_slot) */
.portable-infobox .type-curse, /* Curse */
.portable-infobox .type-minor-curse { /* Minor Curse */
	color: #E087B9;
}
.portable-infobox .type-hex { /* Hex */
	color: #B495F3;
}
.portable-infobox .type-blessing { /* Blessing */
	color: #DABC7C;
}
.portable-infobox .type-bomb, /* Unique Bomb Relic */
.portable-infobox .type-boots, /* Unique Boots Relic */
.portable-infobox .type-gloves, /* Unique Throw Relic */
.portable-infobox .type-hat, /* Hat */
.portable-infobox .type-weapon { /* Unique Swing Relic */
	color: #DF4949;
}
.portable-infobox .type-artifact, /* Artifact */
.portable-infobox .type-food, /* Food */
.portable-infobox .type-item, /* Basic Item */
.portable-infobox .type-potion, /* Potion */
.portable-infobox .type-prayer, /* Prayer */
.portable-infobox .type-relic, /* Relic */
.portable-infobox .type-upgrade { /* Upgrade */
	color: #A38662;
}