168 lines
3.1 KiB
CSS
168 lines
3.1 KiB
CSS
:root {
|
|
--bg: #282828;
|
|
--foreground: white;
|
|
--header-bg: linear-gradient(#303030, #181818);
|
|
--header-fg: #555;
|
|
--header-title-fg: white;
|
|
--nav-above-border-color: #000000;
|
|
--nav-bg: linear-gradient(#262626, #181818);
|
|
--nav-fg: #666;
|
|
--nav-active-fg: #eb6e00;
|
|
--nav-top-border-color: #303030;
|
|
font-size: 12px;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-weight: 100 900;
|
|
font-display: swap;
|
|
font-style: oblique 0deg 10deg;
|
|
src: url("Inter.var.woff2?v=3.19") format("woff2");
|
|
}
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
*, *:before, *:after {
|
|
box-sizing: inherit;
|
|
}
|
|
|
|
body {
|
|
font-family: Inter, sans-serif;
|
|
font-feature-settings: "zero", "calt", "ccmp", "kern";
|
|
background: var(--bg);
|
|
color: var(--foreground);
|
|
font-size: 12px;
|
|
}
|
|
|
|
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.filler {
|
|
flex: 2 1 auto;
|
|
}
|
|
|
|
.container {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
[hidden] { display: none !important; }
|
|
|
|
header {
|
|
border-bottom: 1px solid black;
|
|
background: var(--header-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--header-fg);
|
|
}
|
|
|
|
header h1 {
|
|
padding: 1.5rem;
|
|
font-weight: 400;
|
|
align-self: stretch;
|
|
color: white;
|
|
}
|
|
|
|
header .led {
|
|
margin-left: 1rem;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
header span {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
main {
|
|
flex: 2 1 auto;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: center;
|
|
background: var(--nav-bg);
|
|
border-top: 1px solid var(--nav-top-border-color);
|
|
position: relative;
|
|
padding-bottom: 0.25rem;
|
|
}
|
|
|
|
nav a,
|
|
nav a:visited {
|
|
width: 100px;
|
|
padding: 0.5rem 0.5rem 0.5rem;
|
|
color: var(--nav-fg);
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
font-size: 1.1rem;
|
|
height: 5rem;
|
|
justify-content: center;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
nav a svg {
|
|
height: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
fill: var(--nav-fg);
|
|
}
|
|
|
|
nav a.active {
|
|
color: var(--nav-active-fg);
|
|
background: #181818;
|
|
border: 1px solid #141414;
|
|
box-shadow: rgba(0, 0, 0, .35) 0px 5px 16px -6px inset;
|
|
}
|
|
nav a.active svg {
|
|
fill: var(--nav-active-fg);
|
|
}
|
|
|
|
nav::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -2px;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
border-top: 1px solid var(--nav-above-border-color);
|
|
}
|
|
|
|
/* Taken from https://github.com/aus/led.css */
|
|
.led {
|
|
margin-top: 1px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 5px;
|
|
background-color: rgba(255, 255, 255, 0.25);
|
|
box-shadow: #fff5 3px 5px 7px -8px inset, #000 0 -1px 6px 1px;
|
|
}
|
|
.led-red {
|
|
background-color: #F00;
|
|
box-shadow: #000 0 -1px 6px 1px, inset #600 0 -1px 8px, #F00 0 3px 11px;
|
|
}
|
|
.led-orange {
|
|
background-color: #FF7000;
|
|
box-shadow: #000 0 -1px 6px 1px, inset #630 0 -1px 8px, #FF7000 0 3px 11px;
|
|
}
|
|
|
|
.led-yellow {
|
|
background-color: #FF0;
|
|
box-shadow: #000 0 -1px 6px 1px, inset #660 0 -1px 8px, #FF0 0 3px 11px;
|
|
}
|
|
|
|
.led-green {
|
|
background-color: #80FF00;
|
|
box-shadow: #000 0 -1px 6px 1px, inset #460 0 -1px 8px, #80FF00 0 3px 11px;
|
|
}
|
|
|
|
.led-blue {
|
|
background-color: #06F;
|
|
box-shadow: #000 0 -1px 6px 1px, inset #006 0 -1px 8px, #06F 0 3px 11px;
|
|
}
|