Skip to content

Commit 7a0c2a3

Browse files
authored
docs: improve footer & fix toc-affix (#6883)
1 parent 72e148c commit 7a0c2a3

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

site/src/layouts/index.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ export default defineComponent({
298298
});
299299
</script>
300300
<style lang="less" scoped>
301+
.toc-affix {
302+
background-color: rgba(0, 0, 0, 0);
303+
backdrop-filter: blur(10px);
304+
}
305+
301306
.toc-affix :deep(.ant-anchor) {
302307
font-size: 12px;
303308
max-width: 110px;
@@ -309,13 +314,4 @@ export default defineComponent({
309314
display: none;
310315
}
311316
}
312-
313-
[data-theme='dark'] .toc-affix :deep(.ant-anchor) {
314-
.ant-anchor-link {
315-
border-left: 2px solid #303030;
316-
}
317-
.ant-anchor-link-active {
318-
border-left: 2px solid #177ddc;
319-
}
320-
}
321317
</style>

site/src/theme/static/page-nav.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.prev-next-nav {
2-
width: ~'calc(100% - 128px)';
3-
margin-right: 64px;
2+
margin-right: 170px;
43
margin-left: 64px;
54
overflow: hidden;
65
font-size: 14px;

site/src/theme/static/responsive.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
padding-right: 48px;
1818
padding-left: 48px;
1919
}
20+
.prev-next-nav {
21+
margin-right: 48px;
22+
margin-left: 48px;
23+
}
2024
.code-boxes-col-2-1,
2125
.code-boxes-col-1-1 {
2226
float: none;

0 commit comments

Comments
 (0)