diff options
-rw-r--r-- | assets/stylesheets/book/progress.less | 5 | ||||
-rw-r--r-- | templates/page.html | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/assets/stylesheets/book/progress.less b/assets/stylesheets/book/progress.less index a17af6d..c3887c6 100644 --- a/assets/stylesheets/book/progress.less +++ b/assets/stylesheets/book/progress.less @@ -14,6 +14,7 @@ .book .book-body { @chapter-size: 16px; + @bar-background: #eee; .book-progress { @@ -65,6 +66,10 @@ background: @bar-background; box-shadow: 0px 0px 1px #bbb; + &.new-chapter { + + } + &.done { background: @brand-success; box-shadow: none; diff --git a/templates/page.html b/templates/page.html index 6d548d0..01868cb 100644 --- a/templates/page.html +++ b/templates/page.html @@ -15,7 +15,7 @@ </div> <div class="chapters"> {% for p in progress.chapters %} - <div class="chapter {% if p.done %}done{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></div> + <a href="{{ basePath }}/{{ p.path }}" title="{{ p.title }}" class="chapter {% if p.done %}done{% endif %} {% if p.level.length == 1 %}new-chapter{% endif %}" data-progress="{{ p.level }}" style="left: {{ p.percent }}%;"></a> {% endfor %} </div> </div> |