Skip to content

Commit c5a44ea

Browse files
committed
Tweak tab and toc styling
1 parent a0cb421 commit c5a44ea

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

src/css/custom.css

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,38 @@ footer {
299299
content: '← ';
300300
}
301301

302+
.tabs {
303+
font-weight: var(--ifm-font-weight-semibold);
304+
}
305+
302306
.tabs__item {
303-
border-bottom-width: 2px;
307+
border-bottom: 1px solid var(--ifm-toc-border-color);
308+
border-bottom-left-radius: 0;
309+
border-bottom-right-radius: 0;
310+
}
311+
312+
.tabs__item--active,
313+
.tabs__item--active:hover {
314+
border-bottom-color: var(--ifm-tabs-color-active-border);
315+
background-color: var(--ifm-menu-color-background-active);
316+
}
317+
318+
.table-of-contents__link--active {
319+
position: relative;
320+
}
321+
322+
.table-of-contents__link--active::before {
323+
content: '';
324+
position: absolute;
325+
left: calc(-1rem - 1px);
326+
top: 0;
327+
bottom: 0;
328+
width: 1px;
329+
background-color: var(--ifm-color-primary);
330+
}
331+
332+
.table-of-contents > li > ul > li > .table-of-contents__link--active::before {
333+
left: calc(-2rem - 1px);
304334
}
305335

306336
.theme-edit-this-page svg,

0 commit comments

Comments
 (0)