Skip to content

Commit ba0b544

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

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/css/custom.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,37 @@ 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, .tabs__item--active:hover {
313+
border-bottom-color: var(--ifm-tabs-color-active-border);
314+
background-color: var(--ifm-menu-color-background-active);
315+
}
316+
317+
.table-of-contents__link--active {
318+
position: relative;
319+
}
320+
321+
.table-of-contents__link--active::before {
322+
content: '';
323+
position: absolute;
324+
left: calc(-1rem - 1px);
325+
top: 0;
326+
bottom: 0;
327+
width: 1px;
328+
background-color: var(--ifm-color-primary);
329+
}
330+
331+
.table-of-contents > li > ul > li > .table-of-contents__link--active::before {
332+
left: calc(-2rem - 1px);
304333
}
305334

306335
.theme-edit-this-page svg,

0 commit comments

Comments
 (0)