Merge pull request #116 from jedmund/fix-hovercard-zindex
Fix z-index on hovercards
This commit is contained in:
commit
1c555c99e2
2 changed files with 35 additions and 31 deletions
|
|
@ -1,41 +1,45 @@
|
||||||
.Weapon.Hovercard {
|
.Hovercard {
|
||||||
.skills {
|
z-index: 99;
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding-right: $unit * 2;
|
|
||||||
|
|
||||||
.axSkill {
|
.Weapon.HovercardContent {
|
||||||
align-items: center;
|
.skills {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-right: $unit * 2;
|
||||||
|
|
||||||
&.primary img {
|
.axSkill {
|
||||||
height: 64px;
|
align-items: center;
|
||||||
width: 64px;
|
display: flex;
|
||||||
}
|
flex-direction: row;
|
||||||
|
|
||||||
&.secondary {
|
&.primary img {
|
||||||
gap: $unit * 1.5;
|
height: 64px;
|
||||||
|
width: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
&.secondary {
|
||||||
height: 36px;
|
gap: $unit * 1.5;
|
||||||
width: 36px;
|
|
||||||
|
img {
|
||||||
|
height: 36px;
|
||||||
|
width: 36px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: $font-small;
|
||||||
|
font-weight: $medium;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
span {
|
.weaponKeys {
|
||||||
font-size: $font-small;
|
display: flex;
|
||||||
font-weight: $medium;
|
flex-direction: column;
|
||||||
text-align: center;
|
font-size: $normal;
|
||||||
}
|
gap: calc($unit / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.weaponKeys {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
font-size: $normal;
|
|
||||||
gap: calc($unit / 2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -189,9 +189,9 @@ const WeaponHovercard = (props: Props) => {
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HoverCard.Root>
|
<HoverCard.Root className="Hovercard">
|
||||||
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
<HoverCard.Trigger>{props.children}</HoverCard.Trigger>
|
||||||
<HoverCard.Content className="Weapon Hovercard" side={hovercardSide()}>
|
<HoverCard.Content className="Weapon HovercardContent" side={hovercardSide()}>
|
||||||
<div className="top">
|
<div className="top">
|
||||||
<div className="title">
|
<div className="title">
|
||||||
<h4>{props.gridWeapon.object.name[locale]}</h4>
|
<h4>{props.gridWeapon.object.name[locale]}</h4>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue