mnml/client/assets/styles/styles.less

320 lines
4.7 KiB
Plaintext

@import 'colours.less';
html body {
margin: 0;
background-color: black;
font-family: 'Jura';
color: whitesmoke;
font-size: 14pt;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
overflow-x: hidden;
overflow-y: hidden;
}
#mnml {
/* 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: 16pt;
// }
// }
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;
&.animations-test {
aside button {
font-size: 50%;
}
}
}
main {
grid-area: main;
}
button, input {
font-family: 'Jura';
color: whitesmoke;
height: auto;
border-width: 2px;
border-color: @gray-exists;
letter-spacing: 0.25em;
box-sizing: border-box;
font-size: 100%;
flex: 1;
border-radius: 0.5em;
line-height: 2em;
/*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: 1.5em;
}
table {
table-layout: fixed;
width: 100%;
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;
animation: 0;
}
#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: 200%;
}
button {
height: 2em;
// border-radius: 0.1em;
border: none;
border-radius: 0;
}
}
.options {
button {
&.highlight {
color: @white;
box-shadow: inset 0px 5px 0px 0px @white;
border: 0;
}
border: none;
}
}
nav {
display: none;
}
ul {
margin-bottom: 1em;
list-style: inside;
}
li {
margin-bottom: 0;
}
.logo {
height: 2em;
background-image: url("../../assets/mnml.logo.trim.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: left;
}
.discord-btn {
background-image: url("./../discord.white.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.mnni {
background-image: url("./../mnni.svg");
}
.avatar {
grid-area: avatar;
object-fit: contain;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
z-index: 0;
// pointer-events: none;
}
#clipboard {
width: 1px;
height: 1px;
padding: 0px;
}