rename tape to options and switch the web shell to a drawer

This commit is contained in:
dirtydishes 2026-05-23 19:39:19 -04:00
parent f056f6d2b8
commit 7ca0e05a2d
10 changed files with 916 additions and 154 deletions

View file

@ -18,7 +18,7 @@
--red-soft: oklch(0.68 0.16 28 / 0.12);
--blue: oklch(0.72 0.13 247);
--blue-soft: oklch(0.72 0.13 247 / 0.11);
--rail-width: 236px;
--drawer-width: min(320px, calc(100vw - 28px));
--topbar-height: 64px;
}
@ -86,22 +86,43 @@ input {
}
.terminal-shell {
position: relative;
min-height: 100vh;
display: grid;
grid-template-columns: var(--rail-width) minmax(0, 1fr);
background: linear-gradient(180deg, oklch(0.14 0.011 250) 0%, oklch(0.11 0.01 250) 100%);
}
.terminal-rail {
position: sticky;
top: 0;
height: 100vh;
padding: 22px 18px;
.terminal-nav-drawer {
position: fixed;
inset: 0 auto 0 0;
z-index: 45;
width: var(--drawer-width);
padding: 20px 18px 18px;
display: flex;
flex-direction: column;
gap: 20px;
background: linear-gradient(180deg, oklch(0.16 0.012 250 / 0.98), oklch(0.13 0.011 250 / 0.98));
border-right: 1px solid var(--border);
box-shadow: 0 28px 72px rgba(0, 0, 0, 0.48);
}
.terminal-drawer-backdrop {
position: fixed;
inset: 0;
z-index: 40;
border: 0;
background: rgba(3, 5, 8, 0.62);
cursor: pointer;
}
.terminal-drawer-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.terminal-drawer-close {
flex: 0 0 auto;
}
.terminal-brand {
@ -198,6 +219,7 @@ input {
.terminal-frame {
min-width: 0;
min-height: 100vh;
display: grid;
grid-template-rows: minmax(var(--topbar-height), auto) minmax(0, 1fr);
}
@ -208,11 +230,39 @@ input {
z-index: 20;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
justify-content: space-between;
gap: 16px;
padding: 10px 20px;
background: oklch(0.15 0.012 250 / 0.96);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(12px);
}
.terminal-topbar-leading {
display: flex;
align-items: center;
gap: 12px;
flex: 0 0 auto;
}
.terminal-menu-trigger {
display: inline-flex;
align-items: center;
gap: 10px;
min-width: 104px;
}
.terminal-menu-trigger-icon {
display: inline-grid;
gap: 4px;
}
.terminal-menu-trigger-icon span {
display: block;
width: 14px;
height: 1px;
border-radius: 999px;
background: currentColor;
}
.status-dot,
@ -463,7 +513,7 @@ input {
.terminal-content {
min-width: 0;
padding: 24px 24px 24px;
padding: 24px clamp(16px, 2vw, 28px) 24px;
}
.page-shell {
@ -689,8 +739,8 @@ h3 {
grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}
.page-grid-tape {
grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
.page-grid-options {
grid-template-columns: minmax(0, 1fr);
}
.page-grid-signals {
@ -714,7 +764,7 @@ h3 {
.page-grid-home > :nth-child(3),
.page-grid-home > :nth-child(4),
.page-grid-tape > :nth-child(1),
.page-grid-options > :nth-child(1),
.page-grid-replay > :nth-child(1) {
grid-column: 1 / -1;
}
@ -963,11 +1013,11 @@ h3 {
grid-row: 2;
}
.page-grid-tape > :first-child {
.page-grid-options > :first-child {
height: clamp(460px, 64vh, 880px);
}
.page-grid-tape > :not(:first-child) {
.page-grid-options > :not(:first-child) {
height: clamp(400px, 50vh, 680px);
}
@ -1965,68 +2015,23 @@ h3 {
}
@media (max-width: 1180px) {
.terminal-shell {
grid-template-columns: 1fr;
}
.terminal-rail {
position: sticky;
top: 0;
z-index: 35;
height: auto;
display: grid;
grid-template-columns: minmax(170px, auto) minmax(0, 1fr);
align-items: center;
gap: 14px 18px;
padding: 14px 16px;
border-right: 0;
border-bottom: 1px solid var(--border);
}
.terminal-brand {
gap: 2px;
.terminal-nav-drawer {
width: min(300px, calc(100vw - 24px));
}
.terminal-brand-name {
font-size: 1.25rem;
}
.terminal-nav {
display: flex;
min-width: 0;
gap: 8px;
overflow-x: auto;
scrollbar-width: thin;
}
.terminal-nav-link {
flex: 0 0 auto;
white-space: nowrap;
}
.shell-metrics {
grid-column: 1 / -1;
margin-top: 0;
grid-template-columns: repeat(4, minmax(136px, 1fr));
gap: 8px;
overflow-x: auto;
padding-bottom: 2px;
scrollbar-width: thin;
}
.shell-metric {
min-width: 136px;
padding: 10px 12px;
}
.terminal-topbar {
position: static;
}
}
@media (max-width: 980px) {
.page-grid-home,
.page-grid-tape,
.page-grid-options,
.page-grid-signals,
.page-grid-charts,
.page-grid-replay,
@ -2037,7 +2042,7 @@ h3 {
.page-grid-home > :nth-child(3),
.page-grid-home > :nth-child(4),
.page-grid-tape > :nth-child(1),
.page-grid-options > :nth-child(1),
.page-grid-replay > :nth-child(1) {
grid-column: auto;
grid-row: auto;
@ -2049,8 +2054,8 @@ h3 {
.page-grid-home > :nth-child(4),
.page-grid-signals > .terminal-pane,
.page-grid-replay > :not(:first-child),
.page-grid-tape > :first-child,
.page-grid-tape > :not(:first-child),
.page-grid-options > :first-child,
.page-grid-options > :not(:first-child),
.page-grid-charts > :last-child {
height: auto;
}
@ -2062,14 +2067,12 @@ h3 {
.terminal-topbar {
align-items: center;
justify-content: flex-end;
justify-content: space-between;
padding: 10px 16px;
}
.terminal-topbar-actions {
justify-content: flex-end;
margin-left: auto;
width: auto;
}
.terminal-topbar-controls {
@ -2086,11 +2089,9 @@ h3 {
background-size: 24px 24px, 24px 24px, 100% 100%, auto;
}
.terminal-rail {
position: static;
grid-template-columns: minmax(0, 1fr);
gap: 12px;
padding: 12px;
.terminal-nav-drawer {
width: min(340px, calc(100vw - 12px));
padding: 16px 12px 12px;
}
.terminal-brand {
@ -2111,20 +2112,6 @@ h3 {
padding-bottom: 2px;
}
.terminal-nav-link {
padding: 12px;
font-size: 0.72rem;
}
.shell-metrics {
display: flex;
gap: 8px;
}
.shell-metric {
flex: 0 0 156px;
}
.terminal-content {
padding: 16px 10px 22px;
}
@ -2160,6 +2147,10 @@ h3 {
padding: 12px 10px;
}
.terminal-topbar-leading {
width: 100%;
}
.terminal-button,
.mode-button,
.filter-clear,
@ -2186,8 +2177,14 @@ h3 {
align-items: stretch;
}
.terminal-menu-trigger {
width: 100%;
justify-content: center;
}
.terminal-topbar-mode .terminal-button,
.terminal-topbar-controls > .terminal-button,
.terminal-topbar-leading > .terminal-button,
.page-actions > .terminal-button,
.page-actions > .flow-filter-popover {
width: 100%;