rojects/source/components/tab-container/tab-container.css

79 lines
1.4 KiB
CSS
Raw Normal View History

tab-container {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
background: #0f1117;
}
tab-container.tc-drop-target {
outline: 2px solid #7c8cff;
outline-offset: -2px;
}
.tc-bar {
display: flex;
align-items: stretch;
background: #13151f;
border-bottom: 1px solid #2a2d3a;
flex-shrink: 0;
min-height: 32px;
}
.tc-tabs {
display: flex;
align-items: stretch;
flex: 1;
overflow-x: auto;
scrollbar-width: none;
}
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tab {
display: flex;
align-items: center;
gap: 4px;
padding: 0 12px;
font-size: 0.8rem;
color: #7b7f96;
cursor: pointer;
white-space: nowrap;
user-select: none;
2026-07-16 18:58:11 +00:00
font-weight: 700;
}
.tc-tab:hover { color: #c8cbde; background: #1a1d27; }
.tc-tab.active { color: #e2e4ed; background: #0f1117; border-bottom: 2px solid #7c8cff; }
.tc-tab[draggable="true"] { cursor: grab; }
.tc-tab[draggable="true"]:active { cursor: grabbing; }
.dirty-dot { color: #f59e0b; font-size: 0.6rem; }
.tc-menu {
padding: 0 10px;
background: transparent;
border: none;
border-left: 1px solid #2a2d3a;
color: #555;
cursor: pointer;
font-size: 1rem;
letter-spacing: 0;
}
.tc-menu:hover { color: #aaa; background: #1a1d27; }
.tc-content {
flex: 1;
min-height: 0;
overflow: hidden;
position: relative;
}
.tc-content > * {
position: absolute;
inset: 0;
overflow: auto;
}