mnml/client/assets/styles/styles.less
2019-08-13 14:44:44 +10:00

240 lines
3.5 KiB
Plaintext

@import 'colours.less';
html, body, #mnml {
margin: 0;
background-color: black;
font-family: 'Jura';
color: whitesmoke;
font-size: 12pt;
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;
overflow-y: hidden;
}
@media (min-width: 1921px) {
html, body, #mnml {
font-size: 14pt;
}
}
html {
box-sizing: border-box;
margin: 0;
padding: 0;
}
*, *:before, *:after {
box-sizing: inherit;
}
h1 {
font-size: 2em;
margin: 0;
margin-bottom: 0.5em;
letter-spacing: 0.05em;
}
h2 {
font-size: 1.5em;
margin: 0;
}
h3 {
font-size: 1.25em;
margin: 0;
}
h4 {
font-size: 1.1em;
margin: 0;
}
hr {
color: #222;
margin: 1.5em 0;
width: 100%;
}
figure {
margin: 0;
text-align: center;
}
#mnml {
display: grid;
grid-template-columns: minmax(min-content, 1fr) 8fr 1fr;
grid-template-rows: min-content 1fr min-content;
grid-template-areas:
"hd hd ctrl"
"nav main ctrl"
"nav main ctrl";
}
main {
padding: 1em;
grid-area: main;
}
button, input {
font-family: 'Jura';
color: whitesmoke;
height: auto;
border-width: 2px;
border-color: @gray-exists;
border-radius: 0;
letter-spacing: 0.25em;
box-sizing: border-box;
font-size: 100%;
flex: 1;
/*the transitions */
transition-property: color, background;
transition-duration: 0.25s;
transition-delay: 0;
transition-timing-function: ease;
&:hover {
color: whitesmoke;
border-color: @gray-hover;
}
&:focus {
/*colour necesary to bash skellington*/
color: @gray-focus;
border-color: @gray-focus;
}
}
a {
color: whitesmoke;
text-decoration: none;
&:hover {
color: whitesmoke;
border-color: @gray-hover;
}
&:focus {
/*colour necesary to bash skellington*/
color: @gray-focus;
border-color: @gray-focus;
}
}
svg {
fill: none;
stroke: whitesmoke;
stroke-width: 0.5em;
height: 2em;
}
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: 0.5em;
overflow: hidden;
height: 1.5em;
vertical-align: text-bottom;
}
table .highlight {
background: #222;
color: whitesmoke;
font-weight: bold;
}
button[disabled] {
color: #222;
border-color: #222;
}
/*
LOGIN
*/
.login {
width: 50%;
display: flex;
flex-flow: column;
margin-bottom: 2em;
h2 {
margin-bottom: 0.5em;
}
}
#mnml input, #mnml select {
border-color: #222;
background-color: #222;
border-radius: 0;
}
#mnml input:focus, #mnml select:focus {
border-color: #888;
}
figure.gray {
color: #333;
stroke-color: #333;
}
.stats svg, .specs svg {
height: 2em;
fill: none;
}
.credits {
color: @yellow;
font-weight: 800;
}
@media (max-width: 1500px) {
#mnml {
font-size: 75%;
}
svg {
height: 1em;
}
}
.mobile-title {
display: none;
}