Misskey/src/styles/globals.css

42 lines
769 B
CSS

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 225, 225, 255;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
@keyframes topDrop {
from {
opacity: 0;
transform: translateY(-100px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
header {
animation-name: topDrop;
animation-duration: 1s;
animation-fill-mode: forwards;
background-color: rgba(255, 255, 255, 0.35);
}