From dd6fd7ea02bc1d7d913b4d510ceb730de7694b86 Mon Sep 17 00:00:00 2001 From: MOxFIVE Date: Thu, 24 Mar 2016 01:36:28 +0800 Subject: [PATCH] style(.pace-progress): default color & box-shadow Style form GitHub.com --- layout/_partial/head.ejs | 9 ++++----- source/css/_partial/main.styl | 10 +++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index d8a2c7ac9..e5add0504 100644 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -34,6 +34,10 @@ <% if (theme.jquery_ui){ %> <% } %> + <% if (theme.progressBar.on) { %> + + + <% } %> <%- css('css/style') %> <% if (is_home() && theme.animate){ %> @@ -86,9 +90,4 @@ })(); <% } %> - - <% if (theme.progressBar.on) { %> - - - <% } %> \ No newline at end of file diff --git a/source/css/_partial/main.styl b/source/css/_partial/main.styl index dd5260dab..62e9e946a 100644 --- a/source/css/_partial/main.styl +++ b/source/css/_partial/main.styl @@ -355,4 +355,12 @@ if hexo-config("jquery_ui") background rgba(0, 0, 0, .65) body .ui-tooltip - border 1px solid white \ No newline at end of file + 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) \ No newline at end of file