Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Refine TOC spacing and specificity for improved readability
Maximilian Roos37324ced2769
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scssindex f55d486ef..12cc94e5f 100644--- a/docs/sass/custom.scss+++ b/docs/sass/custom.scss@@ -415,72 +415,76 @@ table {overscroll-behavior: contain; // Trap scroll events within TOC}-.toc-group-label {- font-size: 0.7rem;- font-weight: 600;- text-transform: uppercase;- letter-spacing: 0.05em;- color: var(--wt-color-text-soft);- padding: 0.5rem 0.5rem 0.15rem;- margin: 0.25rem 0.5rem 0;-- &:first-child {- margin-top: 0;- }-}--.toc-item {- padding: 0;- margin: 0 0.5rem;-- a {- display: block;- padding: 0.15rem 0.5rem;- border-radius: 0.35rem;- font-size: 0.8rem;- color: var(--wt-color-text-muted);- transition: all 150ms;-- &:hover {- background: var(--wt-color-bg-soft);- color: var(--wt-color-text);- text-decoration: none;- }+// Use `main` prefix to override juice.scss specificity (main .toc-item)+main {+ // Moderate tightening with clear section headers+ .toc-group-label {+ font-size: 0.7rem;+ font-weight: 600;+ text-transform: uppercase;+ letter-spacing: 0.05em;+ color: var(--wt-color-text-soft);+ padding: 0.6rem 0.45rem 0.2rem;+ margin: 0.5rem 0.4rem 0; // More top margin for clear section breaks- &.active {- border-left: 3px solid var(--wt-color-accent);- background: var(--wt-color-accent-soft);- color: var(--wt-color-text);- font-weight: 550;- padding-left: calc(0.5rem - 3px);+ &:first-child {+ margin-top: 0;}}-}--.toc-item-child {- padding: 0 0.5rem 0 1rem;- margin: 0 0.5rem;- a {- font-size: 0.75rem;- color: var(--wt-color-text-soft);- padding: 0.1rem 0.4rem;- border-radius: 0.3rem;- display: block;- transition: all 150ms;+ .toc-item {+ padding: 0;+ margin: 0 0.4rem;- &:hover {+ a {+ display: block;+ padding: 0.55rem 0.5rem;+ border-radius: 0.25rem;+ font-size: 0.8rem;color: var(--wt-color-text-muted);- background: var(--wt-color-bg-soft);- text-decoration: none;+ transition: all 150ms;++ &:hover {+ background: var(--wt-color-bg-soft);+ color: var(--wt-color-text);+ text-decoration: none;+ }++ &.active {+ border-left: 3px solid var(--wt-color-accent);+ background: var(--wt-color-accent-soft);+ color: var(--wt-color-text);+ font-weight: 550;+ padding-left: calc(0.5rem - 3px);+ }}}- &.nested {- padding-left: 2rem;+ .toc-item-child {+ padding: 0 0.45rem 0.2rem 1rem;+ margin: 0 0.4rem;a {- font-size: 0.7rem;+ font-size: 0.75rem;+ color: var(--wt-color-text-soft);+ padding: 0.1rem 0.35rem;+ border-radius: 0.2rem;+ display: block;+ transition: all 150ms;++ &:hover {+ color: var(--wt-color-text-muted);+ background: var(--wt-color-bg-soft);+ text-decoration: none;+ }+ }++ &.nested {+ padding-left: 1.6rem;++ a {+ font-size: 0.7rem;+ }}}}