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

68 lines
1.2 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;
}
&-ink {
2016-11-03 16:45:13 +08:00
position: absolute;
width: 9px;
height: 100%;
left: 0;
top: 0;
&:before {
content: ' ';
position: relative;
width: 2px;
height: 100%;
display: block;
background-color: @border-color-split;
margin: 0 auto;
}
&-ball {
2016-11-09 21:12:26 +08:00
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;
left: 50%;
transform: translateX(-50%);
&.visible {
display: inline-block;
}
2016-10-28 16:53:59 +08:00
}
}
2016-11-09 21:06:43 +08:00
&.fixed &-ink &-ink-ball {
display: none;
}
2016-10-28 16:53:59 +08:00
}
2016-11-03 16:45:13 +08:00
&-anchor-link {
2016-11-09 21:06:43 +08:00
padding: 4px 0 4px 16px;
2016-11-09 15:26:22 +08:00
line-height: 1;
2016-11-03 16:45:13 +08:00
&-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
}
}
}