Guild Wars 2 Wiki:Projects/CSS documentation/template icons- common

From Guild Wars 2 Wiki
Jump to navigationJump to search
/* Used by [[Template:Icon]] etc. Due to "stacks", [[Template:Effect icon]] does not have a right margin */
.inline-icon {
    display: inline-block;
    overflow: visible;
    height: 1.538em;
    margin: 0 0.167em;
}

.inline-icon img {
    position: relative;
    bottom: 2px;
}

.inline-icon.effect {
    margin: 0 0 0 0.167em;
}

/* Used by [[Template:Item icon]] etc */
.item-icon.small,
.item-icon.medium {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    margin-left: -1pt;
}

.item-icon.small,
.item-icon.small img {
    width: 20px;
    height: 20px;
}

.item-icon.medium,
.item-icon.medium img {
    width: 35px;
    height: 35px;
}

/* Prevent icon alt text being copied */
.infobox-icon,
.inline-icon,
.item-icon,
.patchnote .skillicon img,
.patchnote .traiticon img {
    user-select: none;
}