mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
3ac4097dc4
* style: button主题适配 (#5780) * feat: button增加font-weight (#5781) * feat: button增加font-weight * fix: button-fix * fix: button-fix Co-authored-by: hongyang03 <hongyang03@baidu.com> * style: font * feat: input输入框变量样式&切换图标方案 (#5847) * feat: input输入框变量样式&切换图标方案 * fix: 去掉多余代码 * fix: 去掉多余代码 Co-authored-by: hongyang03 <hongyang03@baidu.com> * style: input外观 * fix: 修复选择图标没选中 (#5858) * fix: 修复选择图标没选中 * fix: 代码格式 Co-authored-by: hongyang03 <hongyang03@baidu.com> * style: link组件 * style: form * inputNumber输入输入框 组件css变量 (#5874) * inputNumber输入输入框 组件css变量 * inputNumber组件 兼容变量 * inputNumber组件 css变量文件迁移 * inputNumber组件 删除变量 * 去除无用变量 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: form * style: form * InputNumber组件 变量修改 (#5879) * inputNumber输入输入框 组件css变量 * inputNumber组件 兼容变量 * inputNumber组件 css变量文件迁移 * inputNumber组件 删除变量 * 去除无用变量 * InputNumber组件 变量修改 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: form * style: input * inputNumber组件 加强版分别配置 (#5887) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: input-range * inputNumber组件 加强版图标 (#5888) * inputNumber组件 加强版分别配置 * inputNumber组件 加强版图标 * 修改图标变量 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: rating * checkbox组件变量 (#5902) * inputNumber组件 加强版分别配置 * inputNumber组件 加强版图标 * 修改图标变量 * checkbox组件变量 * 修改checkbox-size * 修改checkbox-size变量 * 优化 * 优化 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * checkbox边框 背景分别配置变量 (#5904) * inputNumber组件 加强版分别配置 * inputNumber组件 加强版图标 * 修改图标变量 * checkbox组件变量 * 修改checkbox-size * 修改checkbox-size变量 * 优化 * 优化 * checkbox边框 背景分别配置变量 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * listSelect组件变量 (#5917) * listSelect组件变量 * 优化 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * feat: radio&switch样式变量适配 (#5924) * feat: radio&switch样式变量适配 * fix:修复变量 * fix: 变量修复 * fix: 变量修复 Co-authored-by: hongyang03 <hongyang03@baidu.com> * style: 兼容style * feat: Collapse变量适配 (#5934) Co-authored-by: hongyang03 <hongyang03@baidu.com> * 组件自定义变量补充 (#5947) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * inputNumber加强版背景覆盖普通版 (#5951) * 组件自定义变量补充 * inputNumber加强版背景覆盖普通版 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * pref: 已修改组件变量迁移到components (#5952) * pref: 将变量冲properties迁移到components * pref: 已修改组件变量迁移到components Co-authored-by: hongyang03 <hongyang03@baidu.com> * pref: 优化变量位置 (#5953) Co-authored-by: hongyang03 <hongyang03@baidu.com> * theme: 面板\分割线\选项卡 * theme: 选项卡 * theme: link * feat: inputFile&inputImage组件变量 (#5982) Co-authored-by: hongyang03 <hongyang03@baidu.com> * fix: 图标选择修复和兼容处理 (#5984) Co-authored-by: hongyang03 <hongyang03@baidu.com> * theme: bugfix * theme: bugfix * fix: 去掉input的size&修复collapse样式 (#5985) Co-authored-by: hongyang03 <hongyang03@baidu.com> * theme: 样式调整 * theme: 样式调整 * pref: 折叠器样式变量修改 (#5991) Co-authored-by: hongyang03 <hongyang03@baidu.com> * theme: 样式调整 * theme: 样式调整 * theme: 样式调整 * theme: 样式调整 * styles: 主题变量bugfix * checkbox&number组件变量修复 (#6019) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * fix: 输入框图标样式修复 (#6021) Co-authored-by: hongyang03 <hongyang03@baidu.com> * 回滚注释 * 更新快照 * fix: 修复评分组件报错问题 Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: hongyang03 <hongyang03@baidu.com> Co-authored-by: 徐佳豪 <1440054388@qq.com> Co-authored-by: xujiahao01 <xujiahao01@baidu.com>
139 lines
3.3 KiB
SCSS
139 lines
3.3 KiB
SCSS
.#{$ns}AnchorNav {
|
|
display: flex;
|
|
height: px2rem(400px);
|
|
|
|
&--vertical {
|
|
.#{$ns}AnchorNav-link-wrap {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: var(--Tabs--vertical-width);
|
|
border-left: var(--AnchorNav-links-container-borderRight);
|
|
padding-bottom: px2rem(60px);
|
|
|
|
> .#{$ns}AnchorNav-link {
|
|
position: relative;
|
|
display: block;
|
|
|
|
> a {
|
|
display: block;
|
|
border: var(--Tabs-borderWidth) solid transparent;
|
|
border-width: var(--AnchorNav-onActive-borderWidth);
|
|
color: var(--Tabs-color);
|
|
padding: 0 var(--gap-sm);
|
|
padding-left: px2rem(10px);
|
|
font-size: var(--fontSizeSm);
|
|
outline: none;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
margin-left: px2rem(-2px);
|
|
height: px2rem(32px);
|
|
line-height: px2rem(32px);
|
|
@include truncate();
|
|
max-width: var(--Tabs--vertical-width);
|
|
|
|
&:hover {
|
|
color: var(--primary);
|
|
}
|
|
|
|
&:active {
|
|
color: #144bcc;
|
|
}
|
|
}
|
|
|
|
&.is-active {
|
|
> a {
|
|
color: var(--primary);
|
|
border-color: var(--primary);
|
|
}
|
|
> a:hover {
|
|
color: #528eff;
|
|
border-color: #528eff;
|
|
}
|
|
> a:active {
|
|
color: #144bcc;
|
|
border-color: #144bcc;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&--horizontal {
|
|
flex-direction: column;
|
|
.#{$ns}AnchorNav-link-wrap {
|
|
user-select: none;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
border-bottom: var(--Tabs-borderWidth) solid var(--Tabs-borderColor);
|
|
list-style: none;
|
|
|
|
> .#{$ns}AnchorNav-link {
|
|
margin-bottom: calc(var(--Tabs-borderWidth) * -1);
|
|
display: inline-block;
|
|
position: relative;
|
|
|
|
> a {
|
|
@include truncate();
|
|
max-width: var(--Tabs--vertical-width);
|
|
}
|
|
|
|
> a:first-child {
|
|
font-size: var(--Tabs-linkFontSize);
|
|
outline: 0;
|
|
border: var(--Tabs-borderWidth) solid transparent;
|
|
border-width: 0 0 2px 0;
|
|
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;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: var(--primary);
|
|
background: transparent;
|
|
border-color: transparent;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
> a {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
&.is-active {
|
|
> a:first-child,
|
|
> a:first-child:hover,
|
|
> a:first-child:focus {
|
|
font-size: var(--Tabs-linkFontSize);
|
|
border-width: 0 0 2px 0;
|
|
border-color: var(--Tabs--line-onHover-borderColor);
|
|
color: var(--primary);
|
|
background: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-section-wrap {
|
|
border: none;
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
scroll-behavior: smooth;
|
|
background: var(--Tabs-content-bg);
|
|
position: relative;
|
|
|
|
> .#{$ns}AnchorNav-section {
|
|
display: block;
|
|
padding: var(--gap-base);
|
|
}
|
|
}
|
|
}
|