Files
website/style.css
T

186 lines
2.8 KiB
CSS

:root {
--font-weight-normal: 500;
--font-weight-medium: 600;
--font-weight-bold: 800;
}
* {
box-sizing: border-box;
}
@font-face {
font-family: "JetBrains Mono Regular";
font-style: normal;
font-weight: var(--font-weight-normal);
src: url("/font/JetBrainsMono-Medium.woff2") format("woff2");
}
@font-face {
font-family: "JetBrains Mono Medium";
font-style: normal;
font-weight: var(--font-weight-medium);
src: url("/font/JetBrainsMono-Bold.woff2") format("woff2");
}
@font-face {
font-family: "JetBrains Mono Bold";
font-style: normal;
font-weight: var(--font-weight-bold);
src: url("/font/JetBrainsMono-ExtraBold.woff2") format("woff2");
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: "JetBrains Mono Regular", monospace;
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
font-size: 16px;
font-weight: var(--font-weight-normal);
line-height: 1.5;
text-decoration: none;
color: #333;
width: 600px;
margin: 1em auto;
}
a {
display: inline-block;
color: #15C;
text-decoration: underline;
text-decoration-thickness: 2px;
}
p {
word-break: break-word;
word-wrap: break-word;
hyphens: auto;
}
span.pre {
background: #DDD;
padding: 0.2em 0.4em;
}
pre {
margin: 1em 0;
padding: 0.2em 0.4em;
background: #ddd;
white-space: nowrap;
display: block;
overflow-x: auto;
overflow-y: hidden;
}
.header {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
border: none;
}
.header:hover {
border-bottom: none;
}
.header p {
font-size: 20px;
font-family: "JetBrains Mono Bold", monospace;
color: #333;
}
.logo {
border-radius: 50%;
height: 75px;
width: 75px;
}
.logo>img {
border-radius: 50%;
}
nav {
display: block;
margin: 2em 0;
text-transform: uppercase;
}
nav a {
margin-right: 1em;
}
nav a:last-child {
margin-right: 0;
}
.home img {
width: 100%;
}
ul li {
list-style: none;
list-style-type: square;
text-transform: uppercase;
}
.content-wrapper .title {
font-size: 1.2rem;
text-transform: uppercase;
font-family: "JetBrains Mono Bold", monospace;
}
.content-wrapper .title span,
main ul li span {
font-size: 14px;
color: #555;
font-weight: normal;
}
.content-wrapper .title span {
display: block;
}
hr {
position: relative;
display: block;
height: 1.20rem;
margin: calc(1.20rem * 1.5) 0;
border: none;
color: #000;
}
hr::after {
display: block;
content: "";
position: absolute;
top: calc(1.20rem / 2 - 2px);
left: 0;
width: 100%;
border-top: calc(2px * 3) double #000;
height: 0;
}
footer {
margin-bottom: 3em;
}
@media only screen and (max-width: 700px) {
body {
width: 100%;
margin: 0;
padding: 1em;
}
}
@media only screen and (max-width: 540px) {
.header p img {
width: 100%;
height: auto;
}
}