Files
aurora-admin/frameworks/Tabs.css
T

62 lines
3.1 KiB
CSS

/* Aurora Admin Tabs 样式 — 对齐 组件7.txt PageTabs 规范:线型 / 卡片型 / 胶囊型 */
.aa-tabs { font-family: var(--font-family, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); color: #262626; }
/* 标签导航条 */
.aa-tabs-nav {
display: flex; align-items: flex-end; gap: 4px;
position: relative; padding: 0 4px;
}
/* 线型:整条导航底部 1px 边框 */
.aa-tabs.type-line .aa-tabs-nav { border-bottom: 1px solid #E8ECF1; }
/* 胶囊型:整条导航为浅灰胶囊容器 */
.aa-tabs.type-pill .aa-tabs-nav { background: #F5F7FA; border-radius: 16px; padding: 4px; gap: 4px; }
/* 单个标签 */
.aa-tabs-tab {
position: relative; box-sizing: border-box;
display: inline-flex; align-items: center; gap: 6px;
height: 40px; padding: 0 16px; cursor: pointer;
font-size: 14px; line-height: 40px; color: #262626;
border: 1px solid transparent; background: none;
transition: color .15s, background .15s, border-color .15s;
user-select: none; white-space: nowrap;
}
.aa-tabs-tab:hover:not(.is-active):not(.is-disabled) { color: #2F54EB; }
/* 线型 active:文字品牌色 + 底部 2px 指示条 */
.aa-tabs.type-line .aa-tabs-tab { border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 0; }
.aa-tabs.type-line .aa-tabs-tab.is-active {
color: #2F54EB; font-weight: 500; border-bottom-color: #2F54EB;
}
/* 卡片型 active:边框 + 白底,与内容区连成一体 */
.aa-tabs.type-card .aa-tabs-nav { border-bottom: 1px solid #E8ECF1; }
.aa-tabs.type-card .aa-tabs-tab { border: 1px solid #E8ECF1; border-bottom: none; border-radius: 6px 6px 0 0; background: #F5F7FA; }
.aa-tabs.type-card .aa-tabs-tab.is-active { background: #fff; color: #2F54EB; border-color: #E8ECF1; }
/* 胶囊型 active:品牌色填充白字 */
.aa-tabs.type-pill .aa-tabs-tab { border: none; border-radius: 14px; height: 32px; line-height: 32px; padding: 0 14px; }
.aa-tabs.type-pill .aa-tabs-tab.is-active { background: #2F54EB; color: #fff; font-weight: 500; }
/* 禁用 */
.aa-tabs-tab.is-disabled { color: #BFBFBF; cursor: not-allowed; }
.aa-tabs.type-card .aa-tabs-tab.is-disabled { background: #F5F5F5; }
/* 关闭按钮 */
.aa-tabs-close { display: inline-flex; align-items: center; justify-content: center;
width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; font-size: 12px; color: #8C8C8C; }
.aa-tabs-close:hover { background: rgba(0,0,0,0.06); color: #262626; }
.aa-tabs.type-pill .aa-tabs-close { color: rgba(255,255,255,0.85); }
.aa-tabs.type-pill .aa-tabs-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
/* 新增标签按钮 */
.aa-tabs-add { display: inline-flex; align-items: center; justify-content: center;
width: 32px; height: 32px; margin-left: 4px; border: 1px dashed #E8ECF1; border-radius: 6px;
color: #8C8C8C; cursor: pointer; font-size: 16px; }
.aa-tabs-add:hover { color: #2F54EB; border-color: #2F54EB; }
/* 内容区 */
.aa-tabs-content { padding: 16px; font-size: 14px; color: #262626; }
.aa-tabs.type-card .aa-tabs-content { border: 1px solid #E8ECF1; border-top: none; border-radius: 0 0 6px 6px; }