Rework website palette, copy, and theme support
- Align color palette with TUI Everforest theme (feynman.json) - Rewrite homepage copy with sharper section headings and descriptions - Fix dark/light theme toggle persistence across page navigation - Add Shiki Everforest syntax themes for code blocks - Fix copy-code button z-index and pointer events - Add styled scrollbars and text selection colors - Tighten hero image padding, remove unused public/hero.png - Remove Modal/RunPod from site (Docker only for now) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -111,32 +111,35 @@ body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.copy-code {
|
||||
all: unset;
|
||||
.prose pre .copy-code {
|
||||
position: absolute;
|
||||
top: 0.75rem;
|
||||
right: 0.75rem;
|
||||
z-index: 10;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
border-radius: 0.25rem;
|
||||
color: var(--color-text-dim);
|
||||
background: var(--color-surface-2);
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s, color 0.15s;
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
pre:hover .copy-code {
|
||||
.prose pre:hover .copy-code {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.copy-code:hover {
|
||||
.prose pre .copy-code:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
|
||||
.prose table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
@@ -225,6 +228,18 @@ pre:hover .copy-code {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.dark .astro-code {
|
||||
background-color: var(--shiki-dark-bg) !important;
|
||||
}
|
||||
|
||||
.dark .astro-code code span {
|
||||
color: var(--shiki-dark) !important;
|
||||
background-color: var(--shiki-dark-bg) !important;
|
||||
font-style: var(--shiki-dark-font-style) !important;
|
||||
font-weight: var(--shiki-dark-font-weight) !important;
|
||||
text-decoration: var(--shiki-dark-text-decoration) !important;
|
||||
}
|
||||
|
||||
.agent-entry {
|
||||
background-color: var(--color-surface);
|
||||
border-radius: 0.75rem;
|
||||
|
||||
Reference in New Issue
Block a user