25/assets/app.css
2025-02-16 14:43:32 +01:00

348 lines
5.3 KiB
CSS

body {
background: #e1740d;
margin: 0;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
}
input,
button {
font-size: 1.25em;
}
body > header {
background-color: #c0430d;
margin-bottom: 3em;
}
body > header > img {
padding: 2em;
}
body > header > nav {
display: flex;
justify-content: flex-end;
padding-right: 1em;
border-bottom: 6px solid #261603;
> ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 0.5em;
border-left-width: 0;
transform: translateY(6px);
}
a {
font-weight: bold;
text-decoration: none;
color: #261603;
line-height: 1;
padding: 1em;
display: block;
background-color: #f05f00;
border: 3px solid #261603;
&:hover,
&:focus {
background-color: #261603;
color: #ff7c14;
}
&.current {
pointer-events: none;
background-color: #fff;
}
}
}
h1 {
font-size: 1.75em;
letter-spacing: -0.066em;
}
h2 {
font-size: 1.33em;
}
p,
li {
line-height: 1.66em;
}
h3,
h4 {
font-size: 1em;
}
main {
margin: 2em auto;
max-width: 40em;
}
.cards {
display: flex;
flex-direction: column;
gap: 4em;
}
.card {
position: relative;
background-color: #fff;
border: 6px solid #261603;
padding: 3em;
box-sizing: border-box;
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
&.collapsed {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
pre {
padding: 0.5em;
background-color: #1e2025;
color: #96df71;
position: relative;
margin: 1em 2em;
overflow-y: auto;
button {
position: absolute;
top: 2px;
right: 2px;
}
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.breadcrumbs {
> .trail > span::after {
content: "/";
}
color: #bbb;
a {
color: #777;
}
}
.head {
background: #ff7c14;
border: 10px solid #c0430d;
position: relative;
padding: 0.5em;
margin: 3em 0 7em;
font-size: 1.25em;
padding: 1em 2em;
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
&::after {
display: block;
width: 10px;
height: 40px;
content: "";
background: #c0430d;
position: absolute;
left: 50%;
transform: translateX(-10px) translateY(100%);
bottom: -10px;
}
}
.skiplink {
position: absolute;
top: -2em;
left: 1em;
background-color: #ff0;
color: #000;
text-decoration: none;
padding: 0.25em;
transition: top 0.25s ease-out;
&:focus {
top: 1em;
}
}
.anders {
img {
position: fixed;
top: 1em;
left: 1em;
aspect-ratio: 1;
border-radius: 50%;
width: 175px;
&:hover {
animation: 1s ease-out 0s infinite alternate burst;
}
}
img + img {
top: 12.5em;
left: 5em;
width: 125px;
}
img + img + img {
top: 18.5em;
left: 0.5em;
width: 90px;
}
}
body > footer {
width: 30em;
margin: 7em auto;
display: flex;
align-items: center;
gap: 2em;
img {
width: 100px;
height: 100px;
aspect-ratio: 1 / 1;
border: 6px solid #c0430d;
border-radius: 8px;
}
p {
background: #ff7c14;
border: 6px solid #c0430d;
border-radius: 8px;
padding: 0.5em;
position: relative;
&::before {
content: "";
display: block;
background: #c0430d;
width: 12px;
height: 6px;
position: absolute;
top: 45%;
left: -16px;
}
}
}
.bookmarks {
display: flex;
flex-direction: column;
gap: 4em;
}
.bookmark {
h3 {
font-weight: normal;
font-size: 1.5em;
line-height: 1.33;
margin-top: 0;
margin-bottom: 0.25em;
}
footer {
text-align: right;
font-size: 1em;
color: #888;
a {
color: #444;
}
}
}
.article {
img {
max-width: 100%;
display: block;
}
margin: 2.8em 0;
h3 {
margin: 0;
font-size: 1.4em;
line-height: 1.33;
}
ul {
padding-left: 1em;
margin: 2em;
}
li + li {
margin-top: 0.5em;
}
footer {
margin-top: 3em;
font-size: 0.75em;
font-style: italic;
}
h2 {
margin-top: 3rem;
}
}
.vert {
position: absolute;
left: calc(-6px - 2.1em);
top: 1em;
background: #fff;
padding: 0.25em;
border: 2px solid #261603;
border-top: 0;
margin: 0;
transform: rotate(90deg);
}
@keyframes burst {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(0.8);
}
}