better styles for effects and skills
This commit is contained in:
parent
d134bc8cf3
commit
dc7e8a91e6
@ -132,10 +132,12 @@ section {
|
|||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
cursor: default;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
|
||||||
div:first-child {
|
div:first-child {
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
}
|
}
|
||||||
@ -147,7 +149,7 @@ section {
|
|||||||
grid-area: unset;
|
grid-area: unset;
|
||||||
|
|
||||||
.instance-construct {
|
.instance-construct {
|
||||||
border: 0;
|
// border: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -93,12 +93,12 @@ class GameConstruct extends Component {
|
|||||||
const skills = range(0, 3)
|
const skills = range(0, 3)
|
||||||
.map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />);
|
.map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />);
|
||||||
|
|
||||||
let crypSkills = <div> </div>;
|
let crypSkills = <div></div>;
|
||||||
if (player) crypSkills = (<div class="skills"> {skills} </div>);
|
if (player) crypSkills = (<div class="skills"> {skills} </div>);
|
||||||
|
|
||||||
const effects = construct.effects.length
|
const effects = construct.effects.length
|
||||||
? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>)
|
? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>)
|
||||||
: <div> </div>;
|
: null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user