Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
299 changes: 299 additions & 0 deletions site/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,299 @@
/* ── Demo view ──────────────────────────────────────────────────────── */

.demo-view {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}

.demo-layout {
display: flex;
flex: 1;
min-height: 0;
}

/* Sidebar */
.sidebar {
width: 18.75rem;
flex-shrink: 0;
background: var(--mantle);
border-right: 0.0625rem solid var(--surface0);
padding: 0.75rem 0;
overflow-y: auto;
}

.sidebar-heading {
padding: 0.375rem 1rem 0.625rem;
font-weight: 600;
color: var(--overlay0);
}

.sidebar-item {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.625rem 1rem;
cursor: pointer;
transition: background 0.12s;
border-left: 0.1875rem solid transparent;
}

.sidebar-item:hover {
background: var(--surface0);
}

.sidebar-item.active {
background: var(--surface0);
border-left-color: var(--cyan);
}

.sidebar-badge {
width: 1.875rem;
height: 1.375rem;
border-radius: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
flex-shrink: 0;
color: var(--mantle);
}

.sidebar-badge.lang-JS {
background: var(--yellow);
}
.sidebar-badge.lang-PY {
background: var(--blue);
}
.sidebar-badge.lang-RB {
background: var(--red);
}
.sidebar-badge.lang-TS {
background: var(--cyan);
}
.sidebar-badge.lang-GO {
background: var(--green);
}

.sidebar-info {
min-width: 0;
}

.sidebar-name {
font-weight: 600;
white-space: nowrap;
overflow: hidden;
padding-bottom: 0.25rem;
text-overflow: ellipsis;
}

.sidebar-desc {
font-size: 0.75rem;
color: var(--overlay0);
}

/* Terminal */
.terminal-wrap {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
padding: 0;
}

.terminal {
position: relative;
flex: 1;
padding: 1rem 1.25rem;
overflow-y: auto;
outline: none;
line-height: 1.6;
cursor: text;
}

.terminal-hidden-input {
position: absolute;
left: -9999px;
top: 0;
width: 1px;
height: 1px;
opacity: 0;
border: none;
outline: none;
padding: 0;
margin: 0;
font-size: 16px; /* >= 16px prevents iOS auto-zoom on focus */
}

.terminal::-webkit-scrollbar {
width: 0.375rem;
}
.terminal::-webkit-scrollbar-track {
background: transparent;
}
.terminal::-webkit-scrollbar-thumb {
background: var(--surface1);
border-radius: 0.1875rem;
}

/* Terminal line types */
.t-line {
white-space: pre-wrap;
word-break: break-all;
min-height: 1.6em;
}

.t-prompt {
color: var(--overlay0);
}

.t-prompt .t-input {
color: var(--text);
}

.t-cursor {
display: inline-block;
width: 0.5rem;
height: 1.1em;
background: var(--text);
vertical-align: text-bottom;
animation: blink 1s step-end infinite;
}

@keyframes blink {
50% {
opacity: 0;
}
}

.t-header {
color: var(--cyan);
font-weight: 700;
}

.t-subheader {
color: var(--magenta);
font-weight: 700;
}

.t-command {
color: var(--green);
}

.t-prose {
color: var(--overlay0);
}

.t-dim {
color: var(--overlay0);
}

.t-yellow {
color: var(--yellow);
}

.t-green {
color: var(--green);
}

.t-bold {
font-weight: 700;
}

.t-title-line {
color: var(--text);
font-weight: 700;
}

/* Picker */
.picker-row {
white-space: pre;
min-height: 1.6em;
}

.picker-row.selected {
background: var(--surface0);
border-radius: 0.1875rem;
}

.picker-row .arrow {
color: var(--yellow);
font-weight: 700;
}

.picker-footer {
color: var(--overlay0);
min-height: 1.6em;
white-space: pre;
}

.flash-msg {
color: var(--green);
font-weight: 600;
}

.flash-msg.flash-execute {
color: var(--yellow);
font-style: italic;
}

/* Hints bar */
.hints {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
background: var(--mantle);
border-top: 0.0625rem solid var(--surface0);
color: var(--overlay0);
flex-shrink: 0;
line-height: 2;
}

.hints code {
background: var(--surface0);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
color: var(--text);
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 43.75rem) {
/* Demo */
.demo-layout {
flex-direction: column;
}
.sidebar {
width: 100%;
border-right: none;
border-bottom: 0.0625rem solid var(--surface0);
padding: 0.5rem 0;
display: flex;
overflow-x: auto;
overflow-y: hidden;
flex-shrink: 0;
}
.sidebar-item {
flex-shrink: 0;
padding: 0.375rem 0.875rem;
border-left: none;
border-bottom: 0.1875rem solid transparent;
}
.sidebar-item.active {
border-left-color: transparent;
border-bottom-color: var(--cyan);
}
.sidebar-heading {
flex-shrink: 0;
padding: 0.375rem 0.875rem;
display: flex;
align-items: center;
}
.sidebar-desc {
display: none;
}
}
Loading
Loading