replacing gitalk with giscus comments

This commit is contained in:
sunface
2022-03-25 13:56:40 +08:00
parent 9904ae6c7d
commit 23678f2c0f
6 changed files with 242 additions and 148 deletions

View File

@ -19,7 +19,7 @@
.pagetoc {
position: fixed;
width: 200px;
height: calc(100vh - var(--menu-bar-height) - 0.67em * 4);
height: calc(100vh - var(--menu-bar-height) - 10rem);
overflow: auto;
z-index: 1000;
}
@ -57,15 +57,25 @@
.chapter li.chapter-item {
/* 没有文件时的文字颜色 */
color: #939da3;
margin-top: 1.2rem;
margin-top: 1rem;
}
/* 修改滚动条宽度 */
::-webkit-scrollbar {
width: 7px;
width: 5px;
}
/* 表格靠左对齐 */
table {
margin-left: 0 !important;
}
}
/* 只使用底部的页面跳转,因为左右两边的宽跳转会被 page-toc 遮盖 */
@media only screen and (max-width: 2560px) {
.nav-wide-wrapper { display: none; }
.nav-wrapper { display: block; }
}
@media only screen and (max-width: 2560px) {
.sidebar-visible .nav-wide-wrapper { display: none; }
.sidebar-visible .nav-wrapper { display: block; }
}