MediaWiki:Common.less/storage.less
Jump to navigation
Jump to search
//
:root { --inventorytable-background-image: url('images/Inventory_tab.png'); --lootingbagtable-background-image: url('images/Looting_bag_tab.png'); --runepouchtable-background-image: url('images/Rune_pouch_background.png'); --menagerietable-background-image: url('images/Menagerie_interface.png'); --equipment-border-image-source: url("images/Interface border.png"); --equipment-background-color: #3e3529; --equipment-div-background-image: url("images/Worn_equipment_tab_(no_buttons).png"); --equipment-div-buttons-background-image: url("images/Worn_equipment_tab_(borderless).png"); --equipment-blank-background-image: url('images/Blank_slot.png'); } // Relevant to most storage templates .inventorytable, .lootingbagtable, .runepouchtable { background-repeat: no-repeat; background-position: top left; height: auto; border-spacing: 0; border-collapse: separate; margin-top: 7px; margin-bottom: 7px; &.storage-left { float: left; clear: left; margin-right: 7px; } &.storage-center { margin-left: auto; margin-right: auto; } &.storage-right { float: right; clear: right; margin-left: 7px; } td { padding: 0; border: 0; text-align: center; position: relative; } } /* ============================== Template:Inventory ============================== */ .inventorytable { background-image: var(--inventorytable-background-image); width: 204px; padding: 13px 16px 10px; td { width: 43px; height: 36px; } // Is this appropriate for other storage templates too? @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { a { image-rendering: -moz-crisp-edges; image-rendering: pixelated; image-rendering: crisp-edges; } } } /* ============================== Template:Looting Bag ============================== */ .lootingbagtable { background-image: var(--lootingbagtable-background-image); width: 204px; padding: 31px 17px 20px 12px; td { width: 44px; height: 32px; } } /* ============================== Template:Rune pouch ============================== */ .runepouchtable { background-image: var(--runepouchtable-background-image); width: 158px; padding: 24px 7px 6px; // Keep it horizontally centered with Template:Inventory &.storage-left { margin-left: 23px; } &.storage-right { margin-right: 23px; } td { width: 32px; height: 32px; // Keep the quantity the correct height for mobile line-height: 1.6em; } td.middle-rune { padding-left: 24px; padding-right: 24px; } } .divinerunepouch { td.middle-rune { padding-left: 6px; padding-right: 6px; & + td.middle-rune { padding-left: 0; } } } /* ============================== Still in development ============================== */ .menagerietable { background-image: var(--menagerietable-background-image); background-repeat: no-repeat; background-position: top left; width: 300px; height: 250px; padding: 56px 28px 34px 6px; border-spacing: 0; td { padding: 0; border: 0; text-align: center; position: relative; width: 46px; height: 32px; } } /* ============================== Item quantities ============================== */ .inventorytable, .lootingbagtable, .runepouchtable, .equipment { .inv-quantity-text { font-family: 'RuneScape Small'; font-size: 12pt; position: absolute; top: -8px; left: 4px; text-shadow: #000 1px 1px; color: #ffff00; pointer-events: none; &.qty-1 { color: #ffff00; } &.qty-100k { color: @white; } &.qty-10m { color: #01ff80; } } } .runepouchtable { .inv-quantity-text { left: -1px; } td.middle-rune .inv-quantity-text { left: 23px; } } .divinerunepouch { td.middle-rune { .inv-quantity-text { left: 5px; } + td.middle-rune .inv-quantity-text { left: 0; } } } .equipment .inv-quantity-text { top: -3px; } /* ============================== Noted items ============================== */ .noted-item { // span.noted-item span& { width: 30px; height: 29px; text-align: center; display: inline-block; a { width: 30px; height: 29px; } } a { background-image: url('filepath://Bank_note.png'); background-repeat: no-repeat; display: inline-block; background-position: center; } // td.noted-item td& a { width: 32px; line-height: 28px; } img { transform: scale(0.65); } } /* ============================== Template:Equipment ============================== */ .equipment { background: var(--equipment-background-color); border: 9px solid transparent; border-image-source: var(--equipment-border-image-source); border-image-slice: 9; border-image-width: 9px; border-image-outset: 0; border-image-repeat: repeat; margin: 7px 0; } .equipment-div, .equipment-div-buttons { background-repeat: no-repeat; background-position: top left; position: relative; width: 175px; margin: 5px; display: flex; } .equipment-div { background-image: var(--equipment-div-background-image); height: 222px; } .equipment-div-buttons { background-image: var(--equipment-div-buttons-background-image); height: 244px; } .equipment-blank { background-image: var(--equipment-blank-background-image); width: 36px; height: 36px; } .equipment-left { float: left; clear: left; margin-right: 7px; } .equipment-center { margin-left: auto; margin-right: auto; } .equipment-right { float: right; clear: right; margin-left: 7px; } // Equipment stats and Items Kept on Death styles .equipment-stats, .equipment-ikod { font-family: 'RuneScape'; font-size: 16px; line-height: 14px; color: #ff981f; text-shadow: 1px 1px 0 black; } td.equipment-stats { b { font-family: 'RuneScape'; font-weight: bold; display: block; margin-top: 2px; } data { display: block; padding-left: 8px; } data img { // Align the weight icon more like in-game vertical-align: bottom; } } td.equipment-ikod { max-width: 325px; em { font-style: normal; display: block; margin-bottom: 3px; } b { font-weight: normal; color: white; } strong { font-weight: normal; color: red; } ul { list-style: none; margin: 0; } li { display: inline-block; width: 32px; height: 32px; line-height: 32px; margin: 0; margin-right: 14px; } img { cursor: help; } hr { border-top: 1px solid #0e0e0c; border-bottom: 1px solid #474745; margin: 7px 0; } } // Includes extra stuff for certain mobile devices .equipment-plinkp { position: absolute; width: 36px; height: 36px; left: 0px; display: flex; justify-content: center; align-items: center; } .equipment-head, .equipment-cape, .equipment-neck, .equipment-ammo, .equipment-weapon, .equipment-torso, .equipment-shield, .equipment-legs, .equipment-gloves, .equipment-boots, .equipment-ring, .equipment-statsbutton, .equipment-ikodbutton { position: absolute; display: flex; justify-content: center; align-items: center; } .equipment-head { left: 70px; top: 0px; } .equipment-cape { left: 29px; top: 39px; } .equipment-neck { left: 70px; top: 39px; } .equipment-ammo { left: 111px; top: 39px; } .equipment-weapon { left: 14px; top: 78px; } .equipment-torso { left: 70px; top: 78px; } .equipment-shield { left: 126px; top: 78px; } .equipment-legs { left: 70px; top: 118px; } .equipment-gloves { left: 14px; top: 158px; } .equipment-boots { left: 70px; top: 158px; } .equipment-ring { left: 126px; top: 158px; } .equipment-statsbutton { top: 204px; left: 0px; width: 40px; height: 40px; cursor: pointer; box-shadow: 2px 2px 3px black; } .equipment-ikodbutton { top: 204px; left: 90px; width: 40px; height: 40px; cursor: pointer; box-shadow: 2px 2px 3px black; }