Skip to content

Commit

Permalink
优化菜单动画, 添加Android L下chrome状态栏颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
yscoder committed Jun 21, 2016
1 parent 00c3b9a commit 886f015
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ avatar: /img/logo.jpg
# email
email: [email protected]

# 设置 Android L Chrome 浏览器状态栏颜色
color: '#3F51B5'

# Content
tags:
title: 标签
Expand Down
3 changes: 3 additions & 0 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
%>
<title><% if (title){ %><%= title %> | <% } %><%= config.title %> | <%= config.subtitle %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<% if(theme.color){ %>
<meta name="theme-color" content="<%=theme.color%>">
<% } %>
<%
var keyWords = config.keywords;
if(page.tags){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hexo-theme-material-indigo",
"version": "0.3.0",
"version": "0.3.1",
"private": true
}
6 changes: 2 additions & 4 deletions source/css/_partial/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
width: @menuWidth;
min-height: 100%;
background: #fff;
will-change: left;
box-shadow: @boxShadow;
.transition(.4s);
.transition(.4s, cubic-bezier(0.18, 0.81, 0.3, 0.89));

&.hide {
.transform(translateX(-100%));
Expand Down Expand Up @@ -206,8 +205,7 @@ a[title="站长统计"] {
.transform(translateX(-100%));

&.show {
box-shadow: @boxShadow;
.transform(none);
.transform(translateX(0));
}

}
Expand Down

0 comments on commit 886f015

Please sign in to comment.