Files
client-web/src/styles/workspace-tabs.css
T
2026-08-05 15:55:02 +08:00

28 lines
2.6 KiB
CSS

.workspace-tabs { position: fixed; inset: 68px 0 auto 250px; z-index: 19; display: flex; min-width: 0; height: 46px; align-items: stretch; border-bottom: 1px solid var(--border); background: #fff; box-shadow: 0 3px 12px rgba(15, 31, 58, .04); }
.workspace-tabs__scroller { display: flex; min-width: 0; flex: 1; align-items: end; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 6px 8px 0; overscroll-behavior-inline: contain; scrollbar-width: none; -ms-overflow-style: none; }
.workspace-tabs__scroller::-webkit-scrollbar { display: none; width: 0; height: 0; }
.workspace-tab { display: flex; min-width: 112px; max-width: 220px; height: 39px; flex: 0 0 auto; align-items: center; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: #657184; }
.workspace-tab:hover { background: #f5f8fc; color: var(--navy); }
.workspace-tab.is-active { border-color: var(--border); background: #f5f7fa; color: var(--primary); }
.workspace-tab__label { display: flex; min-width: 0; height: 100%; flex: 1; align-items: center; gap: 7px; padding: 0 6px 0 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; text-align: left; }
.workspace-tab__label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab__label i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #d97706; }
.workspace-tab__close { display: grid; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8b95a5; cursor: pointer; place-items: center; }
.workspace-tab__close:hover { background: #e8edf4; color: #27364d; }
.workspace-tab__label:focus-visible, .workspace-tab__close:focus-visible, .workspace-tabs__more:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.workspace-tabs__more { display: grid; width: 46px; height: 46px; flex: 0 0 46px; padding: 0; border: 0; border-left: 1px solid var(--border); background: #fff; color: #647187; cursor: pointer; place-items: center; }
.workspace-tabs__more:hover { background: #f4f7fb; color: var(--primary); }
@media (max-width: 720px) {
.workspace-tabs { inset: 68px 0 auto 0; height: 48px; }
.workspace-tabs__scroller { padding-left: 8px; }
.workspace-tab { min-width: 132px; height: 41px; }
.workspace-tab__label { min-height: 40px; }
.workspace-tab__close { width: 40px; height: 40px; flex-basis: 40px; }
.workspace-tabs__more { width: 48px; height: 48px; flex-basis: 48px; }
}
@media (prefers-reduced-motion: reduce) {
.workspace-tabs__scroller { scroll-behavior: auto; }
}