mnml/client/assets/styles/menu.less
2019-12-29 16:20:17 +10:00

202 lines
3.7 KiB
Plaintext

.menu {
height: 100%;
display: grid;
grid-template-rows: min-content 1fr 2fr;
grid-template-columns: 1fr;
grid-template-areas:
"hdr"
"top"
"bottom";
.top {
grid-area: top;
border-bottom: 0.1em solid #222;
box-sizing: border-box;
}
.bottom {
grid-area: bottom;
}
.team {
display: grid;
grid-area: bottom;
grid-template-columns: repeat(auto-fill, minmax(min-content, 33%));
max-height: 100%;
margin-top: 1em;
.team-select:not(:nth-child(3n)) {
margin-right: 0.5em;
}
.construct {
flex: 1 1 33%;
overflow: hidden;
display: flex;
flex-flow: column;
text-align: center;
justify-content: center;
border: 1px solid black;
transition-property: border;
transition-duration: 0.25s;
transition-delay: 0;
transition-timing-function: ease;
button:not(:last-child) {
margin-bottom: 1em;
}
.avatar {
background-size: contain;
background-repeat: no-repeat;
background-position: center;
// pointer-events: none;
height: 100%;
}
}
}
.options {
grid-area: hdr;
display: flex;
.logo {
flex: 0 1 10%;
margin-right: 1em;
border: none;
}
button {
flex: 1;
border-top: 0;
border: 0.1em solid #222;
&:last-child {
float: right;
}
}
}
}
section {
display: grid;
grid-template-columns: 1fr 1fr;
h1 {
margin-bottom: 0.5em;
}
.news {
padding-right: 1em;
}
.panes {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}
.list {
margin-bottom: 2em;
figure {
letter-spacing: 0.25em;
text-transform: uppercase;
font-size: 125%;
display: flex;
flex-flow: column;
}
letter-spacing: 0.25em;
text-transform: uppercase;
display: grid;
// grid-template-columns: repeat(4, 1fr);
grid-template-columns: 1fr 1fr;
grid-gap: 1em;
flex-flow: row wrap;
align-items: flex-end;
&.sub {
grid-template-columns: 1fr;
}
&.play {
grid-template-columns: repeat(2, 1fr);
align-items: flex-start;
&.rejoin {
grid-template-columns: 1fr;
}
button.ready:enabled {
color: forestgreen;
border-color: forestgreen;
&:hover {
background: forestgreen;
color: black;
border-color: forestgreen;
}
}
// // all green
// button.ready:enabled {
// background: forestgreen;
// color: black;
// border-color: forestgreen;
// &:hover {
// color: forestgreen;
// border-color: forestgreen;
// background: 0;
// }
// }
}
}
.login {
display: flex;
flex-flow: column;
.terms {
display: inline;
margin: 0 1em;
}
button {
padding: 0 0.5em;
margin-top: 1em;
}
}
.options {
grid-area: hdr;
display: flex;
.logo {
flex: 0 1 10%;
margin-right: 1em;
border: none;
}
button {
flex: 1;
border-top: 0;
border: 0.1em solid #222;
&:last-child {
float: right;
}
}
}
.intro {
text-align: center;
font-size: 0.8em;
}