267 lines
5.7 KiB
CSS
267 lines
5.7 KiB
CSS
|
/**
|
||
|
* SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-3.0-only
|
||
|
*/
|
||
|
*, *::before, *::after {
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
* {
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 100;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Thin'), url('./fonts/JetBrainsMono-ThinItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 200;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono ExtraLight'), url('./fonts/JetBrainsMono-ExtraLightItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 300;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Light'), url('./fonts/JetBrainsMono-LightItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 400;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono'), url('./fonts/JetBrainsMono-Italic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 500;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Medium'), url('./fonts/JetBrainsMono-MediumItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 600;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono SemiBoldItalic'), url('./fonts/JetBrainsMono-SemiBoldItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 700;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Bold'), url('./fonts/JetBrainsMono-BoldItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: italic;
|
||
|
font-weight: 800;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono ExtraBold'), url('./fonts/JetBrainsMono-ExtraBoldItalic.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 100;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Thin'), url('./fonts/JetBrainsMono-Thin.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 200;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono ExtraLight'), url('./fonts/JetBrainsMono-ExtraLight.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 300;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Light'), url('./fonts/JetBrainsMono-Light.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 400;
|
||
|
font-display: swap;
|
||
|
src:
|
||
|
local('JetBrains Mono'), url('./fonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 500;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono Medium'), url('./fonts/JetBrainsMono-Medium.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 600;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono SemiBold'), url('./fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 700;
|
||
|
font-display: swap;
|
||
|
src:
|
||
|
local('JetBrains Mono Bold'), url('./fonts/JetBrainsMono-Bold.woff2') format('woff2'); }
|
||
|
|
||
|
@font-face {
|
||
|
font-family: 'JetBrains Mono';
|
||
|
font-style: normal;
|
||
|
font-weight: 800;
|
||
|
font-display: swap;
|
||
|
src: local('JetBrains Mono ExtraBold'), url('./fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
|
||
|
}
|
||
|
|
||
|
:root {
|
||
|
--numerus--color--black: #3f3b37;
|
||
|
--numerus--color--dark-gray: #8a8885;
|
||
|
--numerus--color--light-gray: #e1dbd6;
|
||
|
--numerus--color--white: #ffffff;
|
||
|
--numerus--color--yellow: #ffd200;
|
||
|
--numerus--color--red: #ff7a53;
|
||
|
--numerus--color--green: #5ae487;
|
||
|
--numerus--color--blue: #55bfff;
|
||
|
--numerus--color--hay: #ffe673;
|
||
|
|
||
|
--numerus--text-color: var(--numerus--color--black);
|
||
|
--numerus--background-color: var(--numerus--color-white);
|
||
|
--numerus--font-family: 'JetBrains Mono';
|
||
|
|
||
|
--numerus--header--background-color: #ede9e5;
|
||
|
}
|
||
|
|
||
|
html, body {
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
font-family: var(--numerus--font-family), monospace;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
color: var(--numerus--text-color);
|
||
|
background-color: var(--numerus--background-color);
|
||
|
line-height: 1.5;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
}
|
||
|
|
||
|
img, picture, video, canvas, svg {
|
||
|
display: block;
|
||
|
max-width: 100%;
|
||
|
}
|
||
|
|
||
|
input, button, textarea, select {
|
||
|
font: inherit;
|
||
|
}
|
||
|
|
||
|
p, h1, h2, h3, h4, h5, h6 {
|
||
|
overflow-wrap: break-word;
|
||
|
}
|
||
|
|
||
|
input[type="submit"], button {
|
||
|
background-color: var(--numerus--color--white);
|
||
|
border: 2px solid var(--numerus--color--black);
|
||
|
text-transform: uppercase;
|
||
|
}
|
||
|
|
||
|
input[type="submit"]:hover, button:hover {
|
||
|
background-color: var(--numerus--color--light-gray);
|
||
|
}
|
||
|
|
||
|
input[type="submit"]:active, button:active {
|
||
|
background-color: var(--numerus--color--black);
|
||
|
border-color: var(--numerus--color--white);
|
||
|
text-color: var(--numerus--color--white);
|
||
|
}
|
||
|
|
||
|
.web {
|
||
|
margin: 5.3125rem 2.5rem;
|
||
|
background-color: var(--numerus--header--background-color);
|
||
|
}
|
||
|
|
||
|
.web h1 {
|
||
|
margin-bottom: 1.875em;
|
||
|
}
|
||
|
|
||
|
#login {
|
||
|
background-color: var(--numerus--color--hay);
|
||
|
padding: 1.5625em;
|
||
|
}
|
||
|
|
||
|
#login h2 {
|
||
|
margin-bottom: 1em;
|
||
|
}
|
||
|
|
||
|
div[role="alert"].error {
|
||
|
padding: 1.3125em;
|
||
|
background-color: var(--numerus--color--red);
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
background-color: var(--numerus--header--background-color);
|
||
|
padding: .625rem 1.875rem;
|
||
|
}
|
||
|
|
||
|
nav {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
nav > button {
|
||
|
width: 4.375rem;
|
||
|
height: 4.375rem;
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
border-radius: 50%;
|
||
|
border: none;
|
||
|
}
|
||
|
|
||
|
nav button {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
nav ul {
|
||
|
list-style: none;
|
||
|
padding: none;
|
||
|
position: absolute;
|
||
|
right: -1.875em;
|
||
|
top: calc(100% + .625rem);
|
||
|
}
|
||
|
|
||
|
nav ul button {
|
||
|
border: 0;
|
||
|
width: 31.25rem;
|
||
|
height: 5.25rem;
|
||
|
}
|