44
55.navbar-icon-links .fa-github {
66 font-size : 3em !important ; /* 比默认大一点 */
7+ }
8+
9+ /* 隐藏空的 Section Navigation */
10+ .sidebar-primary-items__start .bd-docs-nav {
11+ display : none !important ;
12+ }
13+
14+ /* 优化布局:更好地利用页面空间 */
15+ @media (min-width : 992px ) {
16+ /* 减少左侧边栏宽度 */
17+ .bd-sidebar-primary {
18+ width : 220px !important ;
19+ min-width : 220px !important ;
20+ }
21+
22+ /* 调整主内容区域 */
23+ .bd-main {
24+ margin-left : 220px !important ;
25+ }
26+
27+ /* 增加内容区域的最大宽度 */
28+ .bd-content {
29+ max-width : calc (100vw - 300px ) !important ;
30+ }
31+
32+ .bd-article-container {
33+ max-width : none !important ;
34+ }
35+ }
36+
37+ /* 在更大屏幕上进一步优化 */
38+ @media (min-width : 1400px ) {
39+ .bd-sidebar-primary {
40+ width : 200px !important ;
41+ min-width : 200px !important ;
42+ }
43+
44+ .bd-main {
45+ margin-left : 200px !important ;
46+ }
47+
48+ .bd-content {
49+ max-width : calc (100vw - 280px ) !important ;
50+ }
51+
52+ /* 调整页面容器 */
53+ .bd-page-width {
54+ max-width : none !important ;
55+ }
56+ }
57+
58+ /* 隐藏空的 Section Navigation */
59+ .sidebar-primary-items__start .bd-docs-nav {
60+ display : none !important ;
61+ }
62+
63+ /* 优化布局:减少左侧边栏宽度,增加主内容区域宽度 */
64+ .bd-sidebar-primary {
65+ width : 200px !important ;
66+ min-width : 200px !important ;
67+ }
68+
69+ /* 调整主内容区域,让它能利用更多空间 */
70+ .bd-main {
71+ margin-left : 200px !important ;
72+ max-width : calc (100% - 200px ) !important ;
73+ }
74+
75+ /* 在较大屏幕上进一步优化 */
76+ @media (min-width : 1200px ) {
77+ .bd-container__inner {
78+ max-width : none !important ;
79+ padding-left : 20px ;
80+ padding-right : 20px ;
81+ }
82+
83+ .bd-content {
84+ max-width : none !important ;
85+ }
86+
87+ .bd-article {
88+ max-width : none !important ;
89+ }
90+ }
91+
92+ /* 调整文章容器的最大宽度 */
93+ .bd-article-container {
94+ max-width : none !important ;
95+ }
96+
97+ /* 确保在宽屏上内容可以充分利用空间 */
98+ @media (min-width : 1400px ) {
99+ .bd-main {
100+ margin-left : 180px !important ;
101+ }
102+
103+ .bd-sidebar-primary {
104+ width : 180px !important ;
105+ min-width : 180px !important ;
106+ }
7107}
0 commit comments