/
zxclovly
/
BlinkCode
Обзор
Документация
Войти
/
zxclovly
/
BlinkCode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components/Terminal/Terminal.css
226 строк
4 KB
lovlygod
Add embedded browser preview and bump version to 0.2.0
21 апр 2026, 23:00
21 апр 2026, 23:00
f016874
Код
Авторство
О чём код?
.terminal-panel { display: flex; flex-direction: column; background: var(--bg-panel); border-top: 1px solid var(--accent-border); position: relative; overflow: hidden; flex-shrink: 0; animation: termSlide 200ms ease; box-shadow: inset 0 1px 0 var(--border-weaker, var(--border-subtle)); } @keyframes termSlide { from { height: 0 !important; } } .terminal-resizer { position: absolute; top: -3px; left: 0; right: 0; height: 6px; cursor: row-resize; z-index: 10; } .terminal-resizer:hover { background: var(--accent-selection); } .terminal-header { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; height: 32px; min-height: 32px; background: color-mix(in srgb, var(--bg-sidebar) 90%, var(--surface-base)); border-bottom: 1px solid var(--border-subtle); } .terminal-header-left, .terminal-header-right { display: flex; align-items: center; gap: 8px; } .term-icon { color: var(--accent); } .terminal-title { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-dim); } .terminal-tabs { display: flex; align-items: center; gap: 0; padding: 0; } .term-tab { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-dim); font-size: 12px; font-family: 'JetBrains Mono', monospace; font-weight: 500; padding: 3px 4px 3px 8px; border-radius: 0; cursor: pointer; transition: color 150ms ease; white-space: nowrap; border-bottom: 2px solid transparent; } .term-tab:hover { color: var(--text-tertiary); } .term-tab:hover { background: var(--surface-base-hover); } .term-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); background: var(--surface-base-active); } .term-tab-name { line-height: 1; } .term-tab-close { background: none; border: none; color: var(--text-muted); padding: 0; cursor: pointer; display: flex; align-items: center; transition: color 100ms ease; } .term-tab-close:hover { color: var(--error); } .term-tab-add { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 3px 6px; display: flex; align-items: center; transition: color 100ms ease; } .term-tab-add:hover { color: var(--accent); } .term-action { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px; border-radius: 4px; display: flex; align-items: center; transition: all 150ms ease; } .term-action:hover { color: var(--text-tertiary); background: var(--surface-base-hover); } .terminal-body { flex: 1; overflow: hidden; padding: 8px 10px 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.8; display: flex; flex-direction: column; background: linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 92%, var(--surface-base)), var(--bg-panel)); } .terminal-instance { display: none; flex: 1; min-height: 0; flex-direction: column; } .terminal-instance-active { display: flex; } .terminal-body::-webkit-scrollbar { width: 4px; } .terminal-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; } .term-status-row { display: flex; align-items: center; min-height: 22px; margin-bottom: 6px; gap: 10px; min-width: 0; } .xterm-host { flex: 1; min-height: 0; } .xterm-host .xterm { height: 100%; } .xterm-host .xterm-viewport { overflow-y: auto !important; } .term-cwd { color: var(--text-muted); font-size: 11px; flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .term-links-list { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; padding-bottom: 2px; } .term-link-chip { border: 1px solid var(--accent-border); background: var(--accent-faint); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 11px; cursor: pointer; white-space: nowrap; } .term-link-chip:hover { background: var(--accent-subtle); color: var(--accent-hover); }