i18n
xaoxuu 6 years ago
parent 864705c655
commit 0af654ea96
  1. 7
      layout/_partial/header.ejs
  2. 20
      source/js/app.js
  3. 4
      source/less/_header.less

@ -7,9 +7,10 @@
<% if (config.nav_menu) { %>
<% (config.nav_menu || []).forEach(function(value){ %>
<li>
<a class="nav<%- url_for(path).substring(0, url_for(path).lastIndexOf('/') + 1) == url_for(value.url) ? ' current' : '' %> flat-box" href="<%= url_for(value.url) %>">
<i class='<%=value.icon%> fa-fw'></i>&nbsp;<%=value.name%>
</a>
<a id="<%= is_current(value.url) ? 'is_current' : 'not_current' %>"
class="nav<%= is_current(value.url) ? ' current ' : ' ' %>flat-box" href="<%= url_for(value.url) %>">
<i class='<%=value.icon%> fa-fw'></i>&nbsp;<%=value.name%>
</a>
</li>
<%})%>
<% } %>

@ -12,6 +12,26 @@ var customSearch;
document.onkeydown = function() {
if (event.keyCode == 9) {
return false;
} else {
var isie = (document.all) ? true: false;
var key;
var ev;
if (isie) { //IE浏览器
key = window.event.keyCode;
ev = window.event;
} else { //火狐浏览器
key = e.which;
ev = e;
}
if (key == 9) { //IE浏览器
if (isie) {
ev.keyCode = 0;
ev.returnValue = false;
} else { //火狐浏览器
ev.which = 0;
ev.preventDefault();
}
}
}
}

@ -82,6 +82,10 @@
border-bottom: 4px solid @theme_base_card_bg;
background: fade(@theme_base_card_bg, 10%);
}
&.active{
color: @theme_text_in_header;
border-bottom: 4px solid @theme_base_card_bg;
}
}
@media(max-width: @on_phone){
display:none;

Loading…
Cancel
Save