Skip to content

Commit 314da82

Browse files
committed
polish: minor change in doc sidebar width
1 parent 1a49a15 commit 314da82

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/less/doc.less

+15-13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
@import './footer.less';
66
@import './sidebar.less';
77

8+
// width
9+
@page_sidebar_width: 12rem;
10+
811
// color
912
@text_color: #3e3e3e;
1013
@title_color: #142848;
@@ -16,6 +19,7 @@
1619

1720
// animation_fadein_300
1821
@animation_fadein_300: fadeIn 0.3s;
22+
1923
/** documentation list **/
2024
.blog,
2125
.doc,
@@ -38,14 +42,15 @@
3842

3943
.sidebar,
4044
.sidebar-page {
41-
flex: 0 0 @sidebar_width;
4245
min-height: calc(~'100vh - @{footer_height_pc}');
46+
47+
&.sidebar {
48+
flex: 0 0 @sidebar_width;
49+
}
4350
}
4451

4552
.sidebar-page {
46-
// display: flex;
47-
// flex-direction: column;
48-
53+
flex: 0 0 @page_sidebar_width;
4954
.improve-doc,
5055
.toc-title {
5156
margin-bottom: 12px;
@@ -288,9 +293,11 @@
288293
margin-left: -5px;
289294
}
290295

291-
.sidebar-page {
292-
min-height: calc(~'100vh - 280px');
293-
overflow: auto;
296+
&.doc {
297+
.sidebar-page {
298+
min-height: calc(~'100vh - 280px');
299+
overflow: auto;
300+
}
294301
}
295302
}
296303

@@ -305,15 +312,10 @@
305312

306313
@media (max-width: 480px) {
307314
.blog .sidebar,
308-
.blog .sidebar-page,
309315
.doc .sidebar,
310-
.doc .sidebar-page,
311316
.meetup .sidebar,
312-
.meetup .sidebar-page,
313317
.recruit .sidebar,
314-
.recruit .sidebar-page,
315-
.weekly .sidebar,
316-
.weekly .sidebar-page {
318+
.weekly .sidebar {
317319
min-height: 100%;
318320
}
319321
}

0 commit comments

Comments
 (0)