Skip to content

Commit e2c7303

Browse files
authored
Update colors for table of contents (facebook#4412)
1 parent 1d44e58 commit e2c7303

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

website/src/css/customTheme.scss

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,11 +1100,11 @@ div[class^="tableOfContents"] {
11001100
margin-left: -16px;
11011101
padding-left: 12px;
11021102
color: var(--ifm-font-color-base);
1103-
border-left: 4px solid var(--brand);
1103+
border-left: 4px solid var(--ifm-link-color);
11041104

11051105
code {
1106-
font-weight: 600;
11071106
color: var(--ifm-font-color-base);
1107+
font-weight: 700;
11081108
white-space: nowrap;
11091109
}
11101110

@@ -1118,6 +1118,22 @@ div[class^="tableOfContents"] {
11181118
}
11191119
}
11201120

1121+
html[data-theme="dark"] {
1122+
.table-of-contents {
1123+
.table-of-contents__link--active {
1124+
color: var(--ifm-link-color);
1125+
1126+
&:hover {
1127+
color: var(--ifm-link-color);
1128+
1129+
code {
1130+
color: var(--ifm-link-color);
1131+
}
1132+
}
1133+
}
1134+
}
1135+
}
1136+
11211137
html[data-theme="dark"] div[class^="tableOfContents"] {
11221138
@extend %scrollbar-style-dark;
11231139
}

0 commit comments

Comments
 (0)