forked from sighingnow/jekyll-gitbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements the "keep the header" features requested in sighingnow#18.
Resolves sighingnow#18. Signed-off-by: Tao He <sighingnow@gmail.com>
- Loading branch information
1 parent
036963c
commit 0cbb5a2
Showing
6 changed files
with
124 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
<div class="body-inner"> | ||
<div class="book-header" role="navigation"> | ||
<!-- Title --> | ||
<h1> | ||
<i class="fa fa-circle-o-notch fa-spin"></i> | ||
{% if page.title %} | ||
<a href="." >{{ page.title | escape }}</a> | ||
{% else %} | ||
<a href="." >{{ site.title | escape }}</a> | ||
{% endif %} | ||
</h1> | ||
</div> | ||
<div class="page-wrapper" tabindex="-1" role="main"> | ||
<div class="page-inner"> | ||
<div id="book-search-results"> | ||
<div class="search-noresults"> | ||
<section class="normal markdown-section"> | ||
|
||
{% if page.title %} | ||
<h1 id="{{ page.id }}">{{ page.title | escape }}</h1> | ||
{% else %} | ||
<h1 id="{{ page.id }}">{{ site.title | escape }}</h1> | ||
{% endif %} | ||
<div class="page-wrapper" tabindex="-1" role="main"> | ||
<div class="page-inner"> | ||
<div id="book-search-results"> | ||
<div class="search-noresults"> | ||
<section class="normal markdown-section"> | ||
|
||
{{ content }} | ||
</section> | ||
</div> | ||
{% if page.title %} | ||
<h1 id="{{ page.id }}">{{ page.title | escape }}</h1> | ||
{% else %} | ||
<h1 id="{{ page.id }}">{{ site.title | escape }}</h1> | ||
{% endif %} | ||
|
||
{%- include search.html -%} | ||
{{ content }} | ||
</section> | ||
</div> | ||
|
||
{%- include search.html -%} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.book-body { | ||
overflow-y: hidden; | ||
} | ||
|
||
.book-body .book-header { | ||
position: fixed; | ||
width: calc(100% - 300px); | ||
} | ||
|
||
.book-body .body-inner { | ||
overflow-y: scroll; | ||
margin-top: 50px; | ||
height: calc(100% - 50px); | ||
min-height: calc(100% - 50px); | ||
} | ||
|
||
.book-body .body-inner .page-wrapper { | ||
min-height: calc(100% - 46px); | ||
} | ||
|
||
.book-body .body-inner .page-wrapper .page-inner { | ||
padding-bottom: 20px; | ||
} | ||
|
||
@media (max-width: 1240px) { | ||
.book-body .body-inner .navigation { | ||
max-width: calc(50% - 3px); | ||
width: calc(50% - 3px); | ||
} | ||
} | ||
|
||
|
||
/* scrollbar */ | ||
::-webkit-scrollbar { | ||
width: 5px; | ||
height: 5px; | ||
} | ||
|
||
::-webkit-scrollbar-track-piece { | ||
/* background-color: rgba(125, 125, 125, 0.2); */ | ||
-webkit-border-radius: 6px; | ||
} | ||
|
||
::-webkit-scrollbar-thumb:vertical { | ||
|
||
height: 5px; | ||
background-color: rgba(7, 17, 27, .2); | ||
-webkit-border-radius: 6px; | ||
} | ||
|
||
::-webkit-scrollbar-thumb:horizontal { | ||
width: 5px; | ||
background-color: rgba(125, 125, 125, 0.2); | ||
-webkit-border-radius: 6px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters