better resizing for opponent

This commit is contained in:
ntr 2019-05-15 18:15:02 +10:00
parent dfb372d8d2
commit 667a7ad647
4 changed files with 34 additions and 23 deletions

View File

@ -2,7 +2,7 @@
.game { .game {
display: grid; display: grid;
grid-template-rows: 1.5em 1.5em 1fr 1.5fr; grid-template-rows: min-content min-content 1fr 1.5fr;
grid-template-areas: grid-template-areas:
"ready" "ready"
"timer" "timer"
@ -28,28 +28,18 @@
grid-area: opponent; grid-area: opponent;
} }
.targeting-arrows {
grid-area: middle;
}
.opponent .combat-text { .opponent .combat-text {
left: 40%; left: 40%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
.targeting-arrows path {
stroke: whitesmoke;
stroke-width: 4px;
}
.opponent .game-cryp { .opponent .game-cryp {
grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-rows: 1fr 2fr 1fr;
grid-template-columns: 1fr min-content 1fr;
grid-template-areas: grid-template-areas:
"stats ." "stats stats effects"
"effects ." "avatar target .";
"avatar target"
"skills .";
} }
.game-cryp { .game-cryp {
@ -78,8 +68,9 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
align-items: flex-end; align-items: flex-start;
width: 100%; width: 100%;
white-space: nowrap;
} }
.game-cryp .img { .game-cryp .img {
@ -101,12 +92,26 @@
font-size: 100%; font-size: 100%;
} }
@media (max-width: 1500px) {
.game {
font-size: 75%;
}
.game-cryp figure {
padding: 0 0.25em;
}
/* .game .stat-icon {
height: 1.5em;
stroke-width: 3px;
}
*/}
.game-cryp .skills { .game-cryp .skills {
grid-area: skills; grid-area: skills;
display: flex; display: flex;
flex-flow: column-reverse; flex-flow: column-reverse;
align-items: baseline; justify-self: center;
/*flex-flow: column;*/
} }
/*@media (max-width: 1000px) { /*@media (max-width: 1000px) {
@ -115,8 +120,10 @@
} }
} }
*/ */
.game-cryp .effects { .game-cryp .effects {
font-size: 1.5em; font-size: 1.5em;
white-space: nowrap;
} }
.game-btn { .game-btn {
@ -130,7 +137,6 @@
.game-cryp button { .game-cryp button {
color: #888; color: #888;
flex: 1 1 100%; flex: 1 1 100%;
font-size: 16pt;
padding: 0; padding: 0;
margin: 0 0.5em; margin: 0 0.5em;
border-width: 0px; border-width: 0px;
@ -143,7 +149,7 @@
.game-cryp button[disabled], .game-cryp button[disabled]:hover { .game-cryp button[disabled], .game-cryp button[disabled]:hover {
color: #333333; color: #333333;
font-size: 14pt; font-size: 14pt;
/*text-decoration: line-through*/ /*text-decoration: line-through
} }
.game-cryp button:hover { .game-cryp button:hover {

View File

@ -138,7 +138,9 @@ function GamePanel(props) {
{effects} {effects}
</div> </div>
<div className="targeting"> <div className="targeting">
<div>{'<'}</div> <div>{'< Decay'}</div>
<div>{'< Attack'}</div>
<div>{'< Sustain'}</div>
</div> </div>
<figure <figure
className="img" className="img"

View File

@ -79,7 +79,9 @@ function GameCryp(props) {
{skills} {skills}
</div> </div>
<div className="targeting"> <div className="targeting">
<div>{'<'}</div> <div>{'< Decay'}</div>
<div>{'< Attack'}</div>
<div>{'< Sustain'}</div>
</div> </div>
<figure <figure
className="img" className="img"

View File

@ -62,7 +62,7 @@ main {
nav { nav {
grid-area: nav; grid-area: nav;
margin-right: 1em; margin-right: 2em;
} }
nav button { nav button {
@ -113,6 +113,7 @@ button, input {
border-radius: 0; border-radius: 0;
letter-spacing: 0.25em; letter-spacing: 0.25em;
box-sizing: border-box; box-sizing: border-box;
font-size: 100%;
/*the transitions */ /*the transitions */
transition-property: all; transition-property: all;