From bd28460e4999c3cb2b488864fda24328635894b0 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 13 Apr 2020 20:37:08 +0800 Subject: [PATCH] cover menu --- layout/_cover/index.ejs | 2 +- source/css/_layout/cover.styl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/_cover/index.ejs b/layout/_cover/index.ejs index 1bfe495..a8a2757 100755 --- a/layout/_cover/index.ejs +++ b/layout/_cover/index.ejs @@ -33,7 +33,7 @@ target="<%- value.target %>" <% } %> id="<%= url_for(value.url).replace(/\/|%|\./g, "")?url_for(value.url).replace(/\/|%|\./g, ""):"home" %>"> -  <%= __('navbar.'+value.name) == ('navbar.'+value.name) ? value.name : __('navbar.'+value.name) %> + <% if (value.icon) { %><% } %><%- value.name %> <%})%> diff --git a/source/css/_layout/cover.styl b/source/css/_layout/cover.styl index 9509ebf..b766001 100644 --- a/source/css/_layout/cover.styl +++ b/source/css/_layout/cover.styl @@ -141,6 +141,8 @@ color: alpha($color-site-inner, .65) text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) border-bottom: 2px solid transparent + i + margin-right: 4px &:hover, &.active, &:active color: $color-site-inner border-bottom: 2px solid $color-site-inner