.content-page {
position: relative;
}
.content-page .anchor-links {
position: absolute;
top: 0;
background: #F8F8F8CC;
backdrop-filter: blur(3.5px);
display: flex;
flex-direction: column;
gap: 0.375rem;
width: 15rem;
z-index: 1000;
transition: all 300ms ease-out;
margin-top: 8.75rem;
left: calc((100% - 1200px) / 2);
margin-left: calc(-15rem - 72px);
}
.content-page .anchor-links:hover {
background: #F8F8F8;
}
[data-theme="dark"] .content-page .anchor-links {
background: #182748cc;
}
[data-theme="dark"] .content-page .anchor-links:hover {
background: #182748;
}
.anchor-links.sticky {
position: fixed;
}
.anchor-links > div > a {
display: block;
text-decoration: none;
padding: 0.75rem 1rem;
border-left: 2px solid transparent;
}
.anchor-links > div > a:hover {
color: #7189AB;
border-left-color: #7189AB;
}
.anchor-links > div > a:active,
.anchor-links > div > a.active {
color: var(--text-color);
border-left-color: var(--text-color);
} @media only screen and (max-width: 1829px) {
.content-page .anchor-links {
left: 2.75rem;
margin-left: 0;
width: auto;
background: transparent !important;
backdrop-filter: none;
gap: 0.25rem;
}
}
@media only screen and (max-width: 1300px) and (min-width: 1200px) {
.content-page .anchor-links {
left: 0.5rem;
}
}
@media only screen and (max-width: 1199px) and (min-width: 992px) {
.content-page .anchor-links {
left: 0;
}
}
@media only screen and (max-width: 1829px) and (min-width: 980px) {
.anchor-links > div {
position: relative;
width: 2rem;
height: 3.25rem;
display: flex;
justify-content: center;
align-items: center;
}
.anchor-links > div > a {
position: relative;
border: 2px solid;
padding: 0;
width: 1rem;
height: 1rem;
border-radius: 50%;
font-size: 0;
background-color: var(--text-box);
pointer-events: none;
}
.anchor-links > div:hover > a,
.anchor-links > div > a:active,
.anchor-links > div > a.active {
background: var(--text-color);
border-color: var(--text-color);
pointer-events: auto;
}
.anchor-links > div > a::before {
content: '';
position: absolute;
left: calc(1rem + 0.75rem);
top: 50%;
transform: translateY(-50%);
background: url('data:image/svg+xml;charset=utf-8,<svg width="21" height="28" viewBox="0 0 21 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 13.9989L21 1V27L2 13.9989Z" fill="%23182748"/><path d="M20 1L2 13.999L20 27" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center;
width: 1.188rem;
height: 1.625rem;
z-index: 1002;
opacity: 0;
}
[data-theme="dark"] .anchor-links > div > a::before {
background-image: url('data:image/svg+xml;charset=utf-8,<svg width="21" height="28" viewBox="0 0 21 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 13.9989L21 1V27L2 13.9989Z" fill="white"/><path d="M20 1L2 13.999L20 27" stroke="%23182748" stroke-width="2" stroke-linecap="round"/></svg>');
}
.anchor-links > div > a::after {
content: attr(data-title);
position: absolute;
left: calc(1rem + 1.813rem);
top: 50%;
transform: translateY(-50%);
background: var(--text-color);
color: var(--text-box);
border: 2px solid var(--text-box);
padding: 0.375rem 0.938rem;
white-space: nowrap;
opacity: 0;
font-size: 1.563rem;
line-height: 2.188rem;
z-index: 1001;
}
.anchor-links > div:hover > a::after, .anchor-links > div > a.active::after,
.anchor-links > div:hover > a::before, .anchor-links > div > a.active::before {
opacity: 1;
}
}
@media only screen and (min-width: 980px) {
.anchor-links-container .anchor-title {
display: none;
}
.anchor-links-container .anchor-links {
display: flex !important;
}
}
@media only screen and (max-width: 979px) {
.content-page .anchor-links-container {
margin: 3rem auto;
padding-top: 2rem;
padding-bottom: 1.875rem;
border-bottom: 2px solid;
max-width: 75rem;
display: none;
}
.anchor-links-container .anchor-title {
font-weight: var(--font-weight-semi-bold);
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
}
.content-page .anchor-links-container .anchor-links {
position: relative !important;
top: 0 !important;
left: 0;
margin: 1rem 0 0;
gap: 0.375rem;
z-index: 1;
display: none;
}
.content-page .anchor-links-container.open .anchor-links {
display: flex;
}
.content-page .anchor-links-container.open .icon {
rotate: 180deg;
}
.anchor-links > div > a {
padding: 0.75rem 0;
border: none;
}
.anchor-links > div > a:active,
.anchor-links > div > a.active {
color: #7189AB;
}
}
@media only screen and (max-width: 1399px) {
.content-page .anchor-links-container {
max-width: 69.25rem;
}
}
@media only screen and (max-width: 1199px) {
.content-page .anchor-links-container {
max-width: 58rem;
}
}
@media only screen and (max-width: 991px) {
.content-page .anchor-links-container {
max-width: 42rem;
}
}
@media only screen and (max-width: 767px) {
.content-page .anchor-links-container {
max-width: 30.75rem;
}
}
@media only screen and (max-width: 575px) {
.content-page .anchor-links-container {
max-width: calc(100% - 2rem);
}
}