amis/packages/amis-ui/scss/components/_tabs.scss
qinhaoyan c1a8a498e2
feat:新版主题、新版图标 (#5588)
* fix: Wizard组件点击下一步会多提交一次问题 (#4729)

* feat: 新 icon 选择器优化, 解决冲突

* feat: 新 icon 选择器 准备提交

* feat: 新 icon 选择器

* feat: 新 icon 选择器

* feat: 新 icon 选择器, 类型报错修复

* feat: 修改

* feat: 修改 scss

* feat: 修改

* 新版主题——button(实验中) (#4920)

* styles:新版主题——button

* styles: 主题button

* styles: cxd主题变量

* feat: transfer组件新版主题配置 (#4975)

* feat: transfer组件新版主题配置

* feat: transfer主题配置修改

Co-authored-by: hongyang03 <hongyang03@baidu.com>

* styles:更换全局样式变量(实验性) (#5065)

* feat: icon 扩充为 object

* 修改

* feat: 增加 clearable 属性

* Theme: 全局变量替换 (#5146)

* feat: 全局变量替换

* feat: 全局变量替换

* feat: 全局变量替换

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* feat: 全局变量替换部分样式走查 (#5150)

* feat: 全局变量替换

* feat: 全局变量替换

* feat: 全局变量替换

* feat: 全局变量替换部分审查

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* style:amis4.0样式走查

* style: 修改rem直接使用的问题

* style:amis4.0样式走查 (#5165)

* style:amis4.0样式走查

* style: 修改rem直接使用的问题

Co-authored-by: zhangzheyu02 <zhangzheyu02@baidu.com>

* feat: 合并master分支到theme (#5197)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* test: crud interval&stopAutoRefreshWhen

* test: crud draggable&itemDraggableOn

* test: CRUD interval&stopAutoRefreshWhen

* test: 补全table selectable&itemCheckableOn属性单测

* fix: DateRangePicker取消按钮无法点击的问题

* fix: 修复DateTime组件,时间选择器高度与日期对齐

* fix: table-view 的边框只应该在 td 上设置

* fix:
    1. DateRangeTimePicker选中开始时间后,结束时间跳转到23:59
    2. DateRangePicker 点击结束时间后,日期选择窗口总是关闭

* feat: DateRangePicker 对无法选择的日期上增加disabled样式

* fix: DateRangePicker 输入日期时展示错误

* chore: 优化地理位置dispose逻辑 (#4918)

* feat: table-view 的所有属性支持变量

* docs: 补充 mapping 渲染其它 amis 组件的示例

* fix: TreeSelect多选选中后没有清空input搜索内容 (#4843)

* fix: input-tag max 属性bug修复

* fix: input-tag max 属性bug修复

* 修改

* 修改

* feat: Property 的 title 等属性支持自动变量解析 Closes #4900

* fix: 公式编辑器高亮问题 (#4945)

* fix: transfer tree 右侧无法滚动  (#4686)

* fix: Service组件Unmount方法缺失问题 (#4954)

* chore: 修复编译 warnning

* fix: #4828 Select组件搜索时输入空格错误关闭下拉框,关闭快捷键改为组合键 (#4930)

* style: Card组件按钮区图标文字间隔 (fix #4901) (#4931)

* fix: InputTag组件placeholder属性不生效问题 (#4933)

* test: 补全table selectable&itemCheckableOn属性单测
test: CRUD +  quickEdit & quickSaveApi & quickSaveItemApi & saveImmediately

* feat:ajax动作返回数据格式调整

* 修改测试用例

* 修改测试用例

* outputVar中增加数据

* 去掉字段

* chore: 补充 radios switch input-text 单测

* 修改

* 完善

* style:组件time/date/anchornav/progress/alert样式对齐4.0 (#4890)

* style:组件time/date/anchornav/progress/alert样式对齐4.0

* test:更新测试用例

* pref:日期图标替换

* test:更新测试用例

Co-authored-by: hongyang03 <hongyang03@baidu.com>

* styles: tabs、input-rating、input-text、textarea 组件样式问题修复 (#4943)

* feat: 修改

* 2

* feat: tabs

* feat: textarea

* feat: 修改

Co-authored-by: liuzedong02 <liuzedong02@baidu.com>

* style:transfer、form、pagination 4.0样式问题修改 (#4956)

Co-authored-by: sarding <hongfuquan@baidu.com>

* styles:dialog、nestedSelect、picker样式优化 (#4973)

* style:table组件对齐4.0样式 (#4964)

* style:table组件对齐4.0样式

* fix:更新table status快照

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* fix: 公式变量点选时嵌套问题 (#4974)

* fix: 修复选项的 autoFill 会出现对象 merge 的情况

* styles:修复crud headerToolbart右对齐按钮没有间距问题

* Feat amis badge (#4962)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* feat: badge,steps,timeline对齐4.0

* BCE-JC-20760 feat: 合并冲突

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* fix:amis 4.0样式对齐 checkbox&select等组件 (#4878)

* fix:amis 4.0样式对齐 checkbox&select等组件

* style:修复checkbox勾选框hover上去出现小圆点

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* fix: steps恢复子标题 (#4987)

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层

* fix: 点状步骤条样式修改

* feat: steps样式调整

* feat: 补充steps单测

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* styles: 补全全局变量 (#4985)

* style:修复form表单按钮靠左 (#4988)

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* amis4.0样式对齐 (#4927)

Co-authored-by: zhangzheyu02 <zhangzheyu02@baidu.com>

* fix: 排序字段中间态 orderDir 没有置空问题 (#4971)

Co-authored-by: srleng <srleng@gaojihealth.com>

* styles:修复dialog内容x轴被遮挡问题 (#4992)

* fix:TextControlSchema nativeInputClassName声明 (#4993)

* styles: 修复overflow hidden问题 (#4997)

* fix: 修复 Combo配置unique属性空字符的逻辑判断

* fix:CRUD其他模式loading不显示问题 (#5000)

* fit:CRUD其他模式loading不显示问题

* fit:CRUD其他模式loading不显示问题

* fix: 修复table中combineNum不生效 (#5003)

* test: 补充tabs单测 (#4991)

* docs: 更新执行单元测试步骤 (#4976)

* fix: select组件size=lg时展示错误  (#5008)

* fix: select组件size=lg时展示错误 (#4599)
* fix: 修复dev环境 mobile scss加载失败
* chore: update snapshot

* fix: CRUD设置超级表头后全选checkbox展示错误 (#5012)

* fix: CRUD设置超级表头后全选checkbox展示错误

* doc(HeaderGroup): 更新示例文档

Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>

* feat: Image组件支持innerClassName (#4977)

* fix: Checkboxes组件全选状态样式展示错误 (#5015)

* remove redundant (#4959)

* fix: SDK模式下Toast位置为top-center (resolve #4928) (#4986)

* feat: ImageGallery支持工具栏 (#5005)

* fix: Steps组件status使用变量时不生效问题 (#4983)

* fix:修复日期范围选择器样式 (#5016)

* fix:修复日期范围选择器样式

* pref:更新测试用例

* pref:去的fis轮询

Co-authored-by: hongyang03 <hongyang03@baidu.com>

* chore: 更新依赖,tinymce 到 6.1.2,echarts 到 5.3.1,qrcode.react 到 3.1.0,reac… (#5018)

* chore: 更新依赖,tinymce 到 6.1.2,echarts 到 5.3.1,qrcode.react 到 3.1.0,react 到 18.2.0

* 调整一下 tinymce 默认 toolbar

* 调整一下 tinymce 默认 toolbar

* feat: service 支持 js: 请求,使得动态渲染支持 JavaScript 函数 (#4866)

* fix: InputTable列使用默认值时无法更新到数据域的问题 (#4970)

* fix: 修复CRUD在dialog中时表头无法固定 (#4995)

* fix: 修复CRUD在dialog中时表头无法固定

* fix: 修复CRUD在dialog中时表头无法固定(用一种破坏性更小的方案)

* chore: Echarts 补充 valueFormatter 字符串函数支持 (#5023)

* fix: CRUD查询表单reset-and-submit刷新两次问题; InputText使用AutoComplete光标无法切换问题 (#5022)

Co-authored-by: tooeast <liuzedong02@baidu.com>

* fix: 兼容低版本浏览器配置table:autoFillHeight(不支持sticky) (#5020)

* v2.1.0

* test: Timeline Wizard (#5031)

* test: Timeline

* test: Wizard

* fix: 修复DateRangePicker存在多个active (#5035)

* fix: 避免 react 报控件值从 uncontrolled 到 controlled 切换 (#5032)

* fix: select 接口报错时 url 应该显示为实际请求地址 (#5033)

* feat:自定义js动作支持异步 (#5044)

* test: 补充Steps, Pagination单测 (#5034)

* test: steps

* test: pagination

* fix: ConditionBuilder disabled 后还能拖动和删除 (#4655) (#5045)

* fix: ConditionBuilder disabled 后还能拖动和删除 (#4655) (#5045)

* fix:修复table存在异步数据时,固定表头宽度错位问题 (#5036)

* fix: CRUD开启超级表头时展开列显示错误,合并列元素只有1个时无法显示remark问题 (#5047)

* docs:补充更新组件数据时获取数据域的说明 (#5055)

* docs:补充更新组件数据时获取数据域的说明

* docs:补充更新组件数据时获取数据域的说明&异步JS动作说明

* docs:补充更新组件数据时获取数据域的说明&异步JS动作说明

* fix: CRUD设置combineNum不生效 (#5059)

* fix: CRUD设置combineNum不生效

* fix: 调整table计算 header fixed 的逻辑,兼容滚动元素可能包含多个子元素

* fix: #4566 PR 补丁 [pullRefresh.disabled为 false情况下,内容区展示异常问题]

* fix:修复 CRUD组件更改columns字段不立刻生效问题 (#5077)

Co-authored-by: ”jiatianqi“ <”jiatianqi@baidu.com“>

* 修复人员组件默认值 (#5079)

Co-authored-by: zhangxulong <zhangxulong@baidu.com>

* fix: crud2 CRUD2TableSchema mode value

* fix: fix doc error caused by vulnerable example. (#5068)

* fix: tree校验问题 & minLength和maxLength属性提示问题 (#5048)

Co-authored-by: ”jiatianqi“ <”jiatianqi@baidu.com“>

* feat: Form Debug区域使用json显示; chore: 修正使用Form debug区域校验的单测 (#5056)

* fix: table中toolbar增加padding效果(#4757) (#5069)

* chore: input-number、input-range、checkbox 单测用例补充 & range style 百分比最多保留两位 (#5076)

* checkbox 单测补充

* input-number 单测补充

* input-range 单测补充 & range style 百分比最多保留两位

Co-authored-by: tooeast <liuzedong02@baidu.com>

* docs: 修复GitHub编辑链接错误,Flexbox文档链接和文件链接统一 (#5037)

* fix(CRUD): 操作栏列不下发loading (#5046)

* feat: optinos 支持配置新增和编辑的弹框属性;修复编辑属性 popover 无法显示问题;去掉代码里遗漏的 component… (#5085)

* feat: optinos 支持配置新增和编辑的弹框属性;修复编辑属性 popover 无法显示问题;去掉代码里遗漏的 componentWillMount

* 支持外部代码实现删除逻辑

* chore: 发布 2.1.1-beta.2 (#5086)

* fix: CRUD列字段无返回值时会错误展示字段值问题; chore: 修复InputRange单测 (#5094)

* style: Dialog显/隐切换卡顿问题 (#5107)

* fix: InputTable组件needConfirm为true时无法新增行问题 (#5108)

* fix: 修复导出 CSV 时如果值是对象就无法显示问题 (#5103)

* Revert "fix: 兼容低版本浏览器配置table:autoFillHeight(不支持sticky) (#5020)" (#5109)

This reverts commit f81d18c7c8.

* v2.1.1-beta.3

* docs: 修复主干版本跳转链接出错的问题 (#5099)

* fix: options 内容过多时超出显示问题 (#5112)

* fix: Page css、cssVars属性更新问题修复 (#5113)

Co-authored-by: wanglinfang <wanglinfang@baidu.com>

* fix: 锚点导航定位问题修复 (#5114)

Co-authored-by: tooeast <liuzedong02@baidu.com>

* feat: 全局变量替换

* feat: 全局变量替换

* feat: 全局变量替换

* feat: 全局变量替换部分审查

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>
Co-authored-by: meerkat <kit_hack@outlook.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RickCole <rickcole21@outlook.com>
Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>
Co-authored-by: liuzedong02 <liuzedong02@baidu.com>
Co-authored-by: Allen <yupeng.fe@qq.com>
Co-authored-by: pianruijie <13522335863@163.com>
Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com>
Co-authored-by: sansiro <sansiro@sansiro.me>
Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com>
Co-authored-by: hongyang03 <hongyang03@baidu.com>
Co-authored-by: sarding <37691952+sarding@users.noreply.github.com>
Co-authored-by: sarding <hongfuquan@baidu.com>
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com>
Co-authored-by: xujiahao01 <xujiahao01@baidu.com>
Co-authored-by: 2betop <2betop.cn@gmail.com>
Co-authored-by: zzy1415447829 <49521093+zzy1415447829@users.noreply.github.com>
Co-authored-by: zhangzheyu02 <zhangzheyu02@baidu.com>
Co-authored-by: lengshengren <379306634@qq.com>
Co-authored-by: srleng <srleng@gaojihealth.com>
Co-authored-by: pzzhai <48534104+pzzhai@users.noreply.github.com>
Co-authored-by: lurunze1226 <lurunze1226@foxmail.com>
Co-authored-by: ”jiatianqi“ <”jiatianqi@baidu.com“>
Co-authored-by: Ma ke <33743617+jiatianqi@users.noreply.github.com>
Co-authored-by: 龙少 <1769057083@qq.com>
Co-authored-by: zhangxulong <zhangxulong@baidu.com>
Co-authored-by: yangwei9012 <yangwei9012@163.com>
Co-authored-by: Viki <53367348+Vikiboss@users.noreply.github.com>
Co-authored-by: qianxiaofendou <stianle@163.com>
Co-authored-by: Yuan Zhang <81345419+YuanZzhang@users.noreply.github.com>
Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com>
Co-authored-by: wanglinfang <wanglinfang@baidu.com>

* styles:主题样式走查 (#5214)

* feat: 主题变量修改 (#5228)

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* styles: 新版主题兼容antd (#5229)

* feat: AntD主题对齐

* amis4.0样式走查2期修改

* amis4.0二次走查修改变量

* feat: 主题对齐 (#5252)

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* feat: 边框变量修改 (#5257)

* feat: 主题对齐

* feat: 边框变量修改

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* style:组件4.0 style修改 (#5234)

* style:组件4.0 style修改

* style:alert组件变量修改

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* New theme (#5276)

* feat: 主题对齐

* feat: 边框变量修改

* feat: 主题样式对齐

* feat: button样式修改

* feat: nest pading修改

* feat: nest pading修改

Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>

* styles: 主题问题修复 (#5279)

* styles: 新版主题样式修改 (#5293)

* style:组件主题变量修改 (#5294)

* style:组件主题变量修改

* style:wizard&drawer等变量修改

* 常量用变量替换

Co-authored-by: xujiahao01 <xujiahao01@baidu.com>

* New theme update (#5452)

* feat:主题变量修改

* fix:修改

Co-authored-by: hongyang03 <hongyang03@baidu.com>

* fix:修复图标选择css变量

* fix:button enhance类型样式修改

* amis-saas-2569 主题bugfix

* style:对象生成图标 对齐高度

* feat:collapse&inputTable&alert2&Avatar接入自定义图标

* style:人员选择组件背景色主题化

* test:更新快照

* test:更新快照

* test:更新快照

* test:更新快照

Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com>
Co-authored-by: liuzedong02 <liuzedong02@baidu.com>
Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com>
Co-authored-by: hongyang03 <hongyang03@baidu.com>
Co-authored-by: sansiro <sansiro@sansiro.me>
Co-authored-by: qiaoganggang <43558337+qiaogg@users.noreply.github.com>
Co-authored-by: qiaoganggang <qiaoganggang@baidu.com>
Co-authored-by: zhangzheyu02 <zhangzheyu02@baidu.com>
Co-authored-by: zzy1415447829 <49521093+zzy1415447829@users.noreply.github.com>
Co-authored-by: meerkat <kit_hack@outlook.com>
Co-authored-by: wuduoyi <wuduoyi@baidu.com>
Co-authored-by: RickCole <rickcole21@outlook.com>
Co-authored-by: Allen <yupeng.fe@qq.com>
Co-authored-by: pianruijie <13522335863@163.com>
Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com>
Co-authored-by: sarding <37691952+sarding@users.noreply.github.com>
Co-authored-by: sarding <hongfuquan@baidu.com>
Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com>
Co-authored-by: xujiahao01 <xujiahao01@baidu.com>
Co-authored-by: 2betop <2betop.cn@gmail.com>
Co-authored-by: lengshengren <379306634@qq.com>
Co-authored-by: srleng <srleng@gaojihealth.com>
Co-authored-by: pzzhai <48534104+pzzhai@users.noreply.github.com>
Co-authored-by: lurunze1226 <lurunze1226@foxmail.com>
Co-authored-by: ”jiatianqi“ <”jiatianqi@baidu.com“>
Co-authored-by: Ma ke <33743617+jiatianqi@users.noreply.github.com>
Co-authored-by: 龙少 <1769057083@qq.com>
Co-authored-by: zhangxulong <zhangxulong@baidu.com>
Co-authored-by: yangwei9012 <yangwei9012@163.com>
Co-authored-by: Viki <53367348+Vikiboss@users.noreply.github.com>
Co-authored-by: qianxiaofendou <stianle@163.com>
Co-authored-by: Yuan Zhang <81345419+YuanZzhang@users.noreply.github.com>
Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com>
Co-authored-by: wanglinfang <wanglinfang@baidu.com>
Co-authored-by: 徐佳豪 <1440054388@qq.com>
2022-10-19 10:38:52 +08:00

1108 lines
26 KiB
SCSS

.#{$ns}Tabs {
&-drag-tip {
display: none;
}
&-linksWrapper {
display: flex;
align-items: center;
justify-content: flex-start;
border-bottom: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
}
&-linksContainer-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
.#{$ns}Tabs-addable {
display: flex;
margin-left: var(--Tabs-add-margin);
align-items: center;
justify-content: flex-start;
padding: var(--Tabs--line-addPadding);
white-space: nowrap;
cursor: pointer;
&-icon {
width: var(--Tabs-add-icon-size);
height: var(--Tabs-add-icon-size);
padding: var(--Tabs-add-icon-padding);
margin-right: var(--Tabs-add-icon-margin);
}
span {
margin-left: 4px;
line-height: 1;
}
&:hover {
color: var(--primary);
fill: var(--primary);
}
}
.#{$ns}Tabs-linksContainer {
flex-grow: 1;
position: relative;
display: flex;
align-items: center;
overflow: hidden;
// &--overflow {
// flex: 1;
// .#{$ns}Tabs-links {
// max-width: 0;
// }
// }
&-arrow {
margin: var(--Tabs--line-addPadding);
width: 16px;
height: 100%;
display: flex;
align-items: center;
cursor: pointer;
box-sizing: content-box;
.iconfont {
font-size: var(--Remark-icon-fontSize);
}
&:hover {
color: var(--icon-onHover-color);
}
&--left {
padding-right: 16px;
}
&--right {
padding-left: 16px;
}
&--disabled {
.iconfont {
cursor: not-allowed;
color: var(--Number-handler-onDisabled-color);
}
&:hover {
color: var(--Number-handler-onDisabled-color);
}
}
}
&-main {
position: relative;
overflow-y: auto;
scrollbar-width: none;
width: 100%;
&::-webkit-scrollbar {
display: none;
}
.#{$ns}Tabs-links {
// position: relative;
min-width: 100%;
max-width: 0;
height: 100%;
overflow-x: hidden;
.#{$ns}Tabs-links-drag {
position: absolute;
height: 100%;
top: 0;
box-shadow: 0 0 0 1px red;
}
}
}
}
}
&-links {
display: flex;
margin: 0;
padding: 0;
list-style: none;
user-select: none;
@include clearfix();
> .#{$ns}Tabs-link {
position: relative;
flex: none;
display: flex;
max-width: var(--Tabs-link-maxWidth);
overflow: hidden;
.#{$ns}Tabs-link-edit {
max-width: var(--Tabs-link-maxWidth);
border: none;
outline: none;
}
&:hover .#{$ns}Tabs-link-close {
width: var(--Tabs-close-size);
margin-left: var(--Tabs-close-margin);
}
.#{$ns}Tabs-link-close {
width: 0;
margin: var(--Tabs-close-marginTop) 0 0;
fill: var(--Tabs-gray-color);
transition: all var(--Tabs-animation-duration) linear;
overflow: hidden;
cursor: pointer;
.#{$ns}Tabs-link-close-icon {
width: var(--Tabs-close-size);
}
}
> a:first-child {
font-size: var(--Tabs-linkFontSize);
outline: none;
border: var(--Tabs-borderWidth) solid transparent;
border-top-left-radius: var(--Tabs-borderRadius);
border-top-right-radius: var(--Tabs-borderRadius);
color: var(--Tabs-color);
margin: var(--Tabs-linkMargin);
padding: var(--Tabs-linkPadding);
text-decoration: none;
cursor: pointer;
display: block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
> .#{$ns}Icon {
margin-right: var(--Tabs-icon-gap);
vertical-align: unset;
}
> img.#{$ns}Icon {
position: relative;
top: 0.125em;
}
}
> a.#{$ns}Tabs-togglor {
display: flex;
}
> .#{$ns}Combo-toolbarBtn {
position: absolute;
right: -10px;
top: -10px;
z-index: 10;
display: none;
}
&:hover > .#{$ns}Combo-toolbarBtn {
display: block;
}
&:hover > a:first-child,
> a:first-child:focus {
text-decoration: none;
}
&.disabled,
&.is-disabled {
cursor: not-allowed;
> a:first-child {
// color: var(--Tabs-onDisabled-color);
color: var(--Tabs-link-disabled-color);
background: transparent;
border-color: transparent;
pointer-events: none;
}
}
&.active > a:first-child,
&.is-active > a:first-child {
color: var(--Tabs-onActive-color);
background: var(--Tabs-onActive-bg);
border-color: var(--Tabs-onActive-borderColor);
border-bottom-color: transparent;
}
}
}
.#{$ns}Tabs-togglor {
display: flex;
justify-content: center;
margin: auto;
cursor: pointer;
&-arrow {
width: var(--gap-md);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
transform: rotate(90deg);
> svg {
transition: transform var(--animation-duration);
display: inline-block;
color: var(--Form-select-caret-iconColor);
width: 10px;
height: 10px;
top: 0;
}
}
&.is-opened {
color: var(--Tabs-onActive-color);
.#{$ns}Tabs-togglor-arrow > svg {
transform: rotate(180deg);
}
}
}
&-PopOver.#{$ns}PopOver {
border: 0;
border-radius: 0;
}
&-content {
background: var(--Tabs-content-bg);
border-style: solid;
border-width: 0 var(--Tabs-borderWidth) var(--Tabs-borderWidth);
border-color: var(--Tabs--simple-split-color);
}
&-pane {
display: none;
padding: var(--gap-base);
opacity: 0;
transition: opacity var(--animation-duration) linear;
&.is-active {
display: block;
}
&.in {
opacity: 1;
}
}
&--line {
> .#{$ns}Tabs-linksContainer-wrapper {
position: relative;
&::before {
content: '';
position: absolute;
width: 100%;
left: 0;
bottom: 0;
border-bottom: var(--Tabs-borderWidth) solid
var(--Tabs--simple-split-color);
}
&--toolbar {
.#{$ns}Tabs-link {
padding-top: 10px;
}
.#{$ns}Tabs-addable {
padding: 0;
}
.#{$ns}Tabs-linksContainer-arrow {
margin: 0;
}
}
}
> .#{$ns}Tabs-linksContainer > .#{$ns}Tabs-linksContainer-arrow {
top: -4px;
}
> .#{$ns}Tabs-linksWrapper > .#{$ns}Tabs-links,
> .#{$ns}Tabs-linksContainer-wrapper
> .#{$ns}Tabs-linksContainer
> .#{$ns}Tabs-linksContainer-main
> .#{$ns}Tabs-links {
border-bottom-color: var(--Tabs--line-borderColor);
> li {
padding-left: var(--Tabs--line-padding);
padding-right: var(--Tabs--line-padding);
&:first-of-type {
padding-left: 0;
}
&:last-of-type {
padding-right: 0;
}
> a:first-child {
border-width: 0 0 var(--Tabs--line-borderWidth) 0;
padding: var(--Tabs--line-linkPadding);
}
&:not(.is-disabled):hover {
a:first-child {
color: var(--primary);
background: transparent;
// border-color: transparent;
}
.#{$ns}Tabs-link-close {
fill: var(--primary);
}
> a:first-child:hover:active {
color: #144bcc;
border-color: #144bcc;
}
}
&:last-child {
> a {
margin: 0;
}
}
&.is-active {
> a:first-child,
> a:first-child:hover,
> a:first-child:focus {
border-color: var(--Tabs--line-onHover-borderColor);
color: var(--Tabs--line-onHover-color);
background: transparent;
}
}
}
}
> .#{$ns}Tabs-content {
border-width: 0;
background: var(--Tabs--line-content-bg);
}
}
&--card {
> .#{$ns}Tabs-linksContainer {
background: var(--Tabs--card-bg);
}
> .#{$ns}Tabs-linksContainer-wrapper {
background: var(--Tabs--card-bg);
> .#{$ns}Tabs-addable {
margin-left: 0;
padding: 0;
padding-top: var(--Tabs--card-add-gap-top);
margin-right: var(--Tabs--card-add-gap);
}
> .#{$ns}Tabs-linksContainer {
.#{$ns}Tabs-addable {
padding: 0;
}
> .#{$ns}Tabs-linksContainer-arrow {
padding: var(--Tabs--card-arrow-gap) var(--Tabs--card-add-gap) 0;
margin-bottom: 0;
}
> .#{$ns}Tabs-linksContainer-main > .#{$ns}Tabs-links {
padding: var(--Tabs--card-padding);
border-top: px2rem(1px) solid var(--Tabs--card-borderTopColor);
> li {
padding: var(--Tabs--card-linkPadding);
margin: var(--Tabs--card-linkMargin);
border-top-left-radius: var(--Tabs-borderRadius);
border-top-right-radius: var(--Tabs-borderRadius);
cursor: pointer;
&.is-active {
border-color: var(--Tabs--card-onActive-borderColor);
color: var(--primary);
border-bottom-color: var(--Tabs--card-onActive-bg);
background: var(--Tabs--card-onActive-bg);
}
&.is-disabled {
cursor: not-allowed;
}
&:hover,
&:focus {
// color: #666;
background: var(--Tabs--card-onActive-bg);
border-bottom-color: transparent;
}
> a:first-child {
padding: 0;
border: none;
}
}
}
}
> .#{$ns}Tabs-toolbar {
padding: var(--Tabs--card-padding);
margin: 0;
}
}
> .#{$ns}Tabs-content {
border-width: 0;
}
}
&--radio {
> .#{$ns}Tabs-linksContainer-wrapper {
margin-bottom: px2rem(10px);
.#{$ns}Tabs-addable {
padding: 0;
}
> .#{$ns}Tabs-linksContainer {
> .#{$ns}Tabs-linksContainer-arrow {
margin-bottom: 0;
}
> .#{$ns}Tabs-linksContainer-main > .#{$ns}Tabs-links {
border: 0;
> li {
margin: 0;
align-items: center;
border-width: px2rem(1px);
border-color: var(--Tabs--simple-split-color);
text-align: center;
margin: 0;
padding: 0 px2rem(10px);
min-width: 68px;
height: px2rem(30px);
background: var(--Tabs--radio-bg);
border-style: solid;
&:hover,
&:focus {
color: var(--primary);
}
> a:first-child {
padding: 0;
border-radius: 0;
line-height: px2rem(30px);
font-size: var(--fontSizeSm);
border: none;
}
&.is-active {
background: var(--primary);
border-color: var(--primary);
position: relative;
z-index: 1;
> a:first-child {
background: var(--primary);
color: var(--Tabs--radio-bg);
}
> .#{$ns}Tabs-link-close {
fill: var(--Tabs--radio-bg);
}
}
}
> li + li {
margin-left: -1px;
}
}
}
}
> .#{$ns}Tabs-content {
border-top: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
}
}
// todo 第一个选中,有一像素的空隙待修复。
// 不带眼镜应该看不出来。
&--tiled {
> .#{$ns}Tabs-linksContainer-wrapper {
align-items: stretch;
border-bottom: none;
> .#{$ns}Tabs-linksContainer {
flex: 1;
align-items: stretch;
> .#{$ns}Tabs-linksContainer-arrow {
margin-bottom: 0;
padding: 0 10px;
height: auto;
align-items: center;
justify-content: center;
border-width: var(--Tabs-borderWidth);
border-style: solid;
border-color: var(--Tabs--simple-split-color);
}
&.#{$ns}Tabs-linksContainer--overflow
> .#{$ns}Tabs-linksContainer-main
> .#{$ns}Tabs-links
> .#{$ns}Tabs-link {
&:first-of-type {
border-left-width: 0;
}
&:last-of-type {
border-right-width: 0;
}
}
}
.#{$ns}Tabs-addable {
padding: 0 var(--Tabs--tiled-add-gap);
margin-left: 0;
white-space: nowrap;
border-style: solid;
border-color: var(--Tabs--simple-split-color);
border-width: var(--Tabs-borderWidth);
border-left-width: 0;
}
}
> .#{$ns}Tabs-linksContainer-wrapper
> .#{$ns}Tabs-linksContainer
> .#{$ns}Tabs-linksContainer-main
> .#{$ns}Tabs-links {
width: 100%;
display: flex;
flex-direction: row;
padding-left: var(--Tabs-borderWidth);
border-bottom: 0;
> li {
max-width: unset;
flex-grow: 1;
text-align: center;
margin: 0 0 0 calc(var(--Tabs-borderWidth) * -1);
border-style: solid;
border-color: var(--Tabs--simple-split-color);
border-width: var(--Tabs-borderWidth);
padding: var(--Tabs-linkPadding);
cursor: pointer;
&:hover,
&:focus {
position: relative;
z-index: 1;
border-color: var(--Tabs-onActive-borderColor);
color: var(--primary);
}
> a:first-child {
margin: 0;
border-radius: 0;
padding: 0;
flex: 1;
border: none;
}
&.is-active {
cursor: default;
color: var(--primary);
border-color: var(--Tabs--simple-split-color);
border-top-color: var(--primary);
border-bottom-color: transparent;
}
&.is-disabled {
cursor: not-allowed;
}
}
}
}
&--vertical {
display: flex;
min-height: px2rem(200px);
border: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
border-radius: 0;
> .#{$ns}Tabs-linksWrapper {
flex-direction: column;
background: var(--Tabs--vertical-onActive-container-bg);
}
> .#{$ns}Tabs-linksWrapper > .#{$ns}Tabs-links {
width: var(--Tabs--vertical-width);
border: none;
border-right: var(--Tabs--vertical-onActive-container-borderRight);
flex-direction: column;
> li {
margin: 0 0 0 -1px;
display: block;
> a:first-child {
border-color: transparent;
border-radius: 0;
border-width: var(--Tabs--vertical-onActive-borderWidth);
margin: 0;
&:hover,
&:focus {
color: var(--primary);
border-color: transparent;
}
}
&.is-active {
> a:first-child,
> a:first-child:hover,
> a:first-child:focus {
color: var(--Tabs--vertical-onActive-color);
background: var(--Tabs--vertical-onActive-bg);
border-color: var(--Tabs--vertical-onActive-border);
}
}
}
}
> .#{$ns}Tabs-content {
border: none;
flex-grow: 1;
> .#{$ns}Tabs-pane {
height: 100%;
}
}
}
&--sidebar {
display: flex;
height: 100%;
&.sidebar--left {
flex-direction: row;
> .#{$ns}Tabs-content {
border-right: none;
}
}
&.sidebar--right {
flex-direction: row-reverse;
> .#{$ns}Tabs-content {
border-left: none;
}
}
> .#{$ns}Tabs-linksWrapper {
flex: 0 0 var(--Tabs--sidebar-sideWidth);
align-items: flex-start;
border: none;
}
> .#{$ns}Tabs-linksWrapper > .#{$ns}Tabs-links {
position: relative;
margin: 0;
padding-top: var(--Tabs--sidebar-sidePadding);
flex-grow: 1;
border: none;
flex-direction: column;
border: 0;
> li {
display: flex;
margin: var(--Tabs--sidebar-sideMargin);
padding: 0;
flex-direction: column;
justify-content: flex-start;
align-items: center;
border: 0;
&:not(.is-disabled) > a:first-child {
color: var(--Tabs-gray-color);
}
> a:first-child {
padding: 0;
border: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
.#{$ns}Icon {
font-size: var(--Tabs--sidebar-iconSize);
height: var(--Tabs--sidebar-iconSize);
margin-bottom: var(--Tabs--sidebar-iconMargin);
margin-right: 0;
top: 0;
}
}
&.is-active > a:first-child,
> a:first-child:hover,
> a:first-child:focus {
color: var(--Tabs--sidebar-iconColor);
}
}
}
> .#{$ns}Tabs-content {
flex-grow: 1;
border-bottom: none;
> .#{$ns}Tabs-pane {
height: 100%;
}
}
}
&--chrome {
> .#{$ns}Tabs-linksWrapper {
background: var(--Tabs--chrome-bg);
border-bottom: none;
overflow-x: hidden;
> .#{$ns}Tabs-addable {
margin-left: 0;
padding: 0;
padding-top: 10px;
}
}
> .#{$ns}Tabs-linksWrapper > .#{$ns}Tabs-links {
border-bottom: 0;
padding: 0 px2rem(10px);
padding-top: px2rem(8px);
display: flex;
width: 100%;
> li {
position: relative;
margin-bottom: 0;
white-space: nowrap;
min-width: 0;
max-width: px2rem(250px);
padding: px2rem(7px) px2rem(20px) px2rem(6px);
cursor: pointer;
flex: 1;
overflow: inherit;
> a {
/* 最少展示一个字 */
min-width: var(--fontSizeBase);
}
> a:first-child {
background: none;
border: none;
position: relative;
z-index: 5;
overflow: hidden;
padding: 0;
text-overflow: ellipsis;
}
&.is-active {
> a:first-child,
> a:first-child:hover,
> a:first-child:focus {
background: none;
border: none;
}
&:after {
display: none;
}
}
&:not(:last-child):after {
content: '';
width: 1px;
height: calc(100% - var(--Tabs--chrome-radius-size) * 2);
position: absolute;
right: -2px;
background: var(--Tabs--chrome-right-border-color);
top: var(--Tabs--chrome-radius-size);
}
&:hover {
.chrome-tab-background {
z-index: 3;
display: block;
background-color: var(--Tabs--chrome-onHover-bg);
}
.chrome-tab-background > svg {
fill: var(--Tabs--chrome-onHover-bg);
}
&:after {
display: none;
}
}
&.is-active {
.chrome-tab-background {
display: block;
background-color: var(--Tabs-onActive-bg);
}
.chrome-tab-background > svg {
fill: var(--Tabs-onActive-bg);
}
}
&.is-disabled {
cursor: not-allowed;
}
}
}
.chrome-tab-background {
display: none;
position: absolute;
z-index: 4;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
border-radius: var(--Tabs--chrome-radius-size)
var(--Tabs--chrome-radius-size) 0 0;
> svg {
width: var(--Tabs--chrome-radius-size);
height: var(--Tabs--chrome-radius-size);
bottom: 0;
position: absolute;
}
> .chrome-tab-background--right {
right: calc(var(--Tabs--chrome-radius-size) * -1);
}
> .chrome-tab-background--left {
left: calc(var(--Tabs--chrome-radius-size) * -1);
}
}
}
&--simple {
& > .#{$ns}Tabs-linksContainer-wrapper {
border-bottom: none;
.#{$ns}Tabs-addable {
padding: 0;
}
& > .#{$ns}Tabs-linksContainer {
> .#{$ns}Tabs-linksContainer-arrow {
margin-bottom: 0;
}
> .#{$ns}Tabs-linksContainer-main > .#{$ns}Tabs-links {
border: none;
& > li {
position: relative;
border: none;
padding: var(--Tabs--simple-split-size);
&::after {
content: '';
position: absolute;
top: 50%;
right: 0;
width: var(--Tabs--simple-split-width);
height: var(--Tabs-add-icon-size);
transform: translateY(-50%);
background-color: var(--Tabs--simple-split-color);
}
& > .#{$ns}Tabs-link-close {
cursor: pointer;
}
&:last-of-type::after {
content: none;
}
&.is-active,
&:not(.is-disabled):hover {
> a:first-child,
> a:first-child:hover,
> a:first-child:focus {
color: var(--Tabs--line-onHover-color);
border: none;
}
> a:first-child:hover:active {
color: #144bcc;
border-color: #144bcc;
}
}
&:not(.is-disabled):hover .#{$ns}Tabs-link-close {
fill: var(--primary);
}
& > a:first-child {
padding: 0;
&,
&:hover,
&:focus {
border: none;
}
}
}
}
}
}
> .#{$ns}Tabs-content {
border: none;
}
}
&--strong {
& > .#{$ns}Tabs-linksContainer-wrapper {
align-items: stretch;
border-bottom: var(--Tabs-borderWidth) solid
var(--Tabs--simple-split-color);
.#{$ns}Tabs-addable {
width: var(--Tabs--strong-add-size);
margin-left: var(--Tabs--card-arrow-gap);
padding: 0;
margin-bottom: calc(var(--Tabs-borderWidth) * -1);
align-items: center;
justify-content: center;
font-size: 0;
border: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
border-top-left-radius: var(--Tabs-borderRadius);
border-top-right-radius: var(--Tabs-borderRadius);
flex: none;
> .#{$ns}Tabs-addable-icon {
margin-right: 0;
}
&:hover {
color: var(--Tabs--line-onHover-color);
}
}
> .#{$ns}Tabs-linksContainer {
margin-bottom: calc(var(--Tabs-borderWidth) * -1);
&.#{$ns}Tabs-linksContainer--overflow
> .#{$ns}Tabs-linksContainer-main
> .#{$ns}Tabs-links
> .#{$ns}Tabs-link {
&:first-of-type {
border-left-width: 0;
border-top-left-radius: 0;
}
&:last-of-type {
border-right-width: 0;
border-top-right-radius: 0;
}
}
.#{$ns}Tabs-linksContainer-arrow {
width: var(--Tabs--strong-arrow-size);
margin-bottom: 0;
padding: 0;
justify-content: center;
border: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
border-top-right-radius: var(--Tabs-borderRadius);
box-sizing: border-box;
&--left {
padding-right: 0;
border-right-width: 0;
border-top-left-radius: var(--Tabs-borderRadius);
}
&--right {
padding-left: 0;
border-left-width: 0;
border-top-right-radius: var(--Tabs-borderRadius);
}
}
> .#{$ns}Tabs-linksContainer-main
> .#{$ns}Tabs-links
> .#{$ns}Tabs-link {
margin-right: var(--Tabs--card-arrow-gap);
padding: var(--Tabs--card-arrow-gap) var(--Tabs--card-add-gap);
background: var(--Tabs-onActive-bg);
border-top-left-radius: var(--Tabs-borderRadius);
border-top-right-radius: var(--Tabs-borderRadius);
border: var(--Tabs-borderWidth) solid var(--Tabs--simple-split-color);
cursor: pointer;
&.is-active {
border-bottom-color: var(--Tabs-onActive-bg);
}
&.is-disabled {
cursor: not-allowed;
}
&.is-active,
&:not(.is-disabled):hover {
> a:first-child,
> a:first-child:hover,
> a:first-child:focus {
color: var(--Tabs--line-onHover-color);
}
> a:first-child:hover:active {
color: #144bcc;
border-color: #144bcc;
}
}
&:not(.is-disabled):hover .#{$ns}Tabs-link-close {
fill: var(--primary);
}
&:last-of-type {
margin-right: 0;
}
& > a:first-child {
padding: 0;
margin: 0;
border: none;
}
}
}
}
}
&-toolbar {
// display: inline-block;
// float: right;
// padding-top: var(--gap-xs);
flex: 1 1 auto; // 撑开剩余空间
margin-left: var(--gap-base);
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end; // 默认居右展示
}
}