mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-17 08:05:19 +00:00
Mark as disabled articles not yet finished in the summary
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -46,7 +46,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
a, span {
|
||||
display: block;
|
||||
height: 40px;
|
||||
padding: 11px 15px;
|
||||
@@ -60,6 +60,11 @@
|
||||
padding-left: 26px;
|
||||
}
|
||||
|
||||
span {
|
||||
cursor: not-allowed;
|
||||
.opacity(0.3);
|
||||
}
|
||||
|
||||
&.active > a, a:hover {
|
||||
background: #242628;
|
||||
text-decoration: none;
|
||||
|
||||
@@ -12,16 +12,24 @@
|
||||
</li>
|
||||
{% for item in summary.chapters %}
|
||||
<li {% if item._path == _input %}class="active"{% endif %} data-level="{{ item.level }}">
|
||||
{% if item.path %}
|
||||
<a href="{{ basePath }}/{{ item.path }}">
|
||||
<i class="fa fa-check"></i> <b>{{ item.level }})</b> {{ item.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<span><b>{{ item.level }})</b> {{ item.title }}</span>
|
||||
{% endif %}
|
||||
{% if item.articles.length > 0 %}
|
||||
<ul class="articles">
|
||||
{% for article in item.articles %}
|
||||
<li {% if article._path == _input %}class="active"{% endif %} data-level="{{ article.level }}">
|
||||
{% if article.path %}
|
||||
<a href="{{ basePath }}/{{ article.path }}">
|
||||
<i class="fa fa-check"></i> <b>{{ article.level }})</b> {{ article.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<span><b>{{ article.level }})</b> {{ article.title }}</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user