mnml/client/assets/styles/styles.css
2019-05-30 14:46:53 +10:00

575 lines
8.6 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: 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 {
padding: 0 2em;
display: grid;
grid-template-columns: 1fr 8fr;
grid-template-rows: min-content 1fr;
grid-template-areas:
"hd hd"
"nav main";
}
nav {
grid-area: nav;
margin-right: 2em;
overflow: hidden;
white-space: nowrap;
}
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;
font-size: 14pt;
text-decoration: line-through
}
nav button:hover, nav button:focus {
color: whitesmoke;
text-decoration: underline;
}
main {
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: #444;
border-radius: 0;
letter-spacing: 0.25em;
box-sizing: border-box;
font-size: 100%;
/*the transitions */
transition-property: color;
transition-duration: 0.5s;
transition-delay: 0;
transition-timing-function: ease;
}
button:hover, button:focus {
/*colour necesary to bash skellington*/
color: whitesmoke;
border-color: whitesmoke;
}
button.right[disabled]:hover, button.left[disabled]:hover {
box-shadow: none;
}
button.top:hover, button.top:focus {
box-shadow: inset 0 0.25em 0 0 whitesmoke;
}
button.right:hover, button.right:focus {
box-shadow: inset -0.5em 0 0 0 whitesmoke;
}
button.left:hover, button.left:focus {
box-shadow: inset 0.5em 0 0 0 whitesmoke;
}
a {
color: whitesmoke;
font-size: 150%;
}
svg {
fill: none;
stroke: whitesmoke;
stroke-width: 0;
height: 2em;
}
img {
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;
}
.blue {
color: #3498db;
stroke: #3498db;
}
.yellow {
color: #FFD123;
stroke: #FFD123;
}
.purple {
color: #A25AC1;
stroke: #A25AC1;
}
.cyan {
color: #6AD1BF;
stroke: #6AD1BF;
}
.gray {
color: #333;
stroke: #333;
}
/*
LOGIN
*/
.login {
width: 25%;
display: flex;
flex-flow: column;
}
#mnml input, #mnml select {
border-color: #444;
background-color: #333;
border-radius: 0;
}
#mnml input:focus, #mnml select:focus {
border-color: whitesmoke;
}
/*
HEADER
*/
header {
display: flex;
flex-flow: row;
grid-area: hd;
margin-bottom: 1.5em;
}
.header-title {
flex: 1;
letter-spacing: 0.05em;
}
.header-username {
letter-spacing: 0.05em;
display: inline;
}
.header-status {
text-align: right;
}
.header-status svg {
margin: 0.5em 0 0 1em;
height: 1.5em;
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
*/
.menu-constructs {
display: grid;
grid-template-rows: min-content min-content;
grid-template-areas:
"top"
"team";
}
.constructs-list {
margin-top: 0.5em;
grid-area: team;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 1fr;
grid-gap: 0.5em;
}
.menu-construct {
height: 100%;
box-sizing: border-box;
border: 1px solid black;
display: flex;
flex-flow: column;
text-align: center;
justify-content: center;
transition-property: border;
transition-duration: 0.5s;
transition-delay: 0;
transition-timing-function: ease;
}
.menu-construct:nth-child(3n) {
margin-right: 0;
}
.menu-construct:first-child, .menu-construct:nth-child(4n) {
margin-left: 0;
}
.spawn-btn.menu-construct {
border: 1px solid #333;
color: #333;
display: flex;
flex-flow: row wrap;
align-content: center;
justify-content: center;
}
.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
}
/* INSTANCE LIST */
.menu-instances {
display: grid;
grid-template-areas:
"top"
"team"
"list";
grid-template-columns: 1fr;
grid-template-rows: min-content min-content 1fr;
}
.menu-instances .top {
grid-area: top;
}
.menu-instances .construct-list {
grid-area: team;
grid-auto-columns: 1fr;
grid-gap: 0.5em;
}
.menu-instance-list {
grid-area: list;
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;
}
.refresh-btn {
border: 1px solid #222;
float: right;
font-size: 1.5em;
}
.create-form {
grid-area: create;
flex: 1;
display: flex;
flex-flow: row wrap;
border: 2px solid #333;
padding: 1em;
margin-bottom: 1.5em;
}
.create-form form {
margin: 0;
flex: 1 1 50%;
}
.create-form.disabled {
border: 2px solid #222;
color: #222;
}
.create-form button {
flex: 0 1 25%;
font-size: 1.5em;
border-color: #444;
background-color: #333;
}
.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: 5px;
fill: none;
}
main .top button {
width: 100%;
}
.ready:hover {
transition-property: color, border-color;
transition-duration: 0.5s;
transition-timing-function: ease;
color: forestgreen;
border-color: forestgreen;
/*box-shadow: inset -0.5em 0 0 0 forestgreen;*/
}
.ready, .instance-btn.ready {
color: forestgreen;
border-color: forestgreen;
box-shadow: inset -0.5em 0 0 0 forestgreen;
}
.timer-container {
display: flex;
flex: 1 1 100%;
width: 100%;
height: 0.25em;
max-height: 0.25em;
border: none;
margin: 1em 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;
}
@media (max-height: 900px), (max-width: 1500px) {
#mnml {
font-size: 75%;
}
svg {
height: 1em;
}
}
/* Mobile Nav*/
#toggle-nav { display: none; }
#toggle-nav-label { display: none; }