From a2c91be5a3c99a89769cdbf5eeba552bd92f2f7a Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 19 May 2016 10:03:48 +0300 Subject: [PATCH 1/3] Fix reload gulp task --- build/tasks/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index 5dfdf2cb..9062edf0 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -31,7 +31,7 @@ gulp.task('rebuild', function(done) { return runSequence( 'bundle', 'concatDeps', - callback + done ); }); From 1eb38a8701fe3ee7e56cbc2a5fa93ee7d3a2f155 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 19 May 2016 10:04:54 +0300 Subject: [PATCH 2/3] Enhance loading animation --- .../Redoc/redoc-loading-styles.scss | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/lib/components/Redoc/redoc-loading-styles.scss b/lib/components/Redoc/redoc-loading-styles.scss index df8bea85..a9da11a6 100644 --- a/lib/components/Redoc/redoc-loading-styles.scss +++ b/lib/components/Redoc/redoc-loading-styles.scss @@ -4,22 +4,19 @@ redoc.loading { min-height:350px; } -@keyframes move { - 0% {transform: translateY(10px)} - 25% {transform: translateY(0px)} - 50% {transform: translateY(10px)} - 75% {transform: translateY(20px)} - 100% {transform: translateY(10px)} +@keyframes rotate { + 0% {transform: rotate(0deg)} + 100% {transform: rotate(360deg)} } redoc.loading:before { - font-family: Montserrat; - content: "Loading..."; - font-size: 28px; + font-family: Helvetica; + content: "Loading"; + font-size: 24px; text-align: center; padding-top: 40px; color: #0033a0; - font-weight: bold; + font-weight: normal; display: block; position: absolute; top: 0; @@ -30,9 +27,24 @@ redoc.loading:before { z-index: 9999; opacity: 1; transition: all 0.6s ease-out; - animation: 2s move linear infinite; } -redoc.loading-remove:before { +redoc.loading:after { + z-index: 10000; + background-image: url('data:image/svg+xml;utf8,'); + animation: 2s rotate linear infinite; + width: 50px; + height: 50px; + position: absolute; + content: ""; + left: 50%; + margin-left: -25px; + background-size: cover; + top: 75px; + transition: all 0.6s ease-out; + opacity: 1; +} + +redoc.loading-remove:before, redoc.loading-remove:after { opacity: 0; } From 22525960637fb1823096a6af0b73bd023314dce0 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 19 May 2016 10:05:28 +0300 Subject: [PATCH 3/3] minor bump version (v0.11.1) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a5678844..e91e47c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "redoc", "description": "Swagger-generated API Reference Documentation", - "version": "0.11.0", + "version": "0.11.1", "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc"