Files
CT/src/base.css
T

88 lines
1.6 KiB
CSS
Raw Normal View History

2024-07-20 14:54:52 +02:00
#home-page {
2024-07-20 14:56:14 +02:00
--background-transparent: hsla(0, 0%, 100%, 40%);
--surface: hsla(0, 0%, 100%, 40%);
--surface-hover: hsla(0, 0%, 91%, 40%);
--surface-active: hsla(0, 0%, 78%, 40%);
2024-07-20 14:54:52 +02:00
}
@media (prefers-color-scheme: dark) {
#home-page {
2024-07-20 14:56:14 +02:00
--background-transparent: hsla(0, 0%, 5%, 30%);
2024-07-20 14:54:52 +02:00
--surface: hsla(0, 0%, 5%, 30%);
--surface-hover: hsla(0, 0%, 20%, 30%);
--surface-active: hsla(0, 0%, 44%, 30%);
}
}
#background {
position: fixed;
top: -120px;
left: -120px;
right: -120px;
bottom: -120px;
z-index: -1;
pointer-events: none;
filter: blur(60px);
2024-07-20 15:02:17 +02:00
opacity: 0.2;
2024-07-20 14:54:52 +02:00
}
#background::after,
#background::before {
content: "";
position: fixed;
z-index: -1;
pointer-events: none;
}
@media (prefers-color-scheme: dark) {
#background {
background-image: linear-gradient(
2024-07-20 14:56:14 +02:00
120deg,
2024-07-20 15:02:17 +02:00
hsla(210, 100%, 50%, 50%),
hsla(210, 100%, 50%, 35%),
transparent 40%
2024-07-20 14:54:52 +02:00
);
}
}
@media (prefers-color-scheme: light) {
#background {
background-image: linear-gradient(
120deg,
2024-07-20 15:02:17 +02:00
hsla(210, 100%, 50%, 50%),
hsla(210, 100%, 50%, 25%)
2024-07-20 14:54:52 +02:00
);
}
#background::before {
2024-07-20 15:02:17 +02:00
top: -130%;
left: -150%;
right: -800%;
bottom: -20%;
2024-07-20 14:54:52 +02:00
background-image: radial-gradient(
transparent 60%,
2024-07-20 15:02:17 +02:00
hsla(110, 100%, 40%, 50%) 60%,
2024-07-20 14:54:52 +02:00
hsla(110, 100%, 20%, 40%)
);
}
#background::after {
2024-07-20 15:02:17 +02:00
top: -100%;
left: 0%;
right: -500%;
2024-07-20 14:54:52 +02:00
bottom: -50%;
background-image: radial-gradient(
transparent 70%,
2024-07-20 15:02:17 +02:00
hsla(110, 100%, 30%, 90%) 70%,
hsla(110, 100%, 10%, 70%)
2024-07-20 14:54:52 +02:00
);
}
}