25/assets/app.css
2025-02-11 13:15:58 +01:00

222 lines
3.3 KiB
CSS

body {
background: #222;
margin: 0;
background-image: linear-gradient(
175deg,
#212223,
#222 350px,
#302928 345px,
#282828
);
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
}
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: 0 0 0 13em;
max-width: 37em;
}
.cards {
display: flex;
flex-direction: column;
gap: 1.33em;
}
.card {
background-color: #fff;
border: 2px solid #444;
padding: 3em;
border-radius: 9px;
box-shadow: 0 0 5px #000;
: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 {
border-radius: 8px 8px 0 0;
padding: 1em;
> .trail > span::after {
content: "/";
}
background: #080808;
background-image: linear-gradient(
#080808 0,
#080808 50%,
#161616 50%,
#080808 100%
);
color: #fff;
a {
color: #fff;
}
}
.head {
color: #fff;
background-color: #345;
padding: 1em 2em;
border-radius: 0 0 8px 8px;
margin-bottom: 1.5em;
:first-child {
margin-top: 0;
}
a {
color: #fff;
}
}
.skiplink {
position: absolute;
top: -1.75em;
left: 1em;
background-color: #ff0;
color: #000;
text-decoration: none;
padding: 0.25em;
transition: top 0.25s ease-out;
&:focus {
top: 1em;
}
}
nav {
display: flex;
margin: 2em 0 1em;
> ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 1.5em;
background: #111;
padding: 0.33em 1.5em 0.25em;
border-radius: 0 1.33em 1.33em 0;
border: 2px solid #333;
border-left-width: 0;
padding-left: 13em;
}
a {
text-decoration: none;
color: #fff;
line-height: 1;
}
}
.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;
}
}
.bookmarks {
display: flex;
flex-direction: column;
gap: 2em;
}
@keyframes burst {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(0.8);
}
}