Files
esengine/packages/editor-app/src/styles/TabPanel.css

102 lines
1.9 KiB
CSS
Raw Normal View History

2025-10-15 09:58:45 +08:00
.tab-panel {
display: flex;
flex-direction: column;
height: 100%;
2025-10-15 17:15:05 +08:00
background: var(--color-bg-base);
2025-10-15 09:58:45 +08:00
}
.tab-header {
2025-10-15 17:15:05 +08:00
background: var(--color-bg-elevated);
border-bottom: 1px solid var(--color-border-default);
min-height: 38px;
2025-10-15 09:58:45 +08:00
display: flex;
align-items: flex-end;
2025-10-15 17:15:05 +08:00
flex-shrink: 0;
2025-10-15 09:58:45 +08:00
}
.tab-list {
display: flex;
gap: 0;
height: 100%;
}
.tab-item {
display: flex;
align-items: center;
2025-10-15 17:15:05 +08:00
gap: var(--spacing-sm);
padding: var(--spacing-sm) var(--spacing-md);
2025-10-15 09:58:45 +08:00
background: transparent;
2025-10-15 17:15:05 +08:00
color: var(--color-text-secondary);
border-right: 1px solid var(--color-border-default);
2025-10-15 09:58:45 +08:00
cursor: pointer;
2025-10-15 17:15:05 +08:00
transition: all var(--transition-fast);
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
2025-10-15 09:58:45 +08:00
user-select: none;
position: relative;
}
2025-10-15 17:15:05 +08:00
.tab-item::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background-color: transparent;
transition: background-color var(--transition-fast);
}
2025-10-15 09:58:45 +08:00
.tab-item:hover {
2025-10-15 17:15:05 +08:00
background: var(--color-bg-hover);
color: var(--color-text-primary);
2025-10-15 09:58:45 +08:00
}
.tab-item.active {
2025-10-15 17:15:05 +08:00
background: var(--color-bg-base);
color: var(--color-text-primary);
2025-10-15 09:58:45 +08:00
}
.tab-item.active::after {
2025-10-15 17:15:05 +08:00
background-color: var(--color-primary);
2025-10-15 09:58:45 +08:00
}
.tab-title {
white-space: nowrap;
}
.tab-close {
2025-10-15 17:15:05 +08:00
display: inline-flex;
2025-10-15 09:58:45 +08:00
align-items: center;
justify-content: center;
2025-10-15 17:15:05 +08:00
width: 16px;
height: 16px;
2025-10-15 09:58:45 +08:00
background: transparent;
border: none;
2025-10-15 17:15:05 +08:00
color: var(--color-text-tertiary);
2025-10-15 09:58:45 +08:00
cursor: pointer;
2025-10-15 17:15:05 +08:00
border-radius: var(--radius-sm);
2025-10-15 09:58:45 +08:00
font-size: 18px;
line-height: 1;
padding: 0;
2025-10-15 17:15:05 +08:00
transition: all var(--transition-fast);
opacity: 0;
}
.tab-item:hover .tab-close,
.tab-item.active .tab-close {
opacity: 1;
2025-10-15 09:58:45 +08:00
}
.tab-close:hover {
2025-10-15 17:15:05 +08:00
background: var(--color-bg-hover);
color: var(--color-error);
transform: scale(1.2);
2025-10-15 09:58:45 +08:00
}
.tab-content {
flex: 1;
overflow: hidden;
position: relative;
}