-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from yanm1ng/develop
Version 2.0
- Loading branch information
Showing
10 changed files
with
168 additions
and
72 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
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,10 @@ | ||
<aside class="catalog-container"> | ||
<div class="toc-main"> | ||
<strong class="toc-title">Catalog</strong> | ||
<% if (toc(page.content) !== ""){ %> | ||
<%- toc(page.content, { "class": "toc-nav", "list_number": false }) %> | ||
<% } else { %> | ||
<ol class="nav"><%= __('none') %></ol> | ||
<% } %> | ||
</div> | ||
</aside> |
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,38 @@ | ||
.catalog-container | ||
display: block | ||
margin-left: 20px | ||
flex-basis: 280px | ||
-webkit-flex-basis: 280px | ||
flex-shrink: 0 | ||
-webkit-flex-shrink: 0 | ||
@media m-pad | ||
display: none | ||
.fixed-toc | ||
position: fixed | ||
top: 90px | ||
.toc-main | ||
padding-left: 20px | ||
border-left: 1px solid color-border | ||
width: 280px | ||
box-sizing: border-box | ||
.toc-title | ||
font-size: 1.2em | ||
position: relative | ||
padding-left: 28px | ||
&:before | ||
content: '' | ||
position: absolute | ||
width: 22px | ||
height: 22px | ||
left: 0 | ||
top: 2px | ||
background: url(catalog-url) no-repeat | ||
background-size: contain | ||
.toc-nav | ||
padding: 0 | ||
margin-top: 1em | ||
ol | ||
padding-left: 20px | ||
li | ||
list-style-type: none | ||
line-height: 1.5 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.