ant-design/components/anchor/style/index.less

61 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-10-28 14:02:55 +08:00
@import "../../style/themes/default";
2016-11-03 16:45:13 +08:00
.@{ant-prefix} {
2016-10-28 16:53:59 +08:00
&-anchor {
2016-11-03 16:45:13 +08:00
position: relative;
&-wrapper {
padding: 6px;
background-color: white;
}
}
&-anchor-ink {
position: absolute;
width: 9px;
height: 100%;
left: 0;
top: 0;
&:before {
content: ' ';
position: relative;
width: 2px;
height: 100%;
display: block;
background-color: #ccc;
margin: 0 auto;
}
&-ball {
display: none;
position: absolute;
width: 9px;
height: 9px;
border-radius: 9px;
border: 3px solid @primary-color;
background-color: white;
transition: top .3s ease-in-out;
2016-11-09 14:40:31 +08:00
left: 50%;
transform: translateX(-50%);
2016-11-03 16:45:13 +08:00
&.visible {
display: inline-block;
2016-10-28 16:53:59 +08:00
}
}
}
2016-11-03 16:45:13 +08:00
&-anchor-link {
padding-left: 16px;
&-title {
2016-11-09 14:40:31 +08:00
display: block;
2016-11-03 16:45:13 +08:00
position: relative;
2016-11-09 14:40:31 +08:00
transition: all .3s;
color: @text-color;
2016-11-03 16:45:13 +08:00
}
2016-11-09 14:40:31 +08:00
&-active > &-title {
2016-11-03 16:45:13 +08:00
color: @primary-color;
}
2016-10-28 16:53:59 +08:00
2016-11-03 16:45:13 +08:00
& > & {
2016-11-08 20:57:07 +08:00
font-size: @font-size-base;
2016-11-03 16:45:13 +08:00
}
}
}