disable unfinished link in top nav

This commit is contained in:
afc163 2015-06-09 17:30:03 +08:00
parent 9062597658
commit a2ad793ff7
2 changed files with 9 additions and 6 deletions

View File

@ -45,16 +45,13 @@
<a href="/components">组件</a> <a href="/components">组件</a>
</li> </li>
<li class="{%- if post.filename === 'design' %}current{%- endif %}"> <li class="{%- if post.filename === 'design' %}current{%- endif %}">
<a href="/docs/design">设计</a> <a class="disabled" href="/docs/design">设计</a>
</li> </li>
<li class="{%- if post.filename === 'modes' %}current{%- endif %}"> <li class="{%- if post.filename === 'modes' %}current{%- endif %}">
<a href="/docs/modes">模式</a> <a class="disabled" href="/docs/modes">模式</a>
</li> </li>
<li class="{%- if post.filename === 'cases' %}current{%- endif %}"> <li class="{%- if post.filename === 'cases' %}current{%- endif %}">
<a href="/docs/cases">案例</a> <a class="disabled" href="/docs/cases">案例</a>
</li>
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
<a href="/docs/download">下载</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -247,6 +247,12 @@ a.logo {
display: block; display: block;
} }
.nav ul li a.disabled {
cursor: not-allowed;
color: #ddd !important;
pointer-events: none;
}
.nav ul li.current a { .nav ul li.current a {
color: #71B5DE; color: #71B5DE;
font-weight: bold; font-weight: bold;