MediaWiki:Custom-common.less/inventory.less

/* // Inventory slot (Module:Inventory slot) // Taken from corresponding template of same name on minecraft.gamepedia.com // and modified for use on this wiki .mw-parser-output .invslot { position: relative; display: inline-block; background: #8B8B8B no-repeat center center / 32px 32px; border: 2px solid; border-color: #373737 #FFF #FFF #373737; width: 32px; height: 32px; font-size: 16px; line-height: 1; text-align: left; vertical-align: bottom; box-sizing: content-box; } .mw-parser-output .invslot-item, .mw-parser-output .invslot-item > a:first-child:not(.invslot-hover-overlay) { position: relative; display: block; width: 32px; height: 32px; } .mw-parser-output .invslot-stacksize { position: absolute; right: 0; bottom: 2px; font-family: Minecraft, sans-serif; font-weight: normal; font-size: 16px; color: #FFF; text-shadow: 1.5px 1.5px 0 #3F3F3F; filter: dropshadow(color=#3F3F3F, offx=2, offy=2); z-index: 2; text-align: right; } .mw-parser-output .invslot-hover-overlay { display: block; position: absolute; top: 0; left: 0; height: 32px; width: 32px; background-color: transparent; cursor: default; z-index: 3; } .mw-parser-output .invslot-hover-overlay:hover { background-color: rgba(255, 255, 255, 0.5); cursor: pointer; } .slot-image-follow { position: absolute; z-index: 5; } .mw-parser-output .invslot-large { padding: 8px; } .mw-parser-output .invslot-item-image > a.new:first-child { background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/3/30/Question.png/revision/latest/scale-to-width-down/24?cb=20190928151533) no-repeat center; width: 32px; height: 32px; text-indent: -9999px; overflow: hidden; }

.mcui { display: inline-block; position: relative; background-color: #C6C6C6; border: 2px solid; border-top-color: currentcolor; border-right-color: currentcolor; border-bottom-color: currentcolor; border-left-color: currentcolor; border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB; padding: 6px; text-align: left; white-space: nowrap; vertical-align: bottom; } .mcui-text { font-family: minecraft; color: #2B2D2F; font-size: 14px; } .mcui-overarrow-text { position: absolute; top: 0; }

.mcui-returnbutton { position: absolute; top: 0; right: 20px; font-size: 22px; color: #B84000; cursor: pointer; transition: color 0.2s ease, transform 0.5s ease; } .mcui-returnbutton:hover { color: #e1926b; transform: rotate(20deg); } /* // Crafting Grid // Taken from minecraft.gamepedia.com /*/ .mcui-Crafting_Table > *, .mcui-Furnace > *, .mcui-Forging_Table > * { display: inline-block; vertical-align: top; } .mcui-Crafting_Table .mcui-row, .mcui-Forging_Table .mcui-row { display: flex; } .mcui-Crafting_Table .mcui-row td { display: inline-block; border: none; padding: 0 !important; }

.mcui-Crafting_Table > .mcui-arrow { background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/8/86/Grid_layout_Arrow_%28small%29.png) no-repeat; width: 32px; height: 26px; margin: 40px 4px 0; }

.mcui-Crafting_Table > .mcui-output { margin-top: 28px; }

/* // Forging Table .mcui-Forging_Table .mcui-row td { display: inline-block; border: none; padding: 0 !important; margin-top: 6px; }

.mcui-Forging_Table > .mcui-arrow { background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/8/86/Grid_layout_Arrow_%28small%29.png) no-repeat; width: 32px; height: 26px; margin: 12px 4px 0; }

.mcui-Forging_Table > .mcui-output { margin-top: 0px; }

/* // Furnace // Taken from minecraft.gamepedia.com .mcui-Furnace .mcui-fuel { display: block; background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/d/d8/Grid_layout_Fire.png) no-repeat; width: 36px; height: 36px; } /* .mcui-Furnace .mcui-fuel.mcui-inactive { background-image: url(/media/a/ab/Grid_layout_Fire_%28in-active%29.png); } */ .mcui-Furnace > .mcui-arrow { background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/8/8e/Grid_layout_Furnace_Progress.png) no-repeat; width: 44px; height: 32px; margin: 36px 18px 0 14px; } /* .mcui-Furnace > .mcui-arrow.mcui-inactive { background-image: url(/media/d/dc/Grid_layout_Furnace_Progress_%28in-active%29.png); } */

