665 lines
9.7 KiB
CSS
665 lines
9.7 KiB
CSS
/*
|
|
GLOBAL
|
|
*/
|
|
|
|
html, body, #mnml {
|
|
/*width: 100%;*/
|
|
margin: 0;
|
|
|
|
background-color: #000000;
|
|
font-family: 'Jura';
|
|
color: whitesmoke;
|
|
font-size: 14pt;
|
|
|
|
user-select: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
|
|
/* this is the sweet nectar to keep it full page*/
|
|
height: 100vh;
|
|
max-height: 100vh;
|
|
min-height: 100vh;
|
|
/*padding: 0 20%;*/
|
|
|
|
/* stops inspector going skitz*/
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
*, *:before, *:after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
margin: 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5em;
|
|
margin: 0;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25em;
|
|
margin: 0;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1.1em;
|
|
margin: 0;
|
|
}
|
|
|
|
hr {
|
|
margin: 1.5em 0;
|
|
width: 100%;
|
|
}
|
|
|
|
figure {
|
|
margin: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
#mnml {
|
|
display: grid;
|
|
grid-template-columns: minmax(min-content, 1fr) 8fr;
|
|
grid-template-rows: min-content 1fr min-content;
|
|
grid-template-areas:
|
|
"hd hd"
|
|
"nav main"
|
|
"footer footer";
|
|
}
|
|
|
|
nav {
|
|
grid-area: nav;
|
|
padding-left: 2em;
|
|
margin-right: 2em;
|
|
max-height: 100%;
|
|
}
|
|
|
|
nav h2:first-child {
|
|
margin: 0;
|
|
}
|
|
|
|
nav h2 {
|
|
margin-top: 2em;
|
|
}
|
|
|
|
nav hr {
|
|
margin: 1em 0;
|
|
border-color: whitesmoke;
|
|
}
|
|
|
|
nav button {
|
|
text-overflow: ellipsis;
|
|
display: block;
|
|
color: #888;
|
|
flex: 1 1 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
border-width: 0px;
|
|
}
|
|
|
|
nav button.active {
|
|
color: whitesmoke;
|
|
}
|
|
|
|
nav button[disabled], nav button[disabled]:hover {
|
|
color: #333333;
|
|
text-decoration: none;
|
|
}
|
|
|
|
nav button:hover {
|
|
color: #888;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
nav button:focus, nav button:active {
|
|
color: whitesmoke;
|
|
}
|
|
|
|
main {
|
|
padding-top: 1em;
|
|
padding-right: 1em;
|
|
grid-area: main;
|
|
}
|
|
|
|
tr.right:focus, tr.right:hover {
|
|
box-shadow: inset -0.5em 0 0 0 whitesmoke;
|
|
}
|
|
|
|
tr {
|
|
transition-property: background, color;
|
|
transition-duration: 0.5s;
|
|
transition-delay: 0;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
button, input {
|
|
font-family: 'Jura';
|
|
color: whitesmoke;
|
|
height: auto;
|
|
border-width: 2px;
|
|
border-color: #222;
|
|
border-radius: 0;
|
|
letter-spacing: 0.25em;
|
|
box-sizing: border-box;
|
|
font-size: 100%;
|
|
flex: 1;
|
|
|
|
/*the transitions */
|
|
transition-property: color;
|
|
transition-duration: 0.5s;
|
|
transition-delay: 0;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
button:hover {
|
|
color: whitesmoke;
|
|
border-color: #888;
|
|
}
|
|
|
|
button:focus {
|
|
/*colour necesary to bash skellington*/
|
|
color: whitesmoke;
|
|
border-color: whitesmoke;
|
|
}
|
|
|
|
a {
|
|
color: whitesmoke;
|
|
font-size: 150%;
|
|
}
|
|
|
|
svg {
|
|
fill: none;
|
|
stroke: whitesmoke;
|
|
stroke-width: 5px;
|
|
height: 2em;
|
|
}
|
|
|
|
.skill-animation {
|
|
height: 5em;
|
|
}
|
|
|
|
.team .avatar {
|
|
object-fit: contain;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
width: auto;
|
|
height: auto;
|
|
pointer-events: none;
|
|
}
|
|
|
|
table {
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
/*margin-bottom: 2em;*/
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
thead {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
table td {
|
|
border: 1px solid #222;
|
|
border-color: #222;
|
|
padding: 0;
|
|
text-align: center;
|
|
height: 2em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
table tr {
|
|
border-color: #222;
|
|
}
|
|
|
|
table td svg {
|
|
stroke-width: 2px;
|
|
overflow: hidden;
|
|
height: 1.5em;
|
|
vertical-align: text-bottom;
|
|
}
|
|
|
|
table .highlight {
|
|
background: #222;
|
|
color: whitesmoke;
|
|
font-weight: bold;
|
|
}
|
|
|
|
button[disabled] {
|
|
color: #333;
|
|
border-color: #333;
|
|
}
|
|
|
|
/*
|
|
COLOURS
|
|
*/
|
|
|
|
.green {
|
|
color: #1FF01F;
|
|
stroke: #1FF01F;
|
|
}
|
|
|
|
.red {
|
|
color: #a52a2a;
|
|
stroke: #a52a2a;
|
|
}
|
|
|
|
.red-fill {
|
|
fill: #a52a2a;
|
|
}
|
|
|
|
.blue {
|
|
color: #3498db;
|
|
stroke: #3498db;
|
|
stroke-linecap: round;
|
|
}
|
|
|
|
.yellow {
|
|
color: #FFD123;
|
|
stroke: #FFD123;
|
|
}
|
|
|
|
.purple {
|
|
color: #A25AC1;
|
|
stroke: #A25AC1;
|
|
}
|
|
|
|
.cyan {
|
|
color: #6AD1BF;
|
|
stroke: #6AD1BF;
|
|
}
|
|
|
|
.gray {
|
|
color: #333;
|
|
stroke: #333;
|
|
}
|
|
|
|
.white {
|
|
color: whitesmoke;
|
|
stroke: whitesmoke;
|
|
}
|
|
|
|
|
|
/*
|
|
LOGIN
|
|
*/
|
|
|
|
.login {
|
|
width: 25%;
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
|
|
#mnml input, #mnml select {
|
|
border-color: #222;
|
|
background-color: #222;
|
|
border-radius: 0;
|
|
}
|
|
|
|
#mnml input:focus, #mnml select:focus {
|
|
border-color: #888;
|
|
}
|
|
|
|
/*
|
|
account
|
|
*/
|
|
|
|
header {
|
|
display: flex;
|
|
flex-flow: row;
|
|
grid-area: hd;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.account {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.header-title {
|
|
flex: 1;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.account-status {
|
|
display: flex;
|
|
}
|
|
|
|
.account-header {
|
|
letter-spacing: 0.05em;
|
|
flex: 1;
|
|
display: inline;
|
|
}
|
|
|
|
.account-status svg {
|
|
margin: 0.5em 0 0 1em;
|
|
height: 1em;
|
|
background-color: black;
|
|
stroke: whitesmoke;
|
|
}
|
|
|
|
.ping-path {
|
|
fill: none;
|
|
stroke-width: 4px;
|
|
stroke-dasharray: 121, 242;
|
|
animation: saw 2s infinite linear;
|
|
|
|
transition-property: stroke-color;
|
|
transition-duration: 0.5s;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
.ping-text {
|
|
margin-left: 1em;
|
|
min-width: 3em;
|
|
display: inline-block;
|
|
}
|
|
|
|
@keyframes saw {
|
|
0% {
|
|
stroke-dashoffset: 363;
|
|
}
|
|
100% {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
|
|
/*
|
|
TEAM
|
|
*/
|
|
|
|
.team {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(min-content, 33%));
|
|
max-height: 100%;
|
|
}
|
|
|
|
.menu-construct {
|
|
margin: 0.5em;
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
flex-flow: column;
|
|
text-align: center;
|
|
justify-content: center;
|
|
|
|
border: 1px solid black;
|
|
transition-property: border;
|
|
transition-duration: 0.5s;
|
|
transition-delay: 0;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
.menu-construct .controls {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.menu-construct .controls h2 {
|
|
flex: 1;
|
|
}
|
|
|
|
.menu-construct .controls button {
|
|
color: #444;
|
|
flex: 0;
|
|
margin: 0 1em 0 0;
|
|
border: none;
|
|
}
|
|
|
|
.menu-construct .controls button:hover, .menu-construct .controls button:active {
|
|
color: whitesmoke;
|
|
}
|
|
|
|
.menu-construct .avatar {
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
pointer-events: none;
|
|
height: 100%;
|
|
}
|
|
|
|
.spawn-btn.menu-construct {
|
|
border: 1px solid #333;
|
|
color: #333;
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
align-content: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.spawn-btn.menu-construct:hover {
|
|
border: 1px solid whitesmoke;
|
|
}
|
|
|
|
.spawn-btn input {
|
|
flex: 1 1 100%;
|
|
width: 100%;
|
|
margin: 1em;
|
|
}
|
|
|
|
.spawn-btn button {
|
|
flex: 1;
|
|
margin: 0.5em 1em;
|
|
padding: 0 0.5em;
|
|
}
|
|
|
|
.spawn-btn input[disabled], .spawn-btn button[disabled] {
|
|
opacity: 0
|
|
}
|
|
|
|
.inventory {
|
|
margin-right: 2em;
|
|
grid-area: inventory;
|
|
}
|
|
|
|
.inventory .list {
|
|
letter-spacing: 0.25em;
|
|
text-transform: uppercase;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
grid-gap: 1em;
|
|
flex-flow: row wrap;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.inventory figure {
|
|
font-size: 125%;
|
|
display: flex;
|
|
flex-flow: column;
|
|
}
|
|
|
|
.menu-instances {
|
|
height: 100%;
|
|
display: grid;
|
|
|
|
grid-template-rows: minmax(min-content, 2fr) 1fr;
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
grid-template-areas:
|
|
"constructs constructs"
|
|
"inventory games";
|
|
}
|
|
|
|
.menu-instances .construct-list {
|
|
grid-area: constructs;
|
|
|
|
/* poor man's <hr>*/
|
|
padding-bottom: 2em;
|
|
margin-bottom: 2em;
|
|
border-bottom: 0.1em solid whitesmoke;
|
|
}
|
|
|
|
.menu-instances .menu-construct {
|
|
flex: 1 0 33%;
|
|
}
|
|
|
|
.menu-instance-list {
|
|
grid-area: games;
|
|
flex: 1;
|
|
order: 99;
|
|
flex-flow: row wrap;
|
|
|
|
display: flex;
|
|
align-content: flex-start;
|
|
}
|
|
|
|
.menu-instance-btn {
|
|
flex: 1 1 100%;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.stripe-btn {
|
|
width: 100%;
|
|
padding: 0 0.5em;
|
|
margin: 0.25em 0;
|
|
background: whitesmoke;
|
|
color: black;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.stripe-btn:hover {
|
|
color: black;
|
|
}
|
|
|
|
|
|
.refresh-btn {
|
|
border: 1px solid #222;
|
|
float: right;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.create-form {
|
|
grid-area: create;
|
|
flex: 1;
|
|
|
|
justify-self: flex-end;
|
|
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
.create-form button {
|
|
flex: 1;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.create-form button:first-child {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.create-form button:hover, .create-form button:focus {
|
|
border-color: whitesmoke;
|
|
text-decoration: none;
|
|
}
|
|
|
|
figure.gray {
|
|
color: #333;
|
|
stroke-color: #333;
|
|
}
|
|
|
|
.stats svg, .specs svg {
|
|
height: 2em;
|
|
stroke-width: 7px;
|
|
fill: none;
|
|
}
|
|
|
|
main .top button {
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.ready-btn:hover, .ready-btn:focus, .ready-btn:active {
|
|
color: forestgreen;
|
|
}
|
|
|
|
.ready {
|
|
background: forestgreen;
|
|
color: black;
|
|
|
|
transition-property: color, background;
|
|
transition-duration: 0.5s;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
.ready:hover, .ready:active, .ready:focus {
|
|
color: black;
|
|
}
|
|
|
|
.timer-container {
|
|
display: flex;
|
|
flex: 1 1 100%;
|
|
width: 100%;
|
|
height: 0.25em;
|
|
max-height: 0.25em;
|
|
|
|
border: none;
|
|
margin: 1em 0 0 0;
|
|
}
|
|
|
|
.timer {
|
|
background: whitesmoke;
|
|
transition-property: all;
|
|
transition-duration: 0.5s;
|
|
transition-delay: 0;
|
|
transition-timing-function: ease;
|
|
}
|
|
|
|
.menu-instance-list table {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
grid-area: footer;
|
|
margin: 0;
|
|
}
|
|
|
|
footer button {
|
|
margin: 0;
|
|
border: none;
|
|
background: #222;
|
|
font-size: 1.5em;
|
|
padding: 0.25em;
|
|
}
|
|
|
|
footer button:disabled {
|
|
color: #444;
|
|
}
|
|
|
|
footer button:not(:last-child) {
|
|
background: #222;
|
|
border-right: 1px solid black;
|
|
}
|
|
|
|
footer button .ready {
|
|
background: forestgreen;
|
|
color: black;
|
|
}
|
|
|
|
@media (max-width: 1500px) {
|
|
#mnml {
|
|
font-size: 75%;
|
|
}
|
|
|
|
svg {
|
|
height: 1em;
|
|
}
|
|
}
|
|
|
|
#nav-btn, #instance-nav {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-title {
|
|
display: none;
|
|
}
|