diff --git a/TODO b/TODO index dfc1fb2c..96f514ab 100644 --- a/TODO +++ b/TODO @@ -13,7 +13,6 @@ first major release. - tags: add tag edit snapshots (backed-only) - misc: endless pager should include information about page number - misc: add spinner to forms such as registration, login, settings... -- misc: improve throbber appearance - post notes - "add note" in sidebar creates new note in the middle of image @@ -29,6 +28,4 @@ first major release. refactors: - add enum validation in IValidatables (needs refactors of enums and possible disposal of EnumHelper in favor of something more subtle) - - change content spinner to nprogress: http://ricostacruz.com/nprogress/ - (unsure) - reduce dependencies diff --git a/gruntfile.js b/gruntfile.js index 1ae841f1..27142db4 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -83,6 +83,8 @@ module.exports = function(grunt) { { src: 'node_modules/pathjs/path.js', dest: 'public_html/lib/path.js' }, { src: 'node_modules/underscore/underscore-min.js', dest: 'public_html/lib/underscore.min.js' }, { src: 'node_modules/marked/lib/marked.js', dest: 'public_html/lib/marked.js' }, + { src: 'node_modules/nprogress/nprogress.js', dest: 'public_html/lib/nprogress.js' }, + { src: 'node_modules/nprogress/nprogress.css', dest: 'public_html/lib/nprogress.css' }, ] } }, diff --git a/package.json b/package.json index b430333b..b2aba74a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "underscore": "1.7.0", "mousetrap": "git://github.com/ccampbell/mousetrap.git", "marked": "~0.3.2", + "nprogress": "git://github.com/rstacruz/nprogress.git", "requirejs": "*", "ini": "*", diff --git a/public_html/css/core.css b/public_html/css/core.css index 88c63a46..305e7d6e 100644 --- a/public_html/css/core.css +++ b/public_html/css/core.css @@ -73,42 +73,6 @@ hr { outline: 0; } -#wait-cover { - display: flex; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - width: 100%; - height: 100%; - min-height: 25em; - background: rgba(255, 255, 255, 0.7); - z-index: 100; -} -#wait .spinner { - margin: auto; - padding: 1em 2em; - box-shadow: 0 0 1em 1em rgba(255, 255, 255, 0.5); - background: rgba(255, 255, 255, 0.5); - color: #888; -} -#wait .spinner .fa { - font-size: 42px; -} -#wait p { - font-size: 15px; -} - -.pagination-target .spinner { - display: none; - color: #888; - text-align: center; -} -.pagination-target .spinner .fa { - font-size: 28px; -} - span.spoiler:before { content: '['; color: #000; diff --git a/public_html/index.html b/public_html/index.html index eba9e20f..827a43fc 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -20,6 +20,8 @@ + +