Skip to content

Commit

Permalink
Update colors for table of contents (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichemfantar authored Jan 7, 2025
1 parent 1d44e58 commit e2c7303
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions website/src/css/customTheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1100,11 +1100,11 @@ div[class^="tableOfContents"] {
margin-left: -16px;
padding-left: 12px;
color: var(--ifm-font-color-base);
border-left: 4px solid var(--brand);
border-left: 4px solid var(--ifm-link-color);

code {
font-weight: 600;
color: var(--ifm-font-color-base);
font-weight: 700;
white-space: nowrap;
}

Expand All @@ -1118,6 +1118,22 @@ div[class^="tableOfContents"] {
}
}

html[data-theme="dark"] {
.table-of-contents {
.table-of-contents__link--active {
color: var(--ifm-link-color);

&:hover {
color: var(--ifm-link-color);

code {
color: var(--ifm-link-color);
}
}
}
}
}

html[data-theme="dark"] div[class^="tableOfContents"] {
@extend %scrollbar-style-dark;
}
Expand Down

0 comments on commit e2c7303

Please sign in to comment.