This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
staxman-old/templates/base.html

112 lines
No EOL
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}{{ title }} - staxman{% endblock %}</title>
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="https://iosevka-webfonts.github.io/iosevka/iosevka.css">
<style>
:root {
--background: #13131E;
--bg-raised: #171625;
--text: #E0DFFE;
--link: #FFC53D;
--link-hover: #e28d0e;
--button-color: #B1A9FF;
--button-bg: #202248;
--button-border: #5B5BD6;
--button-bg-hover: #7E451D;
background-color: var(--background);
color: var(--text);
font-family: Inter, sans-serif;
}
code {
font-family: "Iosevka Web", monospace;
font-size: 11pt;
}
a[href],
a[href]:visited {
color: var(--link);
&:hover {
color: var(--link-hover);
}
}
body {
display: flex;
flex-direction: column;
}
nav {
display: flex;
width: 100%;
background-color: var(--bg-raised);
& a {
flex: 1;
display: flex;
text-decoration: none;
padding: 5px 8px;
justify-content: center;
max-width: 100px;
box-shadow: inset 0 -2px var(--button-bg);
font-size: 11pt;
text-transform: uppercase;
&[href],
&[href]:visited {
color: var(--button-color);
}
&:hover {
background-color: #1E160F;
box-shadow: inset 0 -2px var(--button-bg-hover);
}
}
}
main {
padding: 10px;
}
body,
html {
padding: 0;
margin: 0;
}
button {
background-color: var(--button-bg);
color: var(--button-color);
border: 1px solid var(--button-border);
padding: 4px 8px;
border-radius: 3px;
&:hover {
cursor: pointer;
background-color: var(--button-bg-hover);
color: var(--link-hover);
border-color: var(--link-hover);
}
}
</style>
</head>
<body>
<nav>
<a href="/">Overview</a>
</nav>
{% block content %}{% endblock %}
</body>
</html>