@fpxfd/next
Version:
A configurable component library for web built on React.
86 lines (85 loc) • 1.94 kB
CSS
.next-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
top: 0;
margin: -1px;
}
.next-anchor-wrapper {
background-color: #FFF;
position: relative;
display: inline-block;
border-radius: 4px;
box-shadow: 0px 2px 24px 0px rgba(207, 209, 216, 0.66);
}
.next-anchor-wrapper .next-anchor-fold {
position: absolute;
box-sizing: border-box;
left: 50%;
right: 50%;
bottom: -12px;
transform: translate(-50%, 0%);
width: 24px;
height: 24px;
background-color: #FFF;
border-radius: 12px;
text-align: center;
border: 1px solid #DADFE8;
cursor: pointer;
}
.next-anchor-wrapper .next-anchor-fold:hover {
background-color: #DADFE8;
transition: background-color 0.4s;
}
.next-anchor-wrapper .next-anchor-fold:hover svg {
fill: #FFF;
}
.next-anchor-wrapper .next-anchor {
padding: 16px;
}
.next-anchor-wrapper .next-anchor-allowFold {
padding: 12px;
}
.next-anchor-wrapper .next-anchor-link {
border-left: 2px solid #DADFE8;
padding-left: 16px;
padding-top: 4px;
padding-bottom: 4px;
cursor: pointer;
}
.next-anchor-wrapper .next-anchor-link-sub {
padding-left: 24px;
}
.next-anchor-wrapper .next-anchor-link-sub .next-anchor-link-title {
color: #545D75;
}
.next-anchor-wrapper .next-anchor-link-sub .next-anchor-link-title-active {
color: #3960DF;
}
.next-anchor-wrapper .next-anchor-link-allowFold {
margin-bottom: 8px;
}
.next-anchor-wrapper .next-anchor-link-allowFold-close {
padding-left: 0;
height: 20px;
}
.next-anchor-wrapper .next-anchor-link-active {
border-left-color: #3960DF;
}
.next-anchor-wrapper .next-anchor-link-title {
font-size: 14px;
text-decoration: none;
color: #151F28;
line-height: 20px;
white-space: nowrap;
text-overflow: ellipsis;
}
.next-anchor-wrapper .next-anchor-link-title-active {
color: #3960DF;
transition: color 0.3s;
}