diff --git a/client/cryps.css b/client/cryps.css index a9c65df9..c1a8772b 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -399,41 +399,50 @@ header { min-width: 300px; } +/* + INFO +*/ .thresholds { display: flex; flex-direction: row; justify-content: left; } -.info-skills { +.info-cryp .skills { display: flex; } -.info-skills .cryp-skill-btn { +.info-cryp .skills .cryp-skill-btn { border: 1px solid whitesmoke; } -.info-stats { +.info-cryp .stats, .info-cryp .specs { display: flex; flex-flow: row wrap; justify-content: space-around; } -.info-stats .speed { +.info-cryp .stats .speed { flex: 1 0 100%; } -.info-stats figure { +.info-cryp .stats figure { flex: 0 0 30%; border: 0; margin: 1em 0; text-align: center; } -.info-stats .stat-icon { +.info-cryp .stats .stat-icon { height: 2.5em; } +.info-cryp .specs figure { + border: 0; + margin: 1em 0; + text-align: center; +} + /* CRYP BOX */ .cryp-box { @@ -504,7 +513,7 @@ header { border-right-width: 0px; } -.skills .cryp-skill-btn:first-child { +.cryp-list .skills .cryp-skill-btn:first-child { border-top-width: 0; } @@ -701,7 +710,7 @@ header { height: 1em; } - .stats figcaption { + .cryp-list .stats figcaption { display: none; } diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 82ebabd1..97098463 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -1,93 +1,92 @@ const preact = require('preact'); const range = require('lodash/range'); -const { ITEMS: { SKILLS, SPECS, COLOURS } } = require('./constants'); -const { COLOUR_ICONS, STATS } = require('../utils'); +const { ITEMS: { SKILLS, COLOURS } } = require('./constants'); +const { COLOUR_ICONS, STATS, SPECS } = require('../utils'); function Info(args) { const { + activeCryp, info, sendUnequip, instance, } = args; - if (!info.length) return (