354 lines
7.6 KiB
CSS
354 lines
7.6 KiB
CSS
@import "tailwindcss";
|
|
|
|
:root {
|
|
--background: #05050b;
|
|
--foreground: #ffffff;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-body);
|
|
--font-mono: var(--font-code);
|
|
--font-display: var(--font-heading);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
background: var(--background);
|
|
overflow-x: clip;
|
|
overscroll-behavior-y: none;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100dvh;
|
|
overflow-x: clip;
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: var(--font-body), sans-serif;
|
|
}
|
|
|
|
::selection {
|
|
background: #b9c6a3;
|
|
color: #151515;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tech-doc-content {
|
|
animation: doc-rise 720ms ease both;
|
|
contain: paint;
|
|
max-width: 100%;
|
|
color: rgba(255, 255, 255, 0.74);
|
|
font-size: 16px;
|
|
line-height: 2;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tech-doc-toc a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.tech-doc-toc div::-webkit-scrollbar,
|
|
.tech-doc-content pre::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
.tech-doc-toc div::-webkit-scrollbar-thumb,
|
|
.tech-doc-content pre::-webkit-scrollbar-thumb {
|
|
border-radius: 999px;
|
|
background: rgba(103, 232, 249, 0.38);
|
|
}
|
|
|
|
.tech-doc-content::before {
|
|
content: "";
|
|
display: block;
|
|
height: 3px;
|
|
margin-bottom: 28px;
|
|
border-radius: 999px;
|
|
background: linear-gradient(90deg, #22d3ee, #a855f7, #f0abfc, #84cc16);
|
|
box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
|
|
}
|
|
|
|
.tech-doc-content :where(h3, h4, h5) {
|
|
margin: 42px 0 16px;
|
|
scroll-margin-top: 32px;
|
|
color: #ffffff;
|
|
font-weight: 900;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.tech-doc-content h3 {
|
|
font-size: clamp(1.45rem, 2vw, 2rem);
|
|
background: linear-gradient(90deg, #67e8f9, #f0abfc 58%, #bef264);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
text-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
|
|
}
|
|
|
|
.tech-doc-content h4 {
|
|
font-size: 1.05rem;
|
|
color: #a5f3fc;
|
|
}
|
|
|
|
.tech-doc-content h5 {
|
|
margin-top: 28px;
|
|
color: #e9d5ff;
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
.tech-doc-content :where(p, ul, ol, blockquote, pre) {
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.tech-doc-content :where(ul, ol) {
|
|
padding-left: 1.35rem;
|
|
}
|
|
|
|
.tech-doc-content li {
|
|
margin: 8px 0;
|
|
padding-left: 0.2rem;
|
|
}
|
|
|
|
.tech-doc-content li::marker {
|
|
color: #67e8f9;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.tech-doc-content a {
|
|
color: #67e8f9;
|
|
border-bottom: 1px solid rgba(103, 232, 249, 0.35);
|
|
transition:
|
|
color 160ms ease,
|
|
border-color 160ms ease,
|
|
text-shadow 160ms ease;
|
|
}
|
|
|
|
.tech-doc-content a:hover {
|
|
color: #f0abfc;
|
|
border-color: rgba(240, 171, 252, 0.75);
|
|
text-shadow: 0 0 18px rgba(240, 171, 252, 0.35);
|
|
}
|
|
|
|
.tech-doc-content strong {
|
|
color: #ffffff;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.tech-doc-content code {
|
|
border: 1px solid rgba(103, 232, 249, 0.18);
|
|
border-radius: 8px;
|
|
background: rgba(34, 211, 238, 0.1);
|
|
color: #a5f3fc;
|
|
font-family: var(--font-code), monospace;
|
|
font-size: 0.9em;
|
|
padding: 0.1rem 0.38rem;
|
|
}
|
|
|
|
.tech-doc-content pre {
|
|
position: relative;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
border: 1px solid rgba(45, 212, 191, 0.28);
|
|
border-radius: 20px;
|
|
padding-top: 2.75rem;
|
|
background:
|
|
linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0 2.75rem, transparent 2.75rem),
|
|
radial-gradient(circle at 16% 0%, rgba(45, 212, 191, 0.2), transparent 28%),
|
|
radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.22), transparent 26%),
|
|
#020617;
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.03),
|
|
0 16px 46px rgba(2, 6, 23, 0.42),
|
|
0 0 24px rgba(45, 212, 191, 0.08);
|
|
}
|
|
|
|
.tech-doc-content pre::before {
|
|
content: attr(data-language);
|
|
position: absolute;
|
|
left: 1.1rem;
|
|
top: 0.9rem;
|
|
color: #5eead4;
|
|
font-family: var(--font-code), monospace;
|
|
font-size: 0.72rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.16em;
|
|
}
|
|
|
|
.tech-doc-code-copy {
|
|
position: absolute;
|
|
right: 0.85rem;
|
|
top: 0.56rem;
|
|
z-index: 1;
|
|
width: 4.1rem;
|
|
border: 1px solid rgba(103, 232, 249, 0.38);
|
|
border-radius: 999px;
|
|
background: rgba(8, 47, 73, 0.72);
|
|
color: #cffafe;
|
|
cursor: pointer;
|
|
font-family: var(--font-body), sans-serif;
|
|
font-size: 0.78rem;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
padding: 0.52rem 0.72rem;
|
|
transition:
|
|
background 160ms ease,
|
|
border-color 160ms ease,
|
|
box-shadow 160ms ease,
|
|
color 160ms ease;
|
|
}
|
|
|
|
.tech-doc-code-copy:hover,
|
|
.tech-doc-code-copy[data-copied="true"] {
|
|
border-color: rgba(94, 234, 212, 0.9);
|
|
background: rgba(20, 184, 166, 0.22);
|
|
color: #ffffff;
|
|
box-shadow: 0 0 24px rgba(45, 212, 191, 0.26);
|
|
}
|
|
|
|
.tech-doc-content pre code {
|
|
display: block;
|
|
width: max-content;
|
|
min-width: max-content;
|
|
max-width: none;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: rgba(255, 255, 255, 0.82);
|
|
font-size: 0.88rem;
|
|
line-height: 1.8;
|
|
padding: 0 1.25rem 1.25rem;
|
|
white-space: pre;
|
|
}
|
|
|
|
.tech-doc-content table {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin: 22px 0;
|
|
overflow-x: auto;
|
|
border: 1px solid rgba(103, 232, 249, 0.2);
|
|
border-radius: 16px;
|
|
border-spacing: 0;
|
|
background: rgba(2, 6, 23, 0.42);
|
|
box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
|
|
}
|
|
|
|
.tech-doc-content :where(th, td) {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
padding: 0.85rem 1rem;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.tech-doc-content th {
|
|
background: rgba(34, 211, 238, 0.11);
|
|
color: #cffafe;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.tech-doc-content td {
|
|
color: rgba(255, 255, 255, 0.72);
|
|
}
|
|
|
|
.tech-doc-content img {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: auto;
|
|
object-fit: contain;
|
|
margin: 24px 0;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 18px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
box-shadow: 0 18px 52px rgba(34, 211, 238, 0.12);
|
|
}
|
|
|
|
.tech-doc-content blockquote {
|
|
border-left: 3px solid #22d3ee;
|
|
border-radius: 14px;
|
|
background: rgba(34, 211, 238, 0.08);
|
|
color: rgba(255, 255, 255, 0.78);
|
|
padding: 0.8rem 1rem;
|
|
}
|
|
|
|
.tech-doc-content hr {
|
|
height: 1px;
|
|
margin: 32px 0;
|
|
border: 0;
|
|
background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.45), transparent);
|
|
}
|
|
|
|
.neon-aurora {
|
|
position: absolute;
|
|
inset: -18% -10% auto -10%;
|
|
z-index: -3;
|
|
height: 72%;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(circle at 12% 24%, rgba(34, 211, 238, 0.44), transparent 28%),
|
|
radial-gradient(circle at 48% 8%, rgba(99, 102, 241, 0.36), transparent 30%),
|
|
radial-gradient(circle at 86% 32%, rgba(217, 70, 239, 0.42), transparent 28%),
|
|
radial-gradient(circle at 74% 72%, rgba(132, 204, 22, 0.18), transparent 24%);
|
|
filter: blur(12px) saturate(1.18);
|
|
transform: translateZ(0);
|
|
}
|
|
|
|
.cyber-grid {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -2;
|
|
pointer-events: none;
|
|
background-image:
|
|
linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(217, 70, 239, 0.08) 1px, transparent 1px);
|
|
background-size: 64px 64px;
|
|
mask-image: linear-gradient(to bottom, black 0%, black 56%, transparent 100%);
|
|
}
|
|
|
|
.scanline {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
opacity: 0.18;
|
|
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
|
|
background-size: 100% 7px;
|
|
mix-blend-mode: screen;
|
|
}
|
|
|
|
@keyframes doc-rise {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(18px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
scroll-behavior: auto !important;
|
|
transition-duration: 0.01ms !important;
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
}
|
|
}
|