Files
nikology.dev/styles.css
T
2026-04-20 01:52:50 +02:00

150 lines
2.1 KiB
CSS

body {
background-color: #faf4e8;
background-image: url(cream-paper.png);
color: #3d2f1f;
font-family: "Lusitana", serif;
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 2rem 20rem 2rem 20rem;
box-sizing: border-box;
}
@media(max-width: 1024px) {
body {
padding: 2rem;
}
}
/* Nav Bar */
nav {
display: flex;
gap: 1rem;
}
nav a {
color: #3d2f1f99;
text-decoration: none;
transition: color 0.5s;
}
nav a:hover {
color: #3d2f1f;
}
h1 {
font-size: 4rem;
margin-bottom: 1rem;
}
h1 img {
height: 1em;
}
h2 {
margin-bottom: 0.5rem;
}
ul {
margin-top: 0;
margin-bottom: 0;
}
p {
margin-top: 0;
margin-bottom: 0;
}
/* a {
transition: color 0.5s;
}
a:hover {
color: #3d2f1f;
} */
/* Footer */
footer {
display: flex;
position: fixed;
bottom: 1rem;
left: 1rem;
font-size: 0.8rem;
gap: 1rem;
}
footer p {
color: #3d2f1f66;
}
footer a {
color: #3d2f1f66;
transition: color 0.5s;
}
footer a:hover {
color: #3d2f1f;
}
footer svg {
margin-left: 0.25rem;
height: 1em;
width: 1em;
vertical-align: -0.15rem;
fill: currentColor;
}
/* Corner Ribbon */
.ribbon {
background-color: #3d2f1f;
color: #faf4e8;
position: fixed;
text-align: center;
padding: 0.25rem;
transform: rotate(-45deg);
top: 2rem;
left: -3rem;
width: 12rem;
}
/* Birdy */
.bird-wrap {
position: relative;
}
.bar {
opacity: 0;
position: absolute;
top: 0;
left: 10px; /* Offset */
animation: pop 0.8s ease-out var(--delay);
pointer-events: none;
}
#barTemplate {
display: none;
}
@keyframes pop {
0% {opacity: 0; transform: rotate(var(--angle)) translateY(var(--distance))}
50% {opacity: 1; }
100% {opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) - 40px));}
}
#birdButton {
font-size: inherit;
background: none;
border: none;
padding: 0;
cursor: pointer;
}