mobile styles
This commit is contained in:
parent
9fb65c2210
commit
158160d73b
@ -29,10 +29,12 @@ html {
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -161,7 +163,6 @@ svg {
|
|||||||
header {
|
header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row;
|
flex-flow: row;
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
@ -205,7 +206,7 @@ header {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
|
|
||||||
flex: 0 0 50%;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-cryp-ctr {
|
.menu-cryp-ctr {
|
||||||
@ -257,7 +258,7 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.menu-instance-list {
|
.menu-instance-list {
|
||||||
flex: 0 0 50%;
|
flex: 1;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -428,21 +429,21 @@ header {
|
|||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cryp-box .stats {
|
.stats {
|
||||||
flex: 0 0 20%;
|
flex: 0 0 20%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
border-top: 1px solid whitesmoke;
|
border-top: 1px solid whitesmoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cryp-box .stats figure {
|
.stats figure {
|
||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.5em 0 0 0;
|
padding: 0.5em 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cryp-box .stats figcaption {
|
.stats figcaption {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -528,7 +529,19 @@ header {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
.selected-skills {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 800px) {
|
@media (max-width: 800px) {
|
||||||
|
main {
|
||||||
|
flex: 1;
|
||||||
|
flex-flow: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
.cryps {
|
.cryps {
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
padding: 0 1em;
|
padding: 0 1em;
|
||||||
@ -539,23 +552,53 @@ header {
|
|||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cryp-box-top figure {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.menu-instance-btn {
|
.menu-instance-btn {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.instance-hdr {
|
||||||
|
flex: unset;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.cryp-list {
|
.cryp-list {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row;
|
||||||
|
|
||||||
height: unset;
|
height: unset;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
flex: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cryp-box {
|
||||||
|
margin: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cryp-box .skills {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.selected-skills {
|
.selected-skills {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cryp-box .stats figure {
|
||||||
|
padding: 0.2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-icon {
|
||||||
|
height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats figcaption {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
|
||||||
.selected-skills {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -116,8 +116,8 @@ function GamePanel(props) {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const stats = Object.values(STATS).map((s, i) => (
|
const stats = [STATS.hp, STATS.redShield, STATS.blueShield].map((s, j) => (
|
||||||
<figure key={i} alt={s.stat}>
|
<figure key={j} alt={s.stat}>
|
||||||
{s.svg(`stat-icon ${s.colour}`)}
|
{s.svg(`stat-icon ${s.colour}`)}
|
||||||
<figcaption>{cryp[s.stat].value} / {cryp[s.stat].max}</figcaption>
|
<figcaption>{cryp[s.stat].value} / {cryp[s.stat].max}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|||||||
@ -29,7 +29,7 @@ function Vbox(args) {
|
|||||||
|
|
||||||
// lots of rubbish to make it flow nice
|
// lots of rubbish to make it flow nice
|
||||||
function boundClick(i) {
|
function boundClick(i) {
|
||||||
if (reclaiming) {
|
if (reclaiming && i) {
|
||||||
return sendVboxReclaim(i);
|
return sendVboxReclaim(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ function Vbox(args) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="vbox">
|
<div className="vbox" onClick={() => setReclaiming(false)} >
|
||||||
<div className="vbox-hdr">
|
<div className="vbox-hdr">
|
||||||
<div>VBOX</div>
|
<div>VBOX</div>
|
||||||
<div className="bits" >{vbox.bits}b</div>
|
<div className="bits" >{vbox.bits}b</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user