277 lines
6.7 KiB
CSS
277 lines
6.7 KiB
CSS
/* SessionTerminal (CLI Agent Executor, U11) — canonical tokens only. */
|
|
|
|
.cli-session-terminal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
height: 100%;
|
|
background: var(--terminal-bg, var(--bg));
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cli-session-terminal__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-xs) var(--space-sm);
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cli-session-terminal__posture-wrap {
|
|
position: relative;
|
|
}
|
|
|
|
.cli-posture-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.75rem;
|
|
line-height: 1.4;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast, 0.12s) ease;
|
|
}
|
|
|
|
.cli-posture-chip:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.cli-posture-chip--elevated {
|
|
color: var(--warning, var(--color-warning));
|
|
border-color: var(--warning, var(--color-warning));
|
|
}
|
|
|
|
.cli-posture-chip__mode {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-posture-chip__flag {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.cli-posture-tooltip {
|
|
position: absolute;
|
|
top: calc(100% + var(--space-xs));
|
|
left: 0;
|
|
z-index: 10;
|
|
min-width: 220px;
|
|
padding: var(--space-sm);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.cli-posture-tooltip__title {
|
|
margin: 0 0 var(--space-xs);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
|
|
.cli-posture-tooltip__list {
|
|
margin: 0;
|
|
padding-left: var(--space-md);
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-posture-tooltip__settings {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
margin-top: var(--space-sm);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.75rem;
|
|
color: var(--accent, var(--color-primary));
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cli-session-terminal__readonly-badge,
|
|
.cli-session-terminal__replay-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 2px var(--space-sm);
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.cli-session-terminal__replay-badge[data-replay-mode="ended"] {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.cli-session-terminal__viewport {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
padding: var(--space-xs);
|
|
background: var(--terminal-bg, var(--bg));
|
|
}
|
|
|
|
.cli-session-terminal__advance-strip {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
padding: var(--space-sm);
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.cli-session-terminal__advance-copy {
|
|
font-size: 0.8125rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.cli-session-terminal__advance-actions {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn {
|
|
padding: 4px var(--space-md);
|
|
font-size: 0.8125rem;
|
|
color: var(--button-primary-text, var(--accent-text));
|
|
background: var(--button-primary-bg, var(--accent));
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: default;
|
|
}
|
|
|
|
.cli-session-terminal__advance-btn--secondary {
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
/* ── Mobile input model (U13) ──────────────────────────────────────────────
|
|
* Visible input field + accessory key bar. xterm's hidden-textarea input is
|
|
* unreliable on mobile (KTD), so the bar is the primary input surface. The
|
|
* bar is a fixed footer that lifts above the virtual keyboard when it opens
|
|
* (driven by useMobileKeyboard's keyboardOverlap, applied inline).
|
|
*/
|
|
.cli-session-terminal__mobile-bar {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-sm)
|
|
calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
|
|
background: var(--surface);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-bar--keyboard-open {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
/* `bottom` is set inline to keyboardOverlap so the bar clears the keyboard. */
|
|
padding-bottom: var(--space-sm);
|
|
}
|
|
|
|
.cli-session-terminal__key-row {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.cli-session-terminal__key-row::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.cli-terminal-key {
|
|
flex: 0 0 auto;
|
|
min-width: 40px;
|
|
min-height: 36px;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
font-size: 0.8125rem;
|
|
color: var(--text);
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.cli-terminal-key:active {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.cli-terminal-key--ctrl.cli-terminal-key--active {
|
|
color: var(--accent-text, var(--button-primary-text));
|
|
background: var(--accent, var(--color-primary));
|
|
border-color: var(--accent, var(--color-primary));
|
|
}
|
|
|
|
.cli-terminal-key--ctrlc {
|
|
color: var(--warning, var(--color-warning));
|
|
border-color: var(--warning, var(--color-warning));
|
|
}
|
|
|
|
.cli-session-terminal__input-row {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-input {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
min-height: 38px;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
font-size: 16px; /* >=16px avoids iOS focus zoom */
|
|
color: var(--text);
|
|
background: var(--input-bg, var(--bg));
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.cli-session-terminal__mobile-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent, var(--color-primary));
|
|
}
|
|
|
|
.cli-session-terminal__mobile-send {
|
|
flex: 0 0 auto;
|
|
min-height: 38px;
|
|
padding: var(--space-xs) var(--space-md);
|
|
font-size: 0.8125rem;
|
|
color: var(--button-primary-text, var(--accent-text));
|
|
background: var(--button-primary-bg, var(--accent));
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* On mobile the terminal viewport is read-mostly; the bar drives input. */
|
|
@media (max-width: 768px), (max-height: 480px) {
|
|
.cli-session-terminal__viewport {
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
}
|