diff --git a/html-client/cryps.css b/html-client/cryps.css index 21255df1..9acd135a 100755 --- a/html-client/cryps.css +++ b/html-client/cryps.css @@ -209,35 +209,40 @@ button:hover { this controls the size of the box as it fills the whole container */ - padding: 0 1em 2em 0; + margin: 0 1em 1em 0; + border: 1px solid whitesmoke; } /*cheeky one to push them in line with the buttons */ -.cryp-box:first-child { +.instance .cryp-box:first-child { margin-top: -2.5em; } .cryp-box figure { margin: 0; - flex: 1 1 50%; - border: 1px solid whitesmoke; + flex: 0 1 50%; text-align: center; box-sizing: border-box; display: flex; flex-flow: column; } -.cryp-box figure figcaption { +.cryp-box .stats { + display: flex; + width: 100%; + border-top: 1px solid whitesmoke; } .cryp-box .stats figure { + flex: 1 1 0; border: 0; - align-items: center + align-items: center; + padding: 0.25em 0; } -.cryp-box .stats { - border-top-width: 0; - border: 1px solid whitesmoke; +.cryp-box .stats svg { + height: 1.5em; + stroke-width: 2px; } .cryp-box .skills { @@ -251,26 +256,11 @@ button:hover { height: 25%; padding: 0; margin: 0; - border-left-width: 0px; border-bottom-width: 0px; + border-left-width: 1px; } -.cryp-skill-btn:last-child { - border-bottom-width: 1px; -} - -.cryp-box .stats { - display: flex; - width: 100%; - text-align: center; -} - -.cryp-box .stats figure { +.cryp-skill-btn:first-child { border-top-width: 0; - flex: 1 1 0; } -.cryp-box .stats svg { - height: 1em; - stroke-width: 2px; -} diff --git a/html-client/src/components/cryp.list.container.js b/html-client/src/components/cryp.list.container.js index ff4c64bf..6ae16e7a 100644 --- a/html-client/src/components/cryp.list.container.js +++ b/html-client/src/components/cryp.list.container.js @@ -1,6 +1,6 @@ const { connect } = require('preact-redux'); -const CrypList = require('./cryp.list'); +const CrypList = require('./cryp.list.component'); const actions = require('./../actions'); const addState = connect( diff --git a/html-client/src/components/cryp.list.jsx b/html-client/src/components/cryp.list.jsx deleted file mode 100644 index b42a8789..00000000 --- a/html-client/src/components/cryp.list.jsx +++ /dev/null @@ -1,57 +0,0 @@ -const preact = require('preact'); - -const { stringSort } = require('./../utils'); -const molecule = require('./molecule'); - -const idSort = stringSort('id'); - -const COLOURS = [ - '#a52a2a', - '#1FF01F', - '#3498db', -]; - -function CrypList({ cryps, selectedCryps, setSelectedCryps }) { - if (!cryps) return
{cryp.name}
-