mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 13:38:56 +08:00
80e58e7f76
* options 支持配置 selectFirst 自动选择第一个 * 文档优化;修复 cxd 下 toast 展现不一致问题 (#1219) * Panel 支持更多的 className 配置 * 修复 cxd 下向导多出的边框 Co-authored-by: 2betop <2betop.cn@gmail.com>
276 lines
6.2 KiB
SCSS
276 lines
6.2 KiB
SCSS
.#{$ns}Wizard {
|
|
@include clearfix();
|
|
|
|
position: relative;
|
|
|
|
&,
|
|
&-tabs {
|
|
padding: 0;
|
|
|
|
.#{$ns}Badge {
|
|
display: inline-block;
|
|
width: var(--Wizard-badge-size);
|
|
height: var(--Wizard-badge-size);
|
|
font-size: var(--Wizard-badge-fontSize);
|
|
line-height: var(--Wizard-badge-size);
|
|
color: var(--Wizard-badge-color);
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
background: var(--Wizard-badge-bg);
|
|
border-radius: var(--Wizard-badge-borderRadius); // font-weight: 700;
|
|
text-shadow: 0 px2rem(1px) 0 rgba(0, 0, 0, 0.2);
|
|
margin-right: var(--Wizard-badge-marginRight);
|
|
border: var(--Wizard-badge-border);
|
|
box-sizing: content-box;
|
|
|
|
// &--primary {
|
|
// background: var(--primary);
|
|
// }
|
|
|
|
// &--secondary {
|
|
// background: var(--secondary);
|
|
// }
|
|
|
|
// &--success {
|
|
// background: var(--success);
|
|
// }
|
|
|
|
// &--info {
|
|
// background: var(--info);
|
|
// }
|
|
|
|
// &--warning {
|
|
// background: var(--warning);
|
|
// }
|
|
|
|
// &--danger {
|
|
// background: var(--danger);
|
|
// }
|
|
|
|
// &--light {
|
|
// background: var(--light);
|
|
// }
|
|
|
|
// &--dark {
|
|
// background: var(--dark);
|
|
// }
|
|
&.is-active {
|
|
color: var(--white);
|
|
background: var(--Wizard-badge-onActive-backgroundColor);
|
|
}
|
|
}
|
|
|
|
ul li.active {
|
|
color: var(--info);
|
|
}
|
|
|
|
.#{$ns}Panel-footer > .#{$ns}Form-group,
|
|
.#{$ns}Panel-footer > .btn {
|
|
margin-left: px2rem(5px);
|
|
}
|
|
|
|
> ul.nav {
|
|
padding: 0;
|
|
margin: 0;
|
|
border: var(--borderWidth) solid var(--borderColor);
|
|
|
|
li {
|
|
position: relative;
|
|
float: left;
|
|
padding: 0 px2rem(15px) 0 px2rem(25px);
|
|
margin: 0;
|
|
color: #999999;
|
|
cursor: pointer;
|
|
height: var(--Wizard-steps-height);
|
|
line-height: var(--Wizard-steps-height);
|
|
|
|
a {
|
|
border: 0 none !important;
|
|
background: transparent !important;
|
|
color: inherit;
|
|
display: inline;
|
|
padding: 0;
|
|
|
|
div {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
&:first-child {
|
|
padding-left: px2rem(15px);
|
|
border-radius: px2rem(4px) 0 0 0;
|
|
}
|
|
|
|
&:before,
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
right: px2rem(-10px);
|
|
border: px2rem(20px) solid transparent;
|
|
border-right: 0;
|
|
border-left: px2rem(10px) solid var(--borderColor);
|
|
border-left-color: rgba(0, 0, 0, 0.05);
|
|
z-index: 1;
|
|
bottom: 0;
|
|
}
|
|
|
|
&:after {
|
|
right: px2rem(-9px);
|
|
border-left-color: var(--Wizard-steps-bg);
|
|
z-index: 2;
|
|
}
|
|
|
|
&.is-active {
|
|
color: var(--Wizard-steps-li-onActive-color);
|
|
background: #fff;
|
|
}
|
|
|
|
&.is-active:after {
|
|
border-left-color: #fff;
|
|
}
|
|
}
|
|
|
|
// .Badge {
|
|
// margin-right: px2rem(4px);
|
|
// }
|
|
}
|
|
}
|
|
|
|
&-steps {
|
|
font-size: var(--fontSizeBase);
|
|
padding: var(--Wizard-steps-padding);
|
|
background: var(--Wizard-steps-bg);
|
|
border-bottom: var(--Wizard-steps-borderWidth) solid var(--borderColor);
|
|
text-align: var(--Wizard-steps-textAlign);
|
|
@include clearfix();
|
|
|
|
ul {
|
|
display: var(--Wizard-steps-ulDisplay);
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none outside none;
|
|
|
|
li {
|
|
position: relative;
|
|
float: left;
|
|
padding: 0 px2rem(15px) 0 px2rem(25px);
|
|
margin: 0;
|
|
color: #999999;
|
|
cursor: default;
|
|
height: var(--Wizard-steps-height);
|
|
line-height: var(--Wizard-steps-height);
|
|
|
|
&:first-child {
|
|
padding-left: px2rem(15px);
|
|
border-radius: px2rem(4px) 0 0 0;
|
|
}
|
|
|
|
&:before,
|
|
&:after {
|
|
font-family: var(--Wizard-steps-liVender);
|
|
content: var(--Wizard-steps-liAfterContent);
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: px2rem(-10px);
|
|
border: $Wizard-steps-liAfterBorder;
|
|
border-right: 0;
|
|
border-left: px2rem(10px) solid var(--borderColor);
|
|
border-left-color: rgba(0, 0, 0, 0.05);
|
|
z-index: 2;
|
|
}
|
|
|
|
&:after {
|
|
right: px2rem(-9px);
|
|
border-left-color: var(--Wizard-steps-bg);
|
|
z-index: 2;
|
|
}
|
|
|
|
&.is-active {
|
|
color: var(--Wizard-steps-li-onActive-color);
|
|
background: var(--Wizard-steps-li-onActive-bg);
|
|
}
|
|
|
|
&.is-active:after {
|
|
border-left-color: var(--Wizard-steps-li-onActive-arrow-bg);
|
|
}
|
|
|
|
&.is-complete,
|
|
&.is-complete:hover {
|
|
color: var(--Wizard-steps-li-onActive-color);
|
|
cursor: pointer;
|
|
background: var(--Wizard-steps-bg--isComplete);
|
|
}
|
|
|
|
&.is-complete:after {
|
|
border-left-color: #f1f5f9;
|
|
}
|
|
}
|
|
|
|
// .Badge {
|
|
// margin-right: px2rem(4px);
|
|
// }
|
|
}
|
|
}
|
|
|
|
&-stepContent {
|
|
padding: var(--Wizard-stepsContent-padding);
|
|
|
|
& .Step-pane {
|
|
display: none;
|
|
|
|
&.is-active {
|
|
display: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
&--vertical {
|
|
> .#{$ns}Wizard-step {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
border-bottom: none;
|
|
|
|
> .#{$ns}Wizard-steps {
|
|
height: auto;
|
|
min-width: 40px;
|
|
margin-right: 30px;
|
|
margin-bottom: px2rem(30px); // padding: 0;
|
|
background: none;
|
|
border-bottom: none;
|
|
|
|
li {
|
|
background: var(--Wizard-steps-bg);
|
|
}
|
|
|
|
ul li {
|
|
height: px2rem(40px);
|
|
line-height: px2rem(40px);
|
|
position: relative;
|
|
float: none;
|
|
border-bottom: var(--borderWidth) solid var(--borderColor);
|
|
padding-left: px2rem(15px); // &:before,
|
|
// &:after {
|
|
// border: px2rem(20px) solid transparent;
|
|
// content: '';
|
|
// }
|
|
|
|
&.is-active {
|
|
background: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
> .#{$ns}Wizard-stepContent {
|
|
flex-grow: 1;
|
|
width: 0;
|
|
}
|
|
|
|
> .#{$ns}Wizard-footer {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|