.mcui-Furnace > .mcui-output { margin-top: 28px; }

/* // Brewing Stand // Taken from minecraft.gamepedia.com .mcui-Brewing_Stand > * { display: block; }

.mcui-Brewing_Stand .invslot { vertical-align: top; }

.mcui-Brewing_Stand > .mcui-input { text-align: center; }

.mcui-Brewing_Stand > .mcui-input > .invslot { margin-top: 3px; }

.mcui-Brewing_Stand .mcui-bubbling, .mcui-Brewing_Stand .mcui-arrow { display: inline-block; background-repeat: no-repeat; width: 24px; height: 57px; }

/* .mcui-Brewing_Stand .mcui-bubbling { background-image: url(/media/6/65/Grid_layout_Brewing_Bubbles.gif); } */ /* .mcui-Brewing_Stand > .mcui-input.mcui-inactive > .mcui-bubbling { background-image: url(/media/d/db/Grid_layout_Brewing_Bubbles_%28In-active%29.png); } */

/* .mcui-Brewing_Stand .mcui-arrow { background-image: url(/media/4/4b/Grid_layout_Brewing_Arrow.png); } */ /* .mcui-Brewing_Stand > .mcui-input.mcui-inactive > .mcui-arrow { background-image: url(/media/5/59/Grid_layout_Brewing_Arrow_%28In-active%29.png); } */

.mcui-Brewing_Stand > .mcui-paths { position: relative; background: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/8/82/Grid_layout_Brewing_Paths.png) no-repeat; width: 60px; height: 40px; margin: -20px auto -16px; z-index: 1; }

.mcui-Brewing_Stand .mcui-output .invslot { background-image: url(https://vignette.wikia.nocookie.net/hypixel-skyblock/images/5/59/Grid_layout_Brewing_Empty.png); } .mcui-Brewing_Stand .mcui-output2 { margin: 14px 10px 0; }

/* Styling for minecraft style tooltip */ /* Taken from minecraft.gamepedia.com */ position: fixed; top: 0; left: 0; background-color: #100010; background-color: rgba(16, 0, 16, 0.94); padding: 0.375em; font-family: Minecraft, serif, sans-serif; font-size: 16px; word-spacing: 4px; white-space: nowrap; line-height: 1.25em; margin: 0.125em 0.25em; pointer-events: none; z-index: 9999 }
 * 1) minetip-tooltip {

content: ""; position: absolute; top: 0.125em; right: -0.125em; bottom: 0.125em; left: -0.125em; border: 0.25em solid #100010; border-style: none solid; border-color: rgba(16, 0, 16, 0.94) }
 * 1) minetip-tooltip::before {

content: ""; position: absolute; top: 0.125em; right: 0; bottom: 0.125em; left: 0; border: 0.125em solid #2D0A63; border-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1; border-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1 }
 * 1) minetip-tooltip::after {

display: block; margin-top: 0.25em }
 * 1) minetip-tooltip>.description,
 * 2) minetip-tooltip>.minetip-description {

/* Element Animator - used in conjunction with JS to cycle through multiple items */ /* Taken from minecraft.gamepedia.com */ display: none }
 * 1) mw-content-text .animated>*:not(.animated-active),
 * 2) mw-content-text .animated>.animated-subframe>*:not(.animated-active) {

display: inline-block; }
 * 1) mw-content-text span.animated,
 * 2) mw-content-text span.animated.animated-visible>*,
 * 3) mw-content-text span.animated.animated-visible>.animated-subframe>* {

display: block; }
 * 1) mw-content-text div.animated.animated-visible>*,
 * 2) mw-content-text div.animated.animated-visible>.animated-subframe>* {

/* UI tabber */ .sbw-ui-tabber [class^="invslot goto-"], .sbw-ui-tabber [class^="invslot animated goto-"], .sbw-ui-tabber [class^="invslot ui-"], .sbw-ui-tabber [class^="invslot animated ui-"] { cursor: pointer; }