File tree 1 file changed +15
-13
lines changed
1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 5
5
@import ' ./footer.less' ;
6
6
@import ' ./sidebar.less' ;
7
7
8
+ // width
9
+ @page_sidebar_width : 12rem ;
10
+
8
11
// color
9
12
@text_color : #3e3e3e ;
10
13
@title_color : #142848 ;
16
19
17
20
// animation_fadein_300
18
21
@animation_fadein_300 : fadeIn 0.3s ;
22
+
19
23
/* * documentation list **/
20
24
.blog ,
21
25
.doc ,
38
42
39
43
.sidebar ,
40
44
.sidebar-page {
41
- flex : 0 0 @sidebar_width ;
42
45
min-height : calc (~ ' 100vh - @{footer_height_pc} ' );
46
+
47
+ & .sidebar {
48
+ flex : 0 0 @sidebar_width ;
49
+ }
43
50
}
44
51
45
52
.sidebar-page {
46
- // display: flex;
47
- // flex-direction: column;
48
-
53
+ flex : 0 0 @page_sidebar_width ;
49
54
.improve-doc ,
50
55
.toc-title {
51
56
margin-bottom : 12px ;
288
293
margin-left : -5px ;
289
294
}
290
295
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
+ }
294
301
}
295
302
}
296
303
305
312
306
313
@media (max-width : 480px ) {
307
314
.blog .sidebar ,
308
- .blog .sidebar-page ,
309
315
.doc .sidebar ,
310
- .doc .sidebar-page ,
311
316
.meetup .sidebar ,
312
- .meetup .sidebar-page ,
313
317
.recruit .sidebar ,
314
- .recruit .sidebar-page ,
315
- .weekly .sidebar ,
316
- .weekly .sidebar-page {
318
+ .weekly .sidebar {
317
319
min-height : 100% ;
318
320
}
319
321
}
You can’t perform that action at this time.
0 commit comments