Snek/src/less/snek.less

146 lines
1.7 KiB
Text
Raw Normal View History

2020-03-23 19:11:39 +00:00
// full CSS reset
@import 'fullreset.less';
// load the font
@import url('https://fonts.googleapis.com/css?family=Fira+Code:400,700&display=swap');
html {
font-family: 'Fira Code', monospace;
}
// setup REM units
html {
font-size: 62.5% !important;
}
// setup the colors and styles
@accentbg: #fba49b;
@bg: #ffefdf;
@accentfg: #930a16;
@fg: #23090d;
body {
color: @fg;
}
h1, h2, h3, h4, h5, h6, strong, a {
color: @accentfg;
font-weight: bold;
}
2020-03-25 14:57:20 +00:00
h1, h2, h3, h4, h5, h6 {
margin-bottom: .1em;
}
2020-04-06 20:03:20 +00:00
p + p {
margin-top: 1em;
}
2020-03-23 19:11:39 +00:00
a {
text-decoration: inherit;
2020-04-06 18:16:28 +00:00
display: contents;
2020-03-23 19:11:39 +00:00
}
em {
font-style: italic;
}
2020-04-06 20:03:20 +00:00
code {
background: @accentbg;
font-weight: bold;
}
2020-03-23 19:11:39 +00:00
header, footer {
background: @accentbg;
2020-04-05 18:58:35 +00:00
2020-03-23 19:11:39 +00:00
img {
border: 4px solid @accentfg;
border-radius: 2px;
}
}
// setup the layout
html, body {
display: flex;
flex-direction: column;
height: 100%;
}
header img, footer img {
float: left;
margin-right: 1rem;
}
header img {
height: 8rem;
}
footer img {
height: 4rem;
}
2020-04-06 18:16:28 +00:00
header ul {
display: flex;
list-style-type: none;
li {
margin-right: 1ex;
font-size: 2rem;
a {
color: @fg;
}
}
}
2020-03-23 19:11:39 +00:00
header, footer, main {
padding: 2rem;
}
main {
flex: 1;
2020-03-25 17:29:28 +00:00
display: flex;
2020-03-25 14:57:20 +00:00
position: relative;
2020-03-25 17:29:28 +00:00
background: @bg;
2020-03-25 14:57:20 +00:00
canvas {
position: absolute;
top: 0;
left: 0;
}
2020-03-23 19:11:39 +00:00
}
h1 {
font-size: 4rem;
}
h2 {
font-size: 2rem;
}
2020-04-06 18:16:28 +00:00
h3 {
font-size: 1.9rem;
}
h4 {
font-size: 1.8rem;
}
h5 {
font-size: 1.7rem;
}
2020-03-23 19:11:39 +00:00
p {
font-size: 1.6rem;
}
2020-03-24 12:01:24 +00:00
2020-03-25 14:57:20 +00:00
.hidden {
display: none !important;
}
2020-03-24 12:01:24 +00:00
// setup the progress bar
@import 'progressBar';
2020-03-25 14:57:20 +00:00
// setup the main menu
@import 'mainMenu';
2020-03-25 17:29:28 +00:00
// setup the popups
@import 'popup';
2020-04-05 18:58:35 +00:00
// setup the hud
@import 'hud';
2020-04-06 20:03:20 +00:00
// setup the help file
@import 'help';