Renames the product across the codebase: Go module path, config/data paths, keychain service name, export file extension, build tooling, docs, and UI text. Sidebar brand mark now reads ">_ AlchementaryLink" with "Alchementary" in the connection-group gold accent colour, and the window title is "Alchementary Link". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019T8bJS8BCtY5GeSG2HBj1n
497 lines
12 KiB
CSS
497 lines
12 KiB
CSS
/* ==========================================================================
|
|
Alchementary Link — Tab Bar & Tabs
|
|
Compact session tabs with status indicators, protocol badges, and
|
|
close / pin controls.
|
|
========================================================================== */
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Individual tab
|
|
----------------------------------------------------------------------- */
|
|
.tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: var(--tab-bar-height);
|
|
padding: 0 var(--space-3);
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
border-right: 1px solid var(--border-subtle);
|
|
transition:
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
user-select: none;
|
|
max-width: 200px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Active tab */
|
|
.tab.tab-active {
|
|
background: var(--bg-active);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Active indicator — accent bar at the bottom */
|
|
.tab.tab-active::after {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--accent);
|
|
border-radius: var(--radius-full) var(--radius-full) 0 0;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tab icon (small terminal/protocol icon)
|
|
----------------------------------------------------------------------- */
|
|
.tab-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.tab.tab-active .tab-icon {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tab label
|
|
----------------------------------------------------------------------- */
|
|
.tab-label,
|
|
.tab-name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Protocol mini-badge inside tab
|
|
----------------------------------------------------------------------- */
|
|
.tab-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 14px;
|
|
padding: 0 3px;
|
|
font-size: 9px;
|
|
font-weight: var(--weight-semibold);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tab-badge.badge-ssh {
|
|
background: rgba(78, 205, 196, 0.15);
|
|
color: var(--protocol-ssh);
|
|
}
|
|
.tab-badge.badge-telnet {
|
|
background: rgba(255, 167, 38, 0.15);
|
|
color: var(--protocol-telnet);
|
|
}
|
|
.tab-badge.badge-raw {
|
|
background: rgba(171, 71, 188, 0.15);
|
|
color: var(--protocol-raw);
|
|
}
|
|
.tab-badge.badge-github {
|
|
background: rgba(124, 138, 255, 0.15);
|
|
color: var(--protocol-github);
|
|
}
|
|
.tab-badge.badge-vnc {
|
|
background: rgba(232, 93, 74, 0.15);
|
|
color: var(--protocol-vnc);
|
|
}
|
|
.tab-badge.badge-irc {
|
|
background: rgba(216, 178, 76, 0.15);
|
|
color: var(--protocol-irc);
|
|
}
|
|
.tab-badge.badge-local {
|
|
background: rgba(139, 195, 74, 0.15);
|
|
color: var(--protocol-local);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Status dot (connection state)
|
|
----------------------------------------------------------------------- */
|
|
.tab-status {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
.tab-status.is-connected {
|
|
background: var(--success);
|
|
}
|
|
.tab-status.is-connecting {
|
|
background: var(--warning);
|
|
animation: pulse-dot 1.2s ease infinite;
|
|
}
|
|
.tab-status.is-reconnecting {
|
|
background: var(--warning);
|
|
animation: pulse-dot 0.8s ease infinite;
|
|
}
|
|
.tab-status.is-error {
|
|
background: var(--error);
|
|
}
|
|
.tab-status.is-disconnected {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Also match the status-* pattern used by updateSessionState */
|
|
.tab-status.status-connected {
|
|
background: var(--success);
|
|
}
|
|
.tab-status.status-connecting {
|
|
background: var(--warning);
|
|
animation: pulse-dot 1.2s ease infinite;
|
|
}
|
|
.tab-status.status-reconnecting {
|
|
background: var(--warning);
|
|
animation: pulse-dot 0.8s ease infinite;
|
|
}
|
|
.tab-status.status-error {
|
|
background: var(--error);
|
|
}
|
|
.tab-status.status-disconnected {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Activity indicator — pulses when background tab has new output
|
|
----------------------------------------------------------------------- */
|
|
.tab-activity {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: var(--accent);
|
|
opacity: 0;
|
|
transition: opacity 150ms ease;
|
|
}
|
|
|
|
.tab-has-activity .tab-activity {
|
|
opacity: 1;
|
|
animation: pulse-dot 1.5s ease infinite;
|
|
}
|
|
|
|
.tab-active .tab-activity {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Trigger flash — brief glow when a trigger rule matches */
|
|
.tab-trigger-flash {
|
|
animation: trigger-flash 2s ease;
|
|
}
|
|
|
|
@keyframes trigger-flash {
|
|
0%,
|
|
100% {
|
|
background: var(--bg-hover);
|
|
}
|
|
15% {
|
|
background: rgba(239, 83, 80, 0.25);
|
|
}
|
|
30% {
|
|
background: var(--bg-hover);
|
|
}
|
|
45% {
|
|
background: rgba(239, 83, 80, 0.15);
|
|
}
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
SFTP toggle button — revealed on hover (SSH tabs only)
|
|
----------------------------------------------------------------------- */
|
|
.tab-sftp {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 10px;
|
|
color: var(--text-tertiary);
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transition:
|
|
opacity var(--transition-fast),
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.tab:hover .tab-sftp,
|
|
.tab.tab-active .tab-sftp {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tab-sftp:hover {
|
|
background: var(--bg-active);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Close button — revealed on hover
|
|
----------------------------------------------------------------------- */
|
|
.tab-close {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transition:
|
|
opacity var(--transition-fast),
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
cursor: pointer;
|
|
margin: 0 2px 0 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tab:hover .tab-close,
|
|
.tab.tab-active .tab-close {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tab-close:hover {
|
|
background: var(--bg-active);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Pin indicator
|
|
----------------------------------------------------------------------- */
|
|
.tab-pin {
|
|
width: 12px;
|
|
height: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 9px;
|
|
color: var(--text-disabled);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tab.is-pinned .tab-pin {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Pinned tabs are always narrow */
|
|
.tab.is-pinned {
|
|
max-width: 100px;
|
|
padding: 0 var(--space-2);
|
|
}
|
|
|
|
.tab.is-pinned .tab-label {
|
|
/* Hide label on pinned tabs to save space */
|
|
display: none;
|
|
}
|
|
|
|
.tab.is-pinned .tab-close {
|
|
/* Pinned tabs don't show close by default */
|
|
display: none;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Drag handle area (for tab reordering)
|
|
----------------------------------------------------------------------- */
|
|
.tab-drag-handle {
|
|
cursor: grab;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
min-width: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.tab-drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Drag ghost styling */
|
|
.tab.is-dragging {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.tab.is-drag-over-left::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: -1px;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
width: 2px;
|
|
background: var(--accent);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.tab.is-drag-over-right::after {
|
|
content: "";
|
|
position: absolute;
|
|
right: -1px;
|
|
top: 4px;
|
|
bottom: 4px;
|
|
width: 2px;
|
|
background: var(--accent);
|
|
border-radius: var(--radius-full);
|
|
/* Note: this re-uses ::after — active tab indicator is overridden while dragging */
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
New-tab button (+)
|
|
----------------------------------------------------------------------- */
|
|
.tab-new {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--tab-bar-height);
|
|
height: var(--tab-bar-height);
|
|
font-size: var(--text-lg);
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition:
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
.tab-new:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.tab-new:active {
|
|
background: var(--bg-active);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Broadcast toggle button
|
|
----------------------------------------------------------------------- */
|
|
.tab-broadcast {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--tab-bar-height);
|
|
height: var(--tab-bar-height);
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
transition:
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
border: none;
|
|
background: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.tab-broadcast:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.tab-broadcast.is-active {
|
|
color: var(--error);
|
|
opacity: 1;
|
|
animation: pulse-dot 1.5s ease infinite;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tab overflow indicators (chevrons at edges)
|
|
----------------------------------------------------------------------- */
|
|
.tab-bar-overflow-left,
|
|
.tab-bar-overflow-right {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
flex-shrink: 0;
|
|
font-size: var(--text-sm);
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
background: linear-gradient(90deg, var(--bg-surface), transparent);
|
|
}
|
|
|
|
.tab-bar-overflow-right {
|
|
background: linear-gradient(-90deg, var(--bg-surface), transparent);
|
|
}
|
|
|
|
.tab-bar.has-overflow-left .tab-bar-overflow-left,
|
|
.tab-bar.has-overflow-right .tab-bar-overflow-right {
|
|
display: flex;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tab context menu trigger (on right-click)
|
|
----------------------------------------------------------------------- */
|
|
.tab-context-area {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
/* Transparent hit area for right-click context menu */
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tab hover tooltip
|
|
----------------------------------------------------------------------- */
|
|
.tab-tooltip {
|
|
max-width: 360px;
|
|
white-space: normal;
|
|
}
|
|
|
|
.tab-tooltip-title {
|
|
max-width: 320px;
|
|
overflow: hidden;
|
|
color: var(--text-primary);
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab-tooltip-meta {
|
|
margin-top: 2px;
|
|
color: var(--text-tertiary);
|
|
font-weight: var(--weight-normal);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Modified indicator (unsaved changes)
|
|
----------------------------------------------------------------------- */
|
|
.tab.is-modified .tab-close::before {
|
|
content: "●";
|
|
font-size: 8px;
|
|
color: var(--accent);
|
|
}
|