mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.4 KiB
65 lines
1.4 KiB
3 years ago
|
@media only screen and (max-width:1080px) {
|
||
|
.sidetoc {
|
||
|
display: none !important;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@media only screen and (min-width:1080px) {
|
||
|
main {
|
||
|
position: relative;
|
||
3 years ago
|
padding-right: 170px;
|
||
3 years ago
|
}
|
||
|
.sidetoc {
|
||
|
margin-left: auto;
|
||
|
margin-right: auto;
|
||
|
/*left: calc(100% + (var(--content-max-width))/4 - 180px);*/
|
||
|
left: calc(100% - 200px);
|
||
|
position: absolute;
|
||
|
}
|
||
|
.pagetoc {
|
||
|
position: fixed;
|
||
|
width: 200px;
|
||
|
height: calc(100vh - var(--menu-bar-height) - 0.67em * 4);
|
||
|
overflow: auto;
|
||
|
}
|
||
|
.pagetoc a {
|
||
|
border-left: 1px solid var(--sidebar-bg);
|
||
|
color: var(--fg) !important;
|
||
|
display: block;
|
||
|
padding-bottom: 5px;
|
||
|
padding-top: 5px;
|
||
|
padding-left: 10px;
|
||
|
text-align: left;
|
||
|
text-decoration: none;
|
||
|
font-size: 1.2rem;
|
||
|
}
|
||
|
.pagetoc a:hover,
|
||
|
.pagetoc a.active {
|
||
|
background: var(--sidebar-bg);
|
||
|
color: var(--sidebar-fg) !important;
|
||
|
}
|
||
|
.pagetoc .active {
|
||
|
background: var(--sidebar-bg);
|
||
|
color: var(--sidebar-fg);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.page-footer {
|
||
|
margin-top: 50px;
|
||
|
border-top: 1px solid #ccc;
|
||
|
overflow: hidden;
|
||
|
padding: 10px 0;
|
||
|
color: gray;
|
||
3 years ago
|
}
|
||
|
|
||
|
/* 修改章节目录的间距 */
|
||
|
.chapter li.chapter-item {
|
||
|
/* 没有文件时的文字颜色 */
|
||
|
color: #939da3;
|
||
|
margin-top: 1.2rem;
|
||
|
}
|
||
|
|
||
|
/* 修改滚动条宽度 */
|
||
|
::-webkit-scrollbar {
|
||
|
width: 7px;
|
||
3 years ago
|
}
|