reclaim button fixes
This commit is contained in:
parent
9dc840765c
commit
d431ada7a9
@ -48,17 +48,22 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
&.reclaiming, &.reclaiming:hover, &.reclaiming:active {
|
|
||||||
background: @red;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
background: black;
|
background: black;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reclaiming {
|
||||||
|
button:not([disabled]) {
|
||||||
|
&, &:hover, &:active {
|
||||||
|
background: @red;
|
||||||
|
color: black;
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
height: 4em;
|
height: 4em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -73,13 +73,13 @@ module.exports = {
|
|||||||
|
|
||||||
LifeRR: () =>
|
LifeRR: () =>
|
||||||
<figure>
|
<figure>
|
||||||
{square(['green'])}
|
{square(['red'])}
|
||||||
<figcaption>Life</figcaption>
|
<figcaption>Life</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
LifeBB:() =>
|
LifeBB:() =>
|
||||||
<figure>
|
<figure>
|
||||||
{square(['green'])}
|
{square(['blue'])}
|
||||||
<figcaption>Life</figcaption>
|
<figcaption>Life</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
@ -111,13 +111,13 @@ module.exports = {
|
|||||||
|
|
||||||
PowerRR: () =>
|
PowerRR: () =>
|
||||||
<figure>
|
<figure>
|
||||||
{circle(['green'])}
|
{circle(['red'])}
|
||||||
<figcaption>Power</figcaption>
|
<figcaption>Power</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
PowerBB:() =>
|
PowerBB:() =>
|
||||||
<figure>
|
<figure>
|
||||||
{circle(['green'])}
|
{circle(['blue'])}
|
||||||
<figcaption>Power</figcaption>
|
<figcaption>Power</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
@ -148,13 +148,13 @@ module.exports = {
|
|||||||
|
|
||||||
SpeedRR: () =>
|
SpeedRR: () =>
|
||||||
<figure>
|
<figure>
|
||||||
{triangle(['green'])}
|
{triangle(['red'])}
|
||||||
<figcaption>Speed</figcaption>
|
<figcaption>Speed</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
SpeedBB:() =>
|
SpeedBB:() =>
|
||||||
<figure>
|
<figure>
|
||||||
{triangle(['green'])}
|
{triangle(['blue'])}
|
||||||
<figcaption>Speed</figcaption>
|
<figcaption>Speed</figcaption>
|
||||||
</figure>,
|
</figure>,
|
||||||
|
|
||||||
|
|||||||
@ -282,7 +282,7 @@ function Vbox(args) {
|
|||||||
return setReclaiming(!reclaiming);
|
return setReclaiming(!reclaiming);
|
||||||
}
|
}
|
||||||
|
|
||||||
const reclaimClass = `vbox-btn reclaim ${reclaiming ? 'reclaiming' : ''}`;
|
const inventoryClass = `vbox-section ${reclaiming ? 'reclaiming' : ''}`;
|
||||||
|
|
||||||
function inventoryBtn(v, i) {
|
function inventoryBtn(v, i) {
|
||||||
const inventoryHighlight = vboxSelecting || itemUnequip.length;
|
const inventoryHighlight = vboxSelecting || itemUnequip.length;
|
||||||
@ -363,14 +363,14 @@ function Vbox(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='vbox-section'
|
<div class={inventoryClass}
|
||||||
onClick={inventoryClick}
|
onClick={inventoryClick}
|
||||||
style={vboxSelecting || itemUnequip ? { cursor: 'pointer' } : null}
|
style={vboxSelecting || itemUnequip ? { cursor: 'pointer' } : null}
|
||||||
onMouseOver={e => hoverInfo(e, 'inventory')}>
|
onMouseOver={e => hoverInfo(e, 'inventory')}>
|
||||||
<div class="vbox-hdr">
|
<div class="vbox-hdr">
|
||||||
<h3 onTouchStart={e => e.target.scrollIntoView(true)}>INVENTORY</h3>
|
<h3 onTouchStart={e => e.target.scrollIntoView(true)}>INVENTORY</h3>
|
||||||
<button
|
<button
|
||||||
class={reclaimClass}
|
class='vbox-btn reclaim'
|
||||||
onMouseOver={e => hoverInfo(e, 'reclaim')}
|
onMouseOver={e => hoverInfo(e, 'reclaim')}
|
||||||
onClick={reclaimClick}>
|
onClick={reclaimClick}>
|
||||||
reclaim
|
reclaim
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user