correct position of pets in the profile overview - fixes #10104 (#10144)

This commit is contained in:
negue
2018-03-17 21:13:35 +01:00
committed by Matteo Pagliazzi
parent 9287098e70
commit 0fcc1f2080
4 changed files with 22 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
.Pet {
margin: auto !important;
display: block;
position: relative;
right: 0;
bottom: 0;
left: 0;
&:not([class*="FlyingPig"]) {
top: -28px !important;
}
}
.Pet[class*="FlyingPig"] {
top: 7px !important;
}
.Pet.Pet-Dragon-Hydra {
top: -16px !important;
}

View File

@@ -33,3 +33,4 @@
@import './banner';
@import './progress-bar';
@import './pin';
@import './animals';

View File

@@ -276,18 +276,6 @@
display: inline-block;
}
.stable .item .item-content.Pet:not(.FlyingPig) {
top: -28px;
}
.stable .item .item-content.FlyingPig {
top: 7px;
}
.stable .item .item-content.Pet-Dragon-Hydra {
top: -16px !important;
}
.hatchablePopover {
width: 180px
}

View File

@@ -189,7 +189,7 @@ div
.row.col-12
.col-12.col-md-4
.box(:class='{white: user.items.currentPet}')
.pet(:class="`Pet-${user.items.currentPet}`")
.Pet(:class="`Pet-${user.items.currentPet}`")
.col-12.col-md-8
div
| {{ formatAnimal(user.items.currentPet, 'pet') }}
@@ -340,10 +340,6 @@ div
margin-bottom: 2em;
}
.pet {
margin-top: -1.4em !important;
}
.mount {
margin-top: -0.2em !important;
}