Permalink
Browse files

style(.pace-progress): default color & box-shadow

Style form GitHub.com
  • Loading branch information...
MOxFIVE committed Mar 23, 2016
1 parent 94f4f53 commit dd6fd7ea02bc1d7d913b4d510ceb730de7694b86
Showing with 13 additions and 6 deletions.
  1. +4 −5 layout/_partial/head.ejs
  2. +9 −1 source/css/_partial/main.styl
View
@@ -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>
@@ -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>
@@ -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

This comment has been minimized.

Show comment
Hide comment
@MOxFIVE

MOxFIVE Mar 23, 2016

Owner

Style from GitHub.com
snip20160324_23

Owner

MOxFIVE commented on dd6fd7e Mar 23, 2016

Style from GitHub.com
snip20160324_23

Please sign in to comment.