From baa436204ac91608430852aa541e185cef2ea89e Mon Sep 17 00:00:00 2001 From: XPoet Date: Wed, 6 Jan 2021 23:42:57 +0800 Subject: [PATCH] feat: pjax loading add animation icon --- layout/_partial/{tools.ejs => post-tools.ejs} | 0 layout/_partial/progress-bar.ejs | 2 +- layout/_partial/side-tools-container.ejs | 35 ------------------- .../_partial/{tools.styl => post-tools.styl} | 0 source/css/layout/_partial/progress-bar.styl | 2 +- source/js/utils.js | 2 +- 6 files changed, 3 insertions(+), 38 deletions(-) rename layout/_partial/{tools.ejs => post-tools.ejs} (100%) delete mode 100644 layout/_partial/side-tools-container.ejs rename source/css/layout/_partial/{tools.styl => post-tools.styl} (100%) diff --git a/layout/_partial/tools.ejs b/layout/_partial/post-tools.ejs similarity index 100% rename from layout/_partial/tools.ejs rename to layout/_partial/post-tools.ejs diff --git a/layout/_partial/progress-bar.ejs b/layout/_partial/progress-bar.ejs index 60da5cf..1d5148e 100644 --- a/layout/_partial/progress-bar.ejs +++ b/layout/_partial/progress-bar.ejs @@ -3,7 +3,7 @@ <% if (theme.pjax.enable === true) { %> - + <% } %> diff --git a/layout/_partial/side-tools-container.ejs b/layout/_partial/side-tools-container.ejs deleted file mode 100644 index 0f67ca6..0000000 --- a/layout/_partial/side-tools-container.ejs +++ /dev/null @@ -1,35 +0,0 @@ -
- -
    -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • -
- -
    -
  • - -
  • - -
-
diff --git a/source/css/layout/_partial/tools.styl b/source/css/layout/_partial/post-tools.styl similarity index 100% rename from source/css/layout/_partial/tools.styl rename to source/css/layout/_partial/post-tools.styl diff --git a/source/css/layout/_partial/progress-bar.styl b/source/css/layout/_partial/progress-bar.styl index c0b90dc..957e186 100644 --- a/source/css/layout/_partial/progress-bar.styl +++ b/source/css/layout/_partial/progress-bar.styl @@ -26,7 +26,7 @@ } - .loading-progress-circle { + .loading-progress-icon { position: absolute; top: 0; right: 0; diff --git a/source/js/utils.js b/source/js/utils.js index 353d75f..b38e7b2 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -8,7 +8,7 @@ KEEP.initUtils = () => { firstScreen_dom: document.querySelector('.first-screen-container'), scrollProgressBar_dom: document.querySelector('.scroll-progress-bar'), loadingProgressBar_dom: document.querySelector('.loading-progress-bar'), - loadingProgressCircle_dom: document.querySelector('.loading-progress-circle'), + loadingProgressCircle_dom: document.querySelector('.loading-progress-icon'), innerHeight: window.innerHeight, loadingProgressBarTimer: null,