forked from sunface/rust-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle3.css
118 lines (105 loc) · 2.48 KB
/
style3.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@media only screen and (max-width:1080px) {
.sidetoc {
display: none !important;
}
}
@media only screen and (min-width:1080px) {
main {
position: relative;
padding-right: 170px;
}
.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) - 10rem);
overflow: auto;
z-index: 1000;
}
.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;
}
/* 修改章节目录的间距 */
.chapter li.chapter-item {
/* 没有文件时的文字颜色 */
color: #939da3;
margin-top: 1rem;
}
/* 修改滚动条宽度 */
::-webkit-scrollbar {
width: 5px;
height: 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; }
}
/* 修改顶部图标大小 */
/* #menu-bar {
font-size: 17px;
} */
/* 修改 github 样式 */
.fa-github {
font-weight: 550;
}
.fa-github:after{
content: "繁星点点尽在你的指尖 🌟";
margin-left: 4px;
}
/* Fix on mobile device */
code {
word-break: break-word;
}
/* 修复可编辑代码框顶部过窄的问题 */
code.editable, .ace_scroller {
top: 10px;
}
/* 修改书侧边目录的区域分隔行样式 */
.chapter .spacer {
background-color: #99CCFF;
height: 2px;
margin-top: 8px;
}
.chapter li .md-viewed {
color: #777;
}