Skip to content

Commit 6c1ade6

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. Widen sidebar to 24rem
1 parent 2907963 commit 6c1ade6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

assets/css/v2/style.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ textarea:not([rows]) {
217217
--overflow-gutter-extension: 1rem;
218218

219219
/* vars for the primary grid setup */
220-
--grid-sidebar: 24rem;
221-
--grid-sidebar-gutter: 3rem;
222220
--grid-content: minmax(34rem, 50rem);
223221
--grid-content-mobile: minmax(20rem, 50rem);
224222
--grid-side-callout: minmax(18rem, 26rem);
@@ -281,7 +279,7 @@ textarea:not([rows]) {
281279

282280
--header-height: 4rem;
283281

284-
--sidebar-width: 22rem;
282+
--sidebar-width: 24rem;
285283
--sidebar-item-padding-lr: 0.75rem;
286284
--sidebar-item-padding-tb: 0.25rem;
287285
--content-max-width: 88rem;
@@ -602,7 +600,7 @@ ol li:last-child {
602600
.header__sidebar__panel,
603601
.sidebar__panel {
604602
cursor: pointer;
605-
color: var(--color-foreground);
603+
color: oklch(var(--color-foreground));
606604
label {
607605
cursor: pointer;
608606
}
@@ -1188,7 +1186,7 @@ nav.sidebar.sidebar__mobile-open {
11881186

11891187
.sidebar {
11901188
grid-area: sidebar;
1191-
--color-foreground: oklch(0 0 0 / 0.75);
1189+
color: oklch(var(--color-foreground) / 0.75);
11921190

11931191
display: flex;
11941192
flex-direction: column;
@@ -1238,7 +1236,7 @@ nav.sidebar.sidebar__mobile-open {
12381236
padding: 0.25rem 0.5rem;
12391237
border-radius: 5px 0 0 5px;
12401238
font-weight: 500;
1241-
color: var(--color-foreground);
1239+
color: oklch(var(--color-foreground));
12421240

12431241
&:hover {
12441242
background-color: oklch(var(--color-brand) / 0.06);
@@ -1298,15 +1296,16 @@ nav.sidebar.sidebar__mobile-open {
12981296
.sidebar__toc {
12991297
#TableOfContents {
13001298
padding: 0 0.75rem 0 0;
1301-
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);
1299+
margin: 0.5rem 0.25rem 0.5rem 0.875rem;
1300+
border-left: 1px solid oklch(var(--color-divider));
1301+
color: oklch(var(--color-foreground) / 0.75);
13041302

13051303
&[hidden] {
13061304
display: none;
13071305
}
13081306

13091307
a {
1308+
color: oklch(var(--color-foreground));
13101309
text-decoration: none;
13111310
}
13121311

0 commit comments

Comments
 (0)