Browse Source

fix header nav style

pull/4/head
afc163 10 years ago
parent
commit
1c25b1b50c
  1. 5
      static/style.css
  2. 19
      theme/templates/layout.html

5
static/style.css

@ -151,6 +151,11 @@ header {
width: 16.66%;
text-align: center;
}
.nav ul li.current {
border-top: 3px solid #71B5DE;
height: 84px;
line-height: 84px;
}
.nav ul li a {
color: #728AA3;
width: 100%;

19
theme/templates/layout.html

@ -24,19 +24,24 @@
</form>
</div>
<nav class="nav">
<span class="bar"></span>
<ul>
<li><a href="/">首页</a>
<li class="{%- if post.filename === 'index' %}current{%- endif %}">
<a href="/">首页</a>
</li>
<li><a href="/docs/instruction">原则</a>
<li class="{%- if post.filename === 'instruction' %}current{%- endif %}">
<a href="/docs/instruction">原则</a>
</li>
<li><a href="/components/button">组件</a>
<li class="{%- if post.meta.template === 'component' %}current{%- endif %}">
<a href="/components/button">组件</a>
</li>
<li><a href="/docs/modes">模式</a>
<li class="{%- if post.filename === 'modes' %}current{%- endif %}">
<a href="/docs/modes">模式</a>
</li>
<li><a href="/docs/cases">案例</a>
<li class="{%- if post.filename === 'cases' %}current{%- endif %}">
<a href="/docs/cases">案例</a>
</li>
<li><a href="/docs/download">下载</a>
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
<a href="/docs/download">下载</a>
</li>
</ul>
</nav>

Loading…
Cancel
Save