tiletopia/src/lib/layout/LeafPane.css

261 lines
5 KiB
CSS

.leaf {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
border: 2px solid transparent;
box-sizing: border-box;
}
.leaf.active {
border-color: #5a8cd8;
}
.leaf.broadcasting {
border-color: #e09838;
}
.leaf.active.broadcasting {
border-color: #ffb840;
}
.leaf.idle {
border-color: #c84040;
}
/* active / broadcasting beats idle visually — when you're focused on a
pane (active), the blue tells you "you're here"; idle is implied. */
.leaf.active.idle {
border-color: #5a8cd8;
}
.leaf.broadcasting.idle {
border-color: #e09838;
}
.leaf.active.broadcasting.idle {
border-color: #ffb840;
}
.leaf.drag-source {
opacity: 0.4;
}
.leaf.drag-target {
outline: 3px dashed #5a8cd8;
outline-offset: -3px;
}
/* Drag handle hint on the toolbar */
.pane-toolbar {
cursor: grab;
}
.pane-toolbar:active {
cursor: grabbing;
}
.pane-toolbar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
padding: 2px 8px;
background: #181818;
border-bottom: 1px solid #2a2a2a;
font-size: 11px;
color: #aaa;
user-select: none;
min-height: 24px;
}
.pane-label {
font: inherit;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-weight: 600;
color: #ccc;
background: transparent;
border: 1px solid transparent;
border-radius: 3px;
padding: 1px 6px;
cursor: text;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
.pane-label:hover {
background: #222;
border-color: #2a2a2a;
}
.label-input {
font: inherit;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-weight: 600;
color: #fff;
background: #0c0c0c;
border: 1px solid #3a5a8c;
border-radius: 3px;
padding: 1px 6px;
outline: none;
max-width: 240px;
}
.distro-wrap {
position: relative;
}
.distro-chip,
.bcast-chip {
font: inherit;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-size: 10px;
background: #222;
color: #88c;
border: 1px solid #2a2a3a;
border-radius: 3px;
padding: 1px 6px;
cursor: pointer;
}
.distro-chip:hover,
.bcast-chip:hover {
background: #2a2a3a;
color: #aac;
}
.bcast-chip {
color: #777;
background: #1c1c1c;
border-color: #2a2a2a;
padding: 1px 5px;
}
.bcast-chip.on {
background: #4a3010;
color: #f0c060;
border-color: #c98a1f;
}
.bcast-chip.mcp-chip.on {
/* Green for MCP-allowed — clearly distinct from broadcast's orange. */
background: #1a3a1a;
color: #80e080;
border-color: #2a6a2a;
}
.distro-menu {
position: absolute;
top: 100%;
left: 0;
margin-top: 2px;
background: #1a1a1a;
border: 1px solid #2a2a2a;
border-radius: 4px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
z-index: 10;
min-width: 140px;
display: flex;
flex-direction: column;
padding: 2px;
}
.distro-menu-item {
font: inherit;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-size: 11px;
text-align: left;
background: transparent;
color: #ccc;
border: none;
border-radius: 2px;
padding: 3px 8px;
cursor: pointer;
}
.distro-menu-item:hover {
background: #2a2a2a;
}
.distro-menu-item.active {
background: #1a3a5c;
color: #cce6ff;
}
.shell-menu {
min-width: 200px;
max-height: 60vh;
overflow-y: auto;
}
.shell-menu-header {
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #666;
padding: 6px 8px 2px 8px;
margin-top: 2px;
border-top: 1px solid #2a2a2a;
}
.shell-menu-header:first-child {
border-top: none;
margin-top: 0;
}
.shell-menu-empty {
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-size: 10px;
color: #555;
padding: 3px 8px;
font-style: italic;
}
.distro-menu-item.shell-menu-manage {
margin-top: 4px;
border-top: 1px solid #2a2a2a;
padding-top: 6px;
color: #88c;
}
.leaf-missing-host {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
text-align: center;
padding: 16px;
background: #0c0c0c;
color: #d66;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
font-size: 12px;
}
.leaf-missing-host p {
margin: 4px 0;
}
.leaf-missing-host .hint {
color: #888;
font-size: 11px;
max-width: 36ch;
}
.pane-status {
margin-left: auto;
font-family: "Cascadia Mono", "JetBrains Mono", "Consolas", monospace;
color: #777;
font-size: 10px;
white-space: nowrap;
}
.pane-status.ok { color: #6c6; }
.pane-status.err { color: #d66; }
.pane-status.idle { color: #d96060; }
.pane-actions {
display: flex;
gap: 2px;
}
.pane-btn {
background: transparent;
border: none;
color: #888;
font: inherit;
font-size: 14px;
line-height: 1;
padding: 2px 6px;
border-radius: 3px;
cursor: pointer;
}
.pane-btn:hover {
background: #2a2a2a;
color: #ddd;
}
.pane-btn.close:hover {
background: #5a1a1a;
color: #fcc;
}
.xterm-wrap {
flex: 1 1 auto;
min-height: 0;
position: relative;
}