@callstack/rspress-theme
Version:
Callstack theme for Rspress docs
45 lines (38 loc) • 1.02 kB
CSS
/* Table of Contents */
aside.rp-doc-layout__outline {
border-left: 1px solid var(--rp-c-divider-light) ;
padding: 16px 0 16px 0 ;
}
/* Contents - header */
.rp-outline__title,
aside.rp-doc-layout__outline > div.rp-outline {
font-size: 14px ;
font-weight: 500 ;
line-height: 1.5 ;
color: var(--rp-c-text-1) ;
border-left: none ;
}
/* spacing between toc items */
.rp-toc-item {
padding-top: 4px ;
padding-bottom: 4px ;
margin-top: 0 ;
}
/* hide progress circle */
svg.rp-progress-circle {
display: none ;
}
/* hover highlight color */
.rp-outline__toc > a.rp-toc-item.rp-link:hover {
background-color: var(--ck-foreground-primary) ;
}
/* hover higlight fill fix */
.rp-toc-item {
margin-left: -20px ;
margin-right: -20px ;
padding-left: 20px ;
padding-right: 20px ;
}
.rp-toc-item--active:before {
left: 0 ;
}