site/web/public/style.css
2024-11-03 01:43:33 -05:00

179 lines
2.9 KiB
CSS

@font-face {
font-family: "mono";
src: url("/public/fonts/HurmitNerdFontMono-Regular.otf");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "mono";
src: url("/public/fonts/HurmitNerdFontMono-Italic.otf");
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "mono";
src: url("/public/fonts/HurmitNerdFontMono-Bold.otf");
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "legible";
src: url("/public/fonts/AtkinsonHyperlegible-Regular.ttf");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "brand";
src: url("/public/fonts/HelveticaNeueMedium.otf");
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--col-11: #fff;
--col-10: #eee;
--col-06: #999;
--col-05: #808080;
--col-04: #777;
--col-01: #111;
--col-00: #000;
}
* {
all: unset;
display: block;
box-sizing: border-box;
flex-shrink: 0;
font-family: "mono", monospace;
font-size: 14px;
text-rendering: optimizeLegibility;
text-wrap: balance;
color: var(--col-01);
}
*::-webkit-scrollbar {
background-color: #80808000;
width: 5px;
height: 8px;
}
*::-webkit-scrollbar-thumb {
background: #ccc;
}
*::placeholder {
color: var(--col-06);
}
title,
style,
script {
display: none;
}
html {
background-color: var(--col-05);
height: 100dvh;
}
body {
height: 100dvh;
}
#nav {
position: fixed;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 6px 12px;
width: 100%;
background-color: #80808000;
z-index: 5;
user-select: none;
}
#nav_border {
position: fixed;
left: 0;
right: 0;
top: 42px;
height: 2px;
width: 100%;
z-index: 5;
}
height: 100dvh;
margin: 0 auto;
/* padding-top: 64px; */
display: flex;
flex-flow: column;
align-items: center;
}
h1, h2 {
letter-spacing: 2px;
}
h1 {
color: #fff;
}
a, b, i, code, span {
display: inline;
font-family: inherit;
font-size: inherit;
color: inherit;
}
a {
cursor: pointer;
text-decoration: underline;
}
a:focus {
filter: brightness(1.333);
}
b { font-weight: bold; }
i { font-style: italic; }
code {
font-family: 'DM Mono', monospace;
font-weight: 500;
color: #0000FF;
}
ul {
all: revert;
width: 90%;
margin: 0 auto;
margin-bottom: 1rem;
}
li {
all: revert;
}
img, video, canvas {
overflow: hidden;
}
img {
all: revert-layer;
display: block;
margin: 0 auto;
border-radius: 6px;
}
video {
border-radius: 6px;
}
.t_symbol {
margin: 2rem auto;
font-family: "Nanum Myeongjo", serif;
text-align: center;
font-size: 64px;
/* font-weight: bold; */
color: #666;
}
footer {
margin-top: 128px;
height: 64px;
line-height: 64px;
letter-spacing: 0.5px;
font-size: 0.75em;
}
input {
outline: none;
border: none;
padding: 8px 16px;
border-radius: 32px;
letter-spacing: 1px;
font-size: 16px;
}