mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
301 lines
9.0 KiB
CSS
301 lines
9.0 KiB
CSS
/* ============================================================
|
|
SEMANTICA DOCS — PREMIUM DESIGN SYSTEM
|
|
Dark-first (#080C10 bg, #10B981 emerald accent)
|
|
============================================================ */
|
|
|
|
/* ── Keyframes ─────────────────────────────────────────────── */
|
|
@keyframes pageFadeIn {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ── Global ─────────────────────────────────────────────────── */
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* Custom text selection */
|
|
::selection {
|
|
background: rgba(16, 185, 129, 0.22);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
::-webkit-scrollbar { width: 5px; height: 5px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.4); }
|
|
|
|
/* ── Page entrance ──────────────────────────────────────────── */
|
|
main,
|
|
article,
|
|
[class*="content-area"],
|
|
[class*="ContentArea"],
|
|
[class*="prose"] {
|
|
animation: pageFadeIn 0.35s ease both;
|
|
}
|
|
|
|
/* ── Focus rings ─────────────────────────────────────────────── */
|
|
*:focus-visible {
|
|
outline: 2px solid rgba(16, 185, 129, 0.55) !important;
|
|
outline-offset: 3px !important;
|
|
border-radius: 4px !important;
|
|
}
|
|
|
|
/* ── Headings ───────────────────────────────────────────────── */
|
|
h1 {
|
|
letter-spacing: -0.025em;
|
|
position: relative;
|
|
padding-bottom: 0.6rem;
|
|
}
|
|
|
|
h1::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 44px;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, #10B981 0%, transparent 100%);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
h2 { letter-spacing: -0.018em; }
|
|
h3 { letter-spacing: -0.012em; }
|
|
|
|
/* ── Content links ──────────────────────────────────────────── */
|
|
article a,
|
|
[class*="prose"] a {
|
|
text-decoration-color: rgba(16, 185, 129, 0.35);
|
|
text-underline-offset: 3px;
|
|
transition:
|
|
text-decoration-color 0.15s ease,
|
|
color 0.15s ease;
|
|
}
|
|
|
|
article a:hover,
|
|
[class*="prose"] a:hover {
|
|
text-decoration-color: #10B981;
|
|
}
|
|
|
|
/* ── Blockquote ─────────────────────────────────────────────── */
|
|
blockquote {
|
|
border-left: 2px solid rgba(16, 185, 129, 0.35) !important;
|
|
background: rgba(16, 185, 129, 0.04) !important;
|
|
border-radius: 0 6px 6px 0 !important;
|
|
padding: 0.9rem 1.2rem !important;
|
|
font-style: italic;
|
|
color: rgba(255, 255, 255, 0.68) !important;
|
|
transition:
|
|
border-color 0.2s ease,
|
|
background-color 0.2s ease !important;
|
|
}
|
|
|
|
blockquote:hover {
|
|
border-left-color: rgba(16, 185, 129, 0.65) !important;
|
|
background: rgba(16, 185, 129, 0.07) !important;
|
|
}
|
|
|
|
/* ── HR / Divider ────────────────────────────────────────────── */
|
|
hr {
|
|
border: none !important;
|
|
height: 1px !important;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent 0%,
|
|
rgba(16, 185, 129, 0.25) 25%,
|
|
rgba(16, 185, 129, 0.25) 75%,
|
|
transparent 100%
|
|
) !important;
|
|
margin: 2.5rem 0 !important;
|
|
}
|
|
|
|
/* ── TABLE ───────────────────────────────────────────────────── */
|
|
table thead th {
|
|
color: #10B981 !important;
|
|
font-weight: 600 !important;
|
|
letter-spacing: 0.04em !important;
|
|
font-size: 0.72rem !important;
|
|
text-transform: uppercase !important;
|
|
border-bottom: 1px solid rgba(16, 185, 129, 0.18) !important;
|
|
}
|
|
|
|
table tbody tr {
|
|
transition: background-color 0.15s ease;
|
|
cursor: default;
|
|
}
|
|
|
|
table tbody tr:hover {
|
|
background-color: rgba(16, 185, 129, 0.06) !important;
|
|
}
|
|
|
|
table tbody tr:hover td {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
table td,
|
|
table th {
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
/* ── CODE BLOCKS ─────────────────────────────────────────────── */
|
|
pre,
|
|
[class*="codeblock"],
|
|
[class*="code-group"],
|
|
[class*="CodeBlock"],
|
|
[data-rehype-pretty-code-fragment] {
|
|
transition:
|
|
box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
|
|
border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
|
|
transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
}
|
|
|
|
pre:hover,
|
|
[class*="codeblock"]:hover,
|
|
[class*="CodeBlock"]:hover,
|
|
[data-rehype-pretty-code-fragment]:hover {
|
|
transform: translateY(-1px) !important;
|
|
box-shadow:
|
|
0 0 0 1px rgba(16, 185, 129, 0.18),
|
|
0 2px 12px rgba(16, 185, 129, 0.06),
|
|
0 8px 32px rgba(0, 0, 0, 0.2) !important;
|
|
border-color: rgba(16, 185, 129, 0.2) !important;
|
|
}
|
|
|
|
/* ── CARDS ───────────────────────────────────────────────────── */
|
|
[class*="card"],
|
|
[class*="Card"],
|
|
[data-card],
|
|
.group\/card {
|
|
transition:
|
|
transform 0.22s ease,
|
|
box-shadow 0.22s ease,
|
|
border-color 0.22s ease !important;
|
|
}
|
|
|
|
[class*="card"]:hover,
|
|
[class*="Card"]:hover,
|
|
[data-card]:hover,
|
|
.group\/card:hover {
|
|
transform: translateY(-3px) !important;
|
|
box-shadow:
|
|
0 8px 28px rgba(0, 0, 0, 0.18),
|
|
0 0 0 1px rgba(16, 185, 129, 0.22) !important;
|
|
border-color: rgba(16, 185, 129, 0.28) !important;
|
|
}
|
|
|
|
/* ── CALLOUTS / ADMONITIONS ──────────────────────────────────── */
|
|
[class*="callout"],
|
|
[class*="Callout"],
|
|
[class*="admonition"] {
|
|
transition:
|
|
box-shadow 0.2s ease,
|
|
border-color 0.2s ease !important;
|
|
}
|
|
|
|
[class*="callout"]:hover,
|
|
[class*="Callout"]:hover,
|
|
[class*="admonition"]:hover {
|
|
box-shadow: 0 2px 16px rgba(16, 185, 129, 0.08) !important;
|
|
border-color: rgba(16, 185, 129, 0.35) !important;
|
|
}
|
|
|
|
/* ── STEPS ───────────────────────────────────────────────────── */
|
|
[class*="step"],
|
|
[class*="Step"] {
|
|
transition: background-color 0.15s ease !important;
|
|
}
|
|
|
|
[class*="step"]:hover,
|
|
[class*="Step"]:hover {
|
|
background-color: rgba(16, 185, 129, 0.04) !important;
|
|
}
|
|
|
|
/* ── INLINE CODE ─────────────────────────────────────────────── */
|
|
:not(pre) > code {
|
|
transition:
|
|
background-color 0.15s ease,
|
|
color 0.15s ease !important;
|
|
cursor: text;
|
|
}
|
|
|
|
:not(pre) > code:hover {
|
|
background-color: rgba(16, 185, 129, 0.16) !important;
|
|
}
|
|
|
|
/* ── NAVIGATION / SIDEBAR ────────────────────────────────────── */
|
|
nav a,
|
|
[class*="sidebar"] a,
|
|
[class*="Sidebar"] a {
|
|
transition: color 0.15s ease !important;
|
|
text-decoration: none;
|
|
position: relative;
|
|
}
|
|
|
|
nav a::after,
|
|
[class*="sidebar"] a::after,
|
|
[class*="Sidebar"] a::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 1px;
|
|
background: #10B981;
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
nav a:hover::after,
|
|
[class*="sidebar"] a:hover::after,
|
|
[class*="Sidebar"] a:hover::after {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ── TEXT / LIST ITEMS ───────────────────────────────────────── */
|
|
ul > li,
|
|
ol > li {
|
|
border-radius: 3px;
|
|
transition: background-color 0.12s ease;
|
|
}
|
|
|
|
ul > li:hover,
|
|
ol > li:hover {
|
|
background-color: rgba(16, 185, 129, 0.04);
|
|
}
|
|
|
|
/* ── PRIMARY BUTTON / CTA ────────────────────────────────────── */
|
|
button[class*="primary"],
|
|
a[class*="primary"],
|
|
[class*="btn-primary"],
|
|
[class*="ButtonPrimary"] {
|
|
transition:
|
|
box-shadow 0.2s ease,
|
|
transform 0.2s ease !important;
|
|
}
|
|
|
|
button[class*="primary"]:hover,
|
|
a[class*="primary"]:hover,
|
|
[class*="btn-primary"]:hover,
|
|
[class*="ButtonPrimary"]:hover {
|
|
box-shadow: 0 0 22px rgba(16, 185, 129, 0.28) !important;
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
/* ── HIDE THEME TOGGLE ───────────────────────────────────────── */
|
|
button[aria-label="Switch to light mode"],
|
|
button[aria-label="Switch to dark mode"],
|
|
button[aria-label*="theme"],
|
|
button[title*="theme"],
|
|
button[title*="Theme"],
|
|
[data-theme-toggle],
|
|
[class*="ThemeToggle"],
|
|
[class*="theme-toggle"],
|
|
[class*="ColorModeToggle"],
|
|
[class*="DarkModeToggle"] {
|
|
display: none !important;
|
|
pointer-events: none !important;
|
|
}
|