menu styles

This commit is contained in:
ntr 2019-09-08 14:33:58 +10:00
parent c4fd68a47f
commit 44ef34c6eb
5 changed files with 48 additions and 59 deletions

View File

@ -1,18 +1,19 @@
@import 'colours.less'; @import 'colours.less';
.account { .account {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
grid-gap: 0 1em;
div {
padding-right: 2em;
}
button { button {
width: 100%;
display: block; display: block;
// height: 3em;
width: 75%;
} }
input { input {
width: 75%; width: 100%;
height: 3em; height: 3em;
display: block; display: block;
} }
@ -31,19 +32,7 @@
} }
.list { .list {
letter-spacing: 0.25em; grid-template-columns: 1fr;
text-transform: uppercase;
figure {
width: 75%;
display: flex;
flex-flow: column;
margin-bottom: 1em;
button {
width: 100%;
}
}
} }
} }

View File

@ -61,7 +61,25 @@
} }
} }
.inventory { .options {
grid-area: hdr;
button {
width: 25%;
border-top: 0;
border: 1px solid #222;
&:not(:last-child) {
border-right: 0;
}
&:last-child {
float: right;
}
}
}
}
section {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
@ -84,26 +102,10 @@
} }
figure { figure {
letter-spacing: 0.25em;
text-transform: uppercase;
font-size: 125%; font-size: 125%;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
} }
}
.options {
grid-area: hdr;
button {
width: 25%;
border-top: 0;
border: 1px solid #222;
&:not(:last-child) {
border-right: 0;
}
&:last-child {
float: right;
}
}
}
} }

View File

@ -206,14 +206,12 @@ class AccountStatus extends Component {
</button> </button>
</div> </div>
<div> <div>
<div class="list">
<figure> <figure>
<figcaption>spawn new construct</figcaption> <figcaption>spawn new construct</figcaption>
<button onClick={() => sendConstructSpawn()} type="submit"> <button onClick={() => sendConstructSpawn()} type="submit">
¤50 ¤50
</button> </button>
</figure> </figure>
</div>
<button onClick={() => logout()}>Logout</button> <button onClick={() => logout()}>Logout</button>
<button><a href={`mailto:humans@mnml.gg?subject=Account%20Support:%20${account.name}`}> support</a></button> <button><a href={`mailto:humans@mnml.gg?subject=Account%20Support:%20${account.name}`}> support</a></button>
</div> </div>

View File

@ -89,7 +89,7 @@ function Play(args) {
return ( return (
<div class="inventory top"> <section class="top">
<div class="news"> <div class="news">
<h1>mnml v{VERSION}</h1> <h1>mnml v{VERSION}</h1>
<p>use the buttons on the right to join an instance.</p> <p>use the buttons on the right to join an instance.</p>
@ -122,7 +122,7 @@ function Play(args) {
{shop.available.map(availableMtx)} {shop.available.map(availableMtx)}
</div> </div>
</div> </div>
</div> </section>
); );
} }

View File

@ -25,7 +25,7 @@ function Shop(args) {
} = args; } = args;
return ( return (
<div class="inventory top"> <section class="top">
<div class="news"> <div class="news">
<h1>support the game</h1> <h1>support the game</h1>
<p> <p>
@ -51,7 +51,7 @@ function Shop(args) {
<StripeBtns account={account} /> <StripeBtns account={account} />
</Elements> </Elements>
</div> </div>
</div> </section>
); );
} }