diff options
Diffstat (limited to 'common/CSS/pandoc.css')
-rw-r--r-- | common/CSS/pandoc.css | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/common/CSS/pandoc.css b/common/CSS/pandoc.css index a7e500b..27ec33c 100644 --- a/common/CSS/pandoc.css +++ b/common/CSS/pandoc.css | |||
@@ -549,17 +549,6 @@ a:hover { | |||
549 | content: '-'; | 549 | content: '-'; |
550 | } | 550 | } |
551 | 551 | ||
552 | nav { | ||
553 | position: sticky; | ||
554 | top: 100px; | ||
555 | margin-top: 150px; | ||
556 | display: inline-block; | ||
557 | /* order: 1; */ | ||
558 | float: left; | ||
559 | box-sizing: border-box; | ||
560 | max-width: 15%; | ||
561 | } | ||
562 | |||
563 | body { | 552 | body { |
564 | display: flex; | 553 | display: flex; |
565 | flex-direction: column; | 554 | flex-direction: column; |
@@ -573,4 +562,37 @@ body { | |||
573 | margin: 0 auto; | 562 | margin: 0 auto; |
574 | box-sizing: border-box; | 563 | box-sizing: border-box; |
575 | max-width: 40em; | 564 | max-width: 40em; |
565 | } | ||
566 | |||
567 | /* my set */ | ||
568 | |||
569 | /* 侧边栏 */ | ||
570 | .side-menu { | ||
571 | position: sticky; | ||
572 | float: left; | ||
573 | /* 上边没有东西时,距离顶部100px | ||
574 | * 有东西时,维持100px距离 | ||
575 | */ | ||
576 | top: 100px; | ||
577 | margin-top: 100px; | ||
578 | /* border-box使元素的内边距和边框不会撑大元素的尺寸 */ | ||
579 | box-sizing: border-box; | ||
580 | |||
581 | /* 自身尺寸 */ | ||
582 | width: 300px; | ||
583 | max-height: 600px; | ||
584 | overflow-y: auto; | ||
585 | |||
586 | /* 颜色与内部设置 */ | ||
587 | background-color: #f0f0f0; | ||
588 | border: 1px solid #daa520; | ||
589 | padding-top: 30px; | ||
590 | padding-right: 20px; | ||
591 | padding-bottom: 20px; | ||
592 | } | ||
593 | |||
594 | #toggle-nav { | ||
595 | position: absolute; | ||
596 | top: 10px; | ||
597 | right: 10px; | ||
576 | } \ No newline at end of file | 598 | } \ No newline at end of file |