ygd
Version:
An enterprise-class UI design language and React-based implementation
78 lines (77 loc) • 1.62 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-anchor {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
position: relative;
padding-left: 2px;
}
.yg-anchor-wrapper {
margin-left: -4px;
padding-left: 4px;
overflow: auto;
background-color: #fff;
}
.yg-anchor-ink {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
.yg-anchor-ink::before {
position: relative;
display: block;
width: 2px;
height: 100%;
margin: 0 auto;
background-color: #ccc;
content: ' ';
}
.yg-anchor-ink-ball {
position: absolute;
left: 50%;
display: none;
width: 8px;
height: 8px;
background-color: #fff;
border: 2px solid #00a1ff;
border-radius: 8px;
transform: translateX(-50%);
transition: top 0.3s ease-in-out;
}
.yg-anchor-ink-ball.visible {
display: inline-block;
}
.yg-anchor.fixed .yg-anchor-ink .yg-anchor-ink-ball {
display: none;
}
.yg-anchor-link {
padding: 7px 0 7px 16px;
line-height: 1.143;
}
.yg-anchor-link-title {
position: relative;
display: block;
margin-bottom: 6px;
overflow: hidden;
color: #333;
white-space: nowrap;
text-overflow: ellipsis;
transition: all 0.3s;
}
.yg-anchor-link-title:only-child {
margin-bottom: 0;
}
.yg-anchor-link-active > .yg-anchor-link-title {
color: #00a1ff;
}
.yg-anchor-link .yg-anchor-link {
padding-top: 5px;
padding-bottom: 5px;
}