Skip to content

Commit d547d57

Browse files
authored
Sidebar: Add left border to TOC (#342)
Fix usages of color-foreground. It's oklch based, but had usages directly on color without oklch wrapper. Widen sidebar to 24rem
1 parent f00d54e commit d547d57

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
}
@@ -1210,7 +1208,7 @@ nav.sidebar.sidebar__mobile-open {
12101208

12111209
.sidebar {
12121210
grid-area: sidebar;
1213-
--color-foreground: oklch(0 0 0 / 0.75);
1211+
color: oklch(var(--color-foreground) / 0.75);
12141212

12151213
display: flex;
12161214
flex-direction: column;
@@ -1260,7 +1258,7 @@ nav.sidebar.sidebar__mobile-open {
12601258
padding: 0.25rem 0.5rem;
12611259
border-radius: 5px 0 0 5px;
12621260
font-weight: 500;
1263-
color: var(--color-foreground);
1261+
color: oklch(var(--color-foreground));
12641262

12651263
&:hover {
12661264
background-color: oklch(var(--color-brand) / 0.06);
@@ -1320,15 +1318,16 @@ nav.sidebar.sidebar__mobile-open {
13201318
.sidebar__toc {
13211319
#TableOfContents {
13221320
padding: 0 0.75rem 0 0;
1323-
margin: 0.5rem 0.25rem 0.5rem 0.8rem;
1324-
border-left: 1px solid var(--color-divider);
1325-
color: oklch(0 0 0 / 0.75);
1321+
margin: 0.5rem 0.25rem 0.5rem 0.875rem;
1322+
border-left: 1px solid oklch(var(--color-divider));
1323+
color: oklch(var(--color-foreground) / 0.75);
13261324

13271325
&[hidden] {
13281326
display: none;
13291327
}
13301328

13311329
a {
1330+
color: oklch(var(--color-foreground));
13321331
text-decoration: none;
13331332
}
13341333

0 commit comments

Comments
 (0)