lookin good

This commit is contained in:
ntr 2019-05-15 17:22:18 +10:00
parent 92703882ce
commit 6cba30d2a1
6 changed files with 42 additions and 35 deletions

View File

@ -46,10 +46,10 @@
.opponent .game-cryp { .opponent .game-cryp {
grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto;
grid-template-areas: grid-template-areas:
"stats" ". stats"
"effects" ". effects"
"avatar" "target avatar"
"skills"; ". skills";
} }
.game-cryp { .game-cryp {
@ -57,12 +57,14 @@
justify-items: center; justify-items: center;
grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr); /*grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);*/
/*grid-template-columns: min-content minmax(0, 1fr);*/
grid-template-columns: min-content 1fr 1fr;
grid-template-rows: 1fr 2fr 1fr;
grid-template-areas: grid-template-areas:
"skills" ". skills skills"
"avatar" "target avatar avatar"
"effects" "effects stats stats";
"stats";
transition-property: all; transition-property: all;
transition-duration: 0.5s; transition-duration: 0.5s;
@ -70,10 +72,17 @@
transition-timing-function: ease; transition-timing-function: ease;
} }
.game-cryp .avatar { .game-cryp .targeting {
grid-area: target;
display: flex;
flex-flow: column;
justify-content: center;
align-items: flex-end;
width: 100%;
}
.game-cryp .img {
grid-area: avatar; grid-area: avatar;
/*max-height: 50%;*/
height: auto;
} }
.game-cryp .stats { .game-cryp .stats {
@ -86,6 +95,7 @@
grid-area: skills; grid-area: skills;
display: flex; display: flex;
flex-flow: column-reverse; flex-flow: column-reverse;
/*flex-flow: column;*/
} }
/*@media (max-width: 1000px) { /*@media (max-width: 1000px) {

View File

@ -137,7 +137,6 @@ function GamePanel(props) {
<div className="effects"> <div className="effects">
{effects} {effects}
</div> </div>
<div className="avatar">
<div className="targeting"> <div className="targeting">
<div>></div> <div>></div>
</div> </div>
@ -148,7 +147,6 @@ function GamePanel(props) {
{combatTextEl} {combatTextEl}
</figure> </figure>
</div> </div>
</div>
); );
} }

View File

@ -78,7 +78,6 @@ function GameCryp(props) {
<div className="skills"> <div className="skills">
{skills} {skills}
</div> </div>
<div className="avatar">
<div className="targeting"> <div className="targeting">
<div>></div> <div>></div>
</div> </div>
@ -88,7 +87,6 @@ function GameCryp(props) {
{crypAvatar(cryp.name)} {crypAvatar(cryp.name)}
{combatTextEl} {combatTextEl}
</figure> </figure>
</div>
<div className="effects"> <div className="effects">
{effects} {effects}
</div> </div>

View File

@ -67,7 +67,7 @@ function Menu(args) {
// ); // );
return ( return (
<section className="menu-instance-list" > <div className="menu-instance-list" >
<table> <table>
<thead> <thead>
<tr> <tr>
@ -84,7 +84,7 @@ function Menu(args) {
</tbody> </tbody>
</table> </table>
<InstanceCreateForm /> <InstanceCreateForm />
</section> </div>
); );
} }

View File

@ -57,6 +57,7 @@ function crypAvatar(name) {
return ( return (
<img <img
src={`/molecules/${genAvatar(name)}.svg`} src={`/molecules/${genAvatar(name)}.svg`}
height="500"
onError={event => event.target.setAttribute('src', '/molecules/726.svg')} onError={event => event.target.setAttribute('src', '/molecules/726.svg')}
/> />
); );

View File

@ -53,7 +53,7 @@ figure {
main { main {
padding: 0 2em; padding: 0 2em;
display: grid; display: grid;
grid-template-columns: repeat(10, 10%)); grid-template-columns: repeat(10, 1fr);
grid-template-rows: min-content 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; grid-template-rows: min-content 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-areas: grid-template-areas: