This commit is contained in:
ntr 2019-04-02 17:05:54 +11:00
parent 3ec2419f8d
commit 743c5a792d
3 changed files with 46 additions and 38 deletions

View File

@ -202,7 +202,7 @@ header {
} }
.instance-info { .instance-info {
flex: 1 0 50%; flex: 0 1 50%;
} }
.instance .spacer { .instance .spacer {
@ -233,7 +233,7 @@ header {
} }
.vbox { .vbox {
flex: 0 0 25%; flex: 1 1 25%;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
@ -292,33 +292,35 @@ header {
} }
.instance-cryp-list { .instance-cryp-list {
flex: 0 0 25%; flex: 1 1 25%;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
height: 95%;
padding: 0 2em 0 2em;
} }
/* CRYP BOX */ /* CRYP BOX */
.cryp-box { .cryp-box {
flex: 1 1 100%; flex: 1 1 100%;
display: flex; display: flex;
flex-flow: row wrap; flex-flow: column;
justify-content: center;
/*
this controls the size of the box
as it fills the whole container
*/
margin: 0 0 1em 0;
border: 1px solid whitesmoke; border: 1px solid whitesmoke;
margin-bottom: 1em;
justify-content: center;
}
.cryp-box-top {
display: flex;
flex: 1 1 80%;
width: 100%;
justify-content: center;
} }
.cryp-box figure { .cryp-box figure {
margin: 0; margin: 0;
flex: 0 1 50%; flex: 0 0 50%;
text-align: center; text-align: center;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
@ -326,8 +328,9 @@ header {
} }
.cryp-box .stats { .cryp-box .stats {
display: flex; flex: 0 0 20%;
width: 100%; width: 100%;
display: flex;
border-top: 1px solid whitesmoke; border-top: 1px solid whitesmoke;
} }
@ -349,16 +352,15 @@ header {
} }
.cryp-box .skills { .cryp-box .skills {
width: 50%; display: flex;
min-width: 150px; flex-flow: row wrap;
flex: 1 1 50%; flex: 1 1 50%;
} }
.cryp-skill-btn { .cryp-skill-btn {
font-size: 125%; flex: 1 1 100%;
font-size: 16pt;
border-width: 1px; border-width: 1px;
width: 100%;
height: 25%;
padding: 0; padding: 0;
margin: 0; margin: 0;
border-bottom-width: 0px; border-bottom-width: 0px;

View File

@ -103,6 +103,7 @@ function GamePanel(props) {
key={cryp.id} key={cryp.id}
style={ activeSkill ? { cursor: 'pointer' } : {}} style={ activeSkill ? { cursor: 'pointer' } : {}}
className="cryp-box" > className="cryp-box" >
<div className="cryp-box-top">
<figure <figure
className="img" className="img"
onClick={() => selectSkillTarget(cryp.id)} > onClick={() => selectSkillTarget(cryp.id)} >
@ -112,6 +113,7 @@ function GamePanel(props) {
<div className="skills"> <div className="skills">
{skills} {skills}
</div> </div>
</div>
<div className="stats"> <div className="stats">
{stats} {stats}
</div> </div>
@ -149,10 +151,12 @@ function GamePanel(props) {
className="cryp-box" className="cryp-box"
style={ activeSkill ? { cursor: 'pointer' } : {}} style={ activeSkill ? { cursor: 'pointer' } : {}}
onClick={() => selectSkillTarget(cryp.id)} > onClick={() => selectSkillTarget(cryp.id)} >
<div className="cryp-box-top">
<figure className="img"> <figure className="img">
{molecule} {molecule}
<figcaption>{cryp.name}</figcaption> <figcaption>{cryp.name}</figcaption>
</figure> </figure>
</div>
<div className="stats"> <div className="stats">
{stats} {stats}
</div> </div>

View File

@ -51,6 +51,7 @@ function Cryp(cryp, sendVboxApply, setInfo) {
onDragOver={onDragOver} onDragOver={onDragOver}
onDrop={onDrop} onDrop={onDrop}
> >
<div className="cryp-box-top">
<figure className="img"> <figure className="img">
{molecule} {molecule}
<figcaption>{cryp.name}</figcaption> <figcaption>{cryp.name}</figcaption>
@ -58,6 +59,7 @@ function Cryp(cryp, sendVboxApply, setInfo) {
<div className="skills"> <div className="skills">
{skills} {skills}
</div> </div>
</div>
<div className="stats"> <div className="stats">
{stats} {stats}
</div> </div>