This commit is contained in:
+107
@@ -0,0 +1,107 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
:root {
|
||||
--background: #060a14;
|
||||
--foreground: #e6edf7;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial, sans-serif;
|
||||
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
||||
"Liberation Mono", monospace;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-sans);
|
||||
background-image:
|
||||
radial-gradient(60rem 30rem at 15% -10%, rgb(56 189 248 / 0.14), transparent 60%),
|
||||
radial-gradient(50rem 30rem at 95% 5%, rgb(129 140 248 / 0.12), transparent 60%),
|
||||
linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
|
||||
background-size: auto, auto, 48px 48px, 48px 48px;
|
||||
background-repeat: no-repeat, no-repeat, repeat, repeat;
|
||||
}
|
||||
|
||||
/*
|
||||
* Animated "traffic" connector used by the flow diagrams.
|
||||
* Vertical by default (mobile); turns horizontal from the lg breakpoint.
|
||||
*/
|
||||
.flow-line {
|
||||
--flow-color: #38bdf8;
|
||||
flex: none;
|
||||
width: 2px;
|
||||
height: 2rem;
|
||||
background-image: linear-gradient(to bottom, var(--flow-color) 0 6px, transparent 6px);
|
||||
background-size: 2px 10px;
|
||||
background-repeat: repeat-y;
|
||||
animation: flow-y 0.9s linear infinite;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.flow-line {
|
||||
width: 2.25rem;
|
||||
height: 2px;
|
||||
background-image: linear-gradient(to right, var(--flow-color) 0 6px, transparent 6px);
|
||||
background-size: 10px 2px;
|
||||
background-repeat: repeat-x;
|
||||
animation-name: flow-x;
|
||||
}
|
||||
}
|
||||
|
||||
/* Always-vertical variant for hand-offs between stacked boundaries. */
|
||||
.flow-line-v {
|
||||
--flow-color: #38bdf8;
|
||||
flex: none;
|
||||
width: 2px;
|
||||
height: 2rem;
|
||||
background-image: linear-gradient(to bottom, var(--flow-color) 0 6px, transparent 6px);
|
||||
background-size: 2px 10px;
|
||||
background-repeat: repeat-y;
|
||||
animation: flow-y 0.9s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes flow-y {
|
||||
to {
|
||||
background-position: 0 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes flow-x {
|
||||
to {
|
||||
background-position: 10px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse-ring {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgb(52 211 153 / 0.5);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 10px rgb(52 211 153 / 0);
|
||||
}
|
||||
}
|
||||
|
||||
.pulse-ring {
|
||||
animation: pulse-ring 1.8s ease-out infinite;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
.flow-line,
|
||||
.flow-line-v,
|
||||
.pulse-ring {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user