diff --git a/html-client/cryps.css b/html-client/cryps.css index 72b45a87..24b2db50 100755 --- a/html-client/cryps.css +++ b/html-client/cryps.css @@ -44,6 +44,11 @@ main { flex: 1 1 90%; padding-top: 1em; + + align-content: flex-start; + justify-content: flex-start; + align-items: flex-start; + } button, input { @@ -93,6 +98,7 @@ header { .header-title { flex: 1; font-size: 2em; + letter-spacing: 0.05em; } .header-username { @@ -163,7 +169,7 @@ header { font-size: 2em; } -.instance-list { +.menu-instance-list { flex: 0 0 50%; flex-flow: row wrap; @@ -172,7 +178,7 @@ header { height: 100%; } -.instance-btn { +.menu-instance-btn { box-sizing: border-box; flex: 1 0 20%; font-size: 150%; @@ -182,7 +188,7 @@ header { margin: 0.5em; } -.instance-btn.full { +.menu-instance-btn.full { flex: 1 0 100%; } @@ -291,11 +297,6 @@ header { } .cryp-list { - display: flex; - flex-flow: column; -} - -.instance-cryp-list { flex: 1 1 25%; display: flex; @@ -320,6 +321,7 @@ header { flex: 1 1 80%; width: 100%; justify-content: center; + align-items: stretch; } .cryp-box figure { @@ -378,27 +380,22 @@ header { /* GAME */ - -.game { - display: flex; - flex-flow: row wrap; - align-content: flex-start; - justify-content: flex-start; - align-items: flex-start; -} - .game-back-btn { flex: 0 0 20%; } .team-player { - flex: 1 0 40%; + display: flex; + flex: 1 0 20%; height: 90%; + padding: 0; } .team-opponent { + display: flex; flex: 1 0 20%; height: 90%; + padding: 0; } .logs { @@ -409,6 +406,8 @@ header { } .game-cryp-ctr { + flex: 1 1 100%; + max-height: 33%; display: flex; flex-flow: row; align-items: center; @@ -428,7 +427,19 @@ header { opacity: 0.5; } +.selected-skills { + flex: 1 1 25%; + + display: flex; + flex-flow: column; + height: 95%; + padding: 0 2em 0 2em; + justify-content: center; +} + .stack-line { + display: flex; + align-items: center; padding-left: 2em; - flex: 1 0 50%; + flex: 1; } \ No newline at end of file diff --git a/html-client/src/components/game.component.jsx b/html-client/src/components/game.component.jsx index 25b24f69..6a8210df 100644 --- a/html-client/src/components/game.component.jsx +++ b/html-client/src/components/game.component.jsx @@ -83,8 +83,6 @@ function GamePanel(props) { ); }); - const stackSkills = stackElement(cryp); - const stats = [ { stat: 'hp', colour: '#1FF01F' }, { stat: 'red_shield', colour: '#a52a2a' }, @@ -98,27 +96,24 @@ function GamePanel(props) { return ( -