Bureaucrats, editor, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
47,390
edits
No edit summary |
No edit summary |
||
Line 1:
// 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: url('/images/rss/Inventory_tab.png');
width: 204px;
padding: 13px 16px 10px;
td {
width: 43px;
height: 36px;
}
}
/* ==============================
[[Template:Looting Bag]]
============================== */
.lootingbagtable {
background-image: url('/images/rss/Looting_bag_tab.png');
width: 204px;
padding: 31px 17px 20px 12px;
td {
width: 44px;
height: 32px;
}
}
/* ==============================
[[Template:Rune pouch]]
============================== */
.runepouchtable {
background-image: url('/images/rss/Rune_pouch_background.png');
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: url('/images/rss/Menagerie_interface.png');
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
& retina support
============================== */
.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: #ff0;
pointer-events: none;
&.qty-1 {
color: #ff0;
}
&.qty-100k {
color: @white;
}
&.qty-10m {
color: #01ff80;
}
}
.pixelate()
}
.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('/images/rss/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: #3e3529;
border: 9px solid transparent;
border-image-source: url("/images/rss/Interface_border.png");
border-image-slice: 9;
border-image-width: 9px;
border-image-outset: 0;
border-image-repeat: repeat;
margin: 7px 0;
padding: 0 2px 0 3px;
border-radius: @border-radius * 2;
// override "width: 100% !important" default table style in media query,
// which causes the template to span the entire page on mobile
@media all and (max-width: 720px) {
table& {
width: initial !important;
}
}
}
.equipment-div, .equipment-div-buttons {
background-repeat: no-repeat;
background-position: top left;
position: relative;
width: 175px;
display: flex;
}
.equipment-div {
background-image: url("/images/rss/Worn_equipment_tab_(no_buttons).png");
height: 222px;
margin: 15px 0 14px;
}
.equipment-div-buttons {
background-image: url("/images/rss/Worn_equipment_tab_(borderless).png");
height: 244px;
margin: 4px 0 3px;
}
.equipment-blank {
background-image: url('/images/rss/Blank_slot.png');
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;
}
.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;
}
}
.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-ammo2,
.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-ammo2 {
left: 111px;
top: 0px;
}
.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;
}
|