Skip to content

Commit 040e245

Browse files
committed
Sidebar: Add left border to TOC
Fix usages of color-foreground. It's oklch based, but had usages directly on color without oklch wrapper
1 parent 2907963 commit 040e245

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

assets/css/v2/style.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ ol li:last-child {
602602
.header__sidebar__panel,
603603
.sidebar__panel {
604604
cursor: pointer;
605-
color: var(--color-foreground);
605+
color: oklch(var(--color-foreground));
606606
label {
607607
cursor: pointer;
608608
}
@@ -1188,7 +1188,7 @@ nav.sidebar.sidebar__mobile-open {
11881188

11891189
.sidebar {
11901190
grid-area: sidebar;
1191-
--color-foreground: oklch(0 0 0 / 0.75);
1191+
color: oklch(var(--color-foreground) / 0.75);
11921192

11931193
display: flex;
11941194
flex-direction: column;
@@ -1238,7 +1238,7 @@ nav.sidebar.sidebar__mobile-open {
12381238
padding: 0.25rem 0.5rem;
12391239
border-radius: 5px 0 0 5px;
12401240
font-weight: 500;
1241-
color: var(--color-foreground);
1241+
color: oklch(var(--color-foreground));
12421242

12431243
&:hover {
12441244
background-color: oklch(var(--color-brand) / 0.06);
@@ -1299,14 +1299,15 @@ nav.sidebar.sidebar__mobile-open {
12991299
#TableOfContents {
13001300
padding: 0 0.75rem 0 0;
13011301
margin: 0.5rem 0.25rem 0.5rem 0.8rem;
1302-
border-left: 1px solid var(--color-divider);
1303-
color: oklch(0 0 0 / 0.75);
1302+
border-left: 1px solid oklch(var(--color-divider));
1303+
color: oklch(var(--color-foreground) / 0.75);
13041304

13051305
&[hidden] {
13061306
display: none;
13071307
}
13081308

13091309
a {
1310+
color: oklch(var(--color-foreground));
13101311
text-decoration: none;
13111312
}
13121313

0 commit comments

Comments
 (0)