Skip to content

Commit c7106b4

Browse files
committed
vuepress active-header-links plugin properly works with this theme
1 parent 3f8c299 commit c7106b4

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Page.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,15 @@ export default {
252252
253253
&__heading {
254254
width: 50%;
255-
padding: 4rem 3rem 0;
255+
padding: 0;
256256
overflow: auto;
257257
background-color: #fafafa;
258+
259+
h1
260+
h2
261+
h3 {
262+
padding: 4rem 3rem 0;
263+
}
258264
}
259265
260266
&__body {

components/Sidebar/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
]"
2121
>
2222
<div class="category__label">
23-
<NavLink :to="sidebarGroupItem.to">{{
23+
<NavLink class="sidebar-link" :to="sidebarGroupItem.to">{{
2424
title(sidebarGroupItem.title || sidebarGroupOrder[index])
2525
}}</NavLink>
2626
</div>
@@ -42,7 +42,7 @@
4242
]"
4343
>
4444
<div class="category__label">
45-
<NavLink :to="`${sidebarGroupItem.to}#${header.slug}`">{{
45+
<NavLink class="sidebar-link" :to="`${sidebarGroupItem.to}#${header.slug}`">{{
4646
title(header.title)
4747
}}</NavLink>
4848
</div>
@@ -65,7 +65,7 @@
6565
]"
6666
>
6767
<div class="category__label">
68-
<NavLink :to="child.to">{{ title(child.title) }}</NavLink>
68+
<NavLink class="sidebar-link" :to="child.to">{{ title(child.title) }}</NavLink>
6969
</div>
7070
<div
7171
v-if="child.headers && child.headers.length"
@@ -79,7 +79,7 @@
7979
]"
8080
>
8181
<div class="category__header-item">
82-
<NavLink :to="`${child.to}#${header.slug}`">{{
82+
<NavLink class="sidebar-link" :to="`${child.to}#${header.slug}`">{{
8383
title(header.title)
8484
}}</NavLink>
8585
</div>

0 commit comments

Comments
 (0)