mnml/client/assets/styles/styles.less
2019-09-12 12:39:33 +10:00

271 lines
3.9 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%;
border-top: 1px solid #222;
}
figure {
margin: 0;
text-align: center;
}
p {
margin-bottom: 1em;
}
dl {
margin: 1em 0;
}
#mnml {
display: grid;
grid-template-columns: 9fr 1fr;
grid-template-rows: min-content min-content 1fr;
grid-template-areas:
"hdr ctrl"
"main ctrl"
"main ctrl";
padding: 0.5em 1em;
}
main {
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: border-color, 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;
}
#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;
}
header {
.options {
font-size: 150%;
}
button {
height: 2em;
}
}
.options {
button {
&.highlight {
color: @white;
box-shadow: inset 0px 5px 0px 0px @white;
border: 0;
}
border: 1px solid #444;
flex: 1;
}
}
nav {
display: none;
}
ul {
margin-bottom: 1em;
list-style: inside;
}
li {
margin-bottom: 0.5em;
}