hc-materials
Version:
基于react的通用组件库
97 lines (90 loc) • 2.12 kB
text/less
@import '../../../theme.less';
@import '~antd/lib/anchor/style/index.less';
@stepConnector-prefix-cls: ~'@{hc-prefix}-stepConnector';
.@{stepConnector-prefix-cls} {
&.ant-anchor-wrapper{
overflow: visible;
.ant-anchor{
display: flex;
flex-direction: row;
place-content: center space-between;
align-items: center;
height: 38px;
}
.ant-anchor-ink {
display: none;
}
.ant-anchor-link{
}
}
&-elem-step {
flex: 0 0 auto;
}
&-elem-step_btn{
border: 10px;
box-sizing: border-box;
display: inline-block;
font-family: Roboto, sans-serif;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
cursor: pointer;
text-decoration: none;
margin: 0px;
padding: 0px;
outline: none;
font-size: inherit;
font-weight: inherit;
position: relative;
background-color: transparent;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
&-elem-step_span{
display: flex;
align-items: center;
padding-left: 14px;
padding-right: 14px;
.ant-anchor-link-title {
font-size: 14px;
color: rgba(0, 0, 0, 0.26);
}
&.active,
.ant-anchor-link-active {
.ant-anchor-link-title{
color: rgba(0, 0, 0, 0.87);
font-weight: 500;
svg {
color: rgb(0, 188, 212);
fill: rgb(0, 188, 212);
}
}
}
.ant-anchor-link-title{
svg {
display: inline-block;
vertical-align: middle;
margin-right: 5px;
color: rgb(158, 158, 158);
fill: rgb(158, 158, 158);
height: 24px;
width: 24px;
user-select: none;
transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
font-size: 24px;
text {
text-anchor: middle;
font-size: 12px;
fill: #fff;
}
}
}
}
&-elem-connector {
flex: 1 1 auto;
> span {
display: block;
border-color: rgb(189, 189, 189);
margin-left: -6px;
border-top-style: solid;
border-top-width: 1px;
}
}
}