Skip to content

Commit

Permalink
style(.pace-progress): default color & box-shadow
Browse files Browse the repository at this point in the history
Style form GitHub.com
  • Loading branch information
MOxFIVE committed Mar 23, 2016
1 parent 94f4f53 commit dd6fd7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 4 additions & 5 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
<% if (theme.jquery_ui){ %>
<link href="//cdn.bootcss.com/jqueryui/1.10.4/css/jquery-ui.min.css" rel="stylesheet">
<% } %>
<% if (theme.progressBar.on) { %>
<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<link href="//cdn.bootcss.com/pace/1.0.2/themes/<%= theme.progressBar.color || 'blue'%>/pace-theme-<%= theme.progressBar.type || 'minimal'%>.css" rel="stylesheet">
<% } %>
<%- css('css/style') %>
<% if (is_home() && theme.animate){ %>
<style> .article { opacity: 0;} </style>
Expand Down Expand Up @@ -86,9 +90,4 @@
})();
</script>
<% } %>

<% if (theme.progressBar.on) { %>
<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<link href="//cdn.bootcss.com/pace/1.0.2/themes/<%= theme.progressBar.color || 'blue'%>/pace-theme-<%= theme.progressBar.type || 'minimal'%>.css" rel="stylesheet">
<% } %>
</head>
10 changes: 9 additions & 1 deletion source/css/_partial/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,12 @@ if hexo-config("jquery_ui")
background rgba(0, 0, 0, .65)

body .ui-tooltip
border 1px solid white
border 1px solid white


if hexo-config("progressBar.on") && hexo-config("progressBar.type") == "minimal"
bar-color = hexo-config("progressBar.color")
if bar-color == "blue"
.pace .pace-progress
background #77b6ff
box-shadow 0 0 10px rgba(@background, .7)

1 comment on commit dd6fd7e

@MOxFIVE
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style from GitHub.com
snip20160324_23

Please sign in to comment.