Add: nav 导航组件当前页的提示,优化其他页面样式

This commit is contained in:
XPoet 2020-03-20 15:30:39 +08:00
parent e67890a683
commit 44d28e6ab3
4 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<div class="article-meta-info">
<!-- date -->
<span class="article-date article-meta-item">
<i class="fa fa-calendar-o"></i> <%= date(articleData.date, 'YYYY-MM-DD HH:MM:SS') %>
<i class="fa fa-calendar-o"></i> <%= date(articleData.date, 'YYYY-MM-DD HH:mm:ss') %>
</span>
<!-- categories -->

View File

@ -2,7 +2,7 @@
<ul class="menu-list">
<% for (let i in theme.menu) { %>
<li class="menu-item">
<a href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
<a class="<%- is_current(theme.menu[i]) ? 'current':'' %>" href="<%- url_for(theme.menu[i]) %>"><%= __(i.toLowerCase()) %></a>
</li>
<% } %>
</ul>

View File

@ -34,7 +34,6 @@
color: #464646;
font-size: 22px;
margin: 0;
}
a {
@ -49,10 +48,9 @@
}
}
.article-post-content {
padding 15px 0
line-height 26px
line-height 28px
}
}

View File

@ -18,7 +18,7 @@
padding-right: 20px
a {
color: #5A5A5A;
color: #6a6a6a;
&:hover {
color: #4786D6;
@ -27,7 +27,7 @@
&.current {
color: #5A5A5A;
padding-bottom: 20px;
border-bottom: 2px solid #5A5A5A;
border-bottom: 1px solid #4a4a4a;
}
}