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 ); }); 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; } 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"