adjust Antora TOC

- add gap between article and TOC
- refine padding on TOC links
- move current-page nav icon further left

Addresses boostorg/website-v2-docs#317
This commit is contained in:
Julio Estrada
2024-09-25 22:46:30 -04:00
committed by Julio C. Estrada
parent 8fb9e12782
commit 8bd4b4c8d3

View File

@@ -548,7 +548,7 @@ html.toc-hidden .boostlook:not(:has(.doc)) {
top: 38%;
width: 16px;
height: 16px;
margin-left: -1rem;
margin-left: -1.25rem;
background-image: var(--bl-caret-svg);
background-repeat: no-repeat;
background-position: center center;
@@ -570,4 +570,15 @@ html.toc-hidden .boostlook:not(:has(.doc)) {
border-color: var(--bl-code-border-color);
}
/* Layout */
.boostlook .article .content {
gap: 1rem;
}
/* Table of Contents */
.boostlook .toc .toc-menu a {
border-left: 0;
padding: .25rem 0 0 0;
}
/*----------------- Styles specific to Antora Templates end -----------------*/