diff --git a/app/components/loading-indicator.coffee b/app/components/loading-indicator.coffee new file mode 100644 index 00000000..b53ac20a --- /dev/null +++ b/app/components/loading-indicator.coffee @@ -0,0 +1,8 @@ +`import Ember from 'ember'` + +LoadingIndicatorComponent = Ember.Component.extend + tagName: 'div' + classNameBindings: ['center:loading-container'] + center: false + +`export default LoadingIndicatorComponent` diff --git a/app/styles/app.scss b/app/styles/app.scss index 818f6f74..828dbaf2 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -11,7 +11,7 @@ @import "app/charm"; @import "app/forms"; @import "app/github"; -@import "app/loading"; +// @import "app/loading"; @import "app/main/annotations"; @import "app/main/list"; @@ -25,6 +25,7 @@ @import "app/components/travis-switch"; @import "app/components/sync-button"; +@import "app/components/loading-indicator"; @import "app/modules/section"; @import "app/modules/loader"; diff --git a/app/styles/app/components/loading-indicator.sass b/app/styles/app/components/loading-indicator.sass new file mode 100644 index 00000000..165035ba --- /dev/null +++ b/app/styles/app/components/loading-indicator.sass @@ -0,0 +1,33 @@ +.loading-indicator + display: inline-block + vertical-align: middle + i + position: relative + display: inline-block + width: 8px + height: 8px + background-color: #A6ADAD + border-radius: 50% + line-height: 0 + transform-origin: center center + animation: bouncedelay 1.3s infinite linear + &:nth-child(2) + animation-delay: 0.3s + &:nth-child(3) + animation-delay: 0.6s + +@keyframes bouncedelay + 0%, 80%, 100% + transform: scale(0) + 40% + transform: scale(1.0) + +.loading-container + text-align: center + padding: 1.5em 1em + + +.loading-indicator--white + @extend .loading-indicator + i + background-color: $white \ No newline at end of file diff --git a/app/styles/app/components/sync-button.sass b/app/styles/app/components/sync-button.sass index 1e43cc0e..b0eddbd9 100644 --- a/app/styles/app/components/sync-button.sass +++ b/app/styles/app/components/sync-button.sass @@ -44,35 +44,3 @@ font-size: 12px color: #848384 text-align: right - -.sync-spinner - display: inline-block - vertical-align: middle - i - position: relative - display: inline-block - width: 8px - height: 8px - background-color: $white - border-radius: 50% - line-height: 0 - transform-origin: center center - animation: bouncedelay 1.3s infinite linear - &:nth-child(2) - animation-delay: 0.3s - &:nth-child(3) - animation-delay: 0.6s - -@keyframes bouncedelay - 0%, 80%, 100% - transform: scale(0) - 40% - transform: scale(1.0) - -.sync-spinner--grey - i - background-color: #A6ADAD - -.spinner-container - text-align: center - padding: 1.5em 1em diff --git a/app/styles/app/landing.sass b/app/styles/app/landing.sass index 00e5cfeb..ce186bfd 100644 --- a/app/styles/app/landing.sass +++ b/app/styles/app/landing.sass @@ -114,6 +114,10 @@ .sign-in-mascot padding-right: 10px + .loading-indicator--white + height: 1.4em; + line-height: 1; + margin-right: 0.5em; .oss-testing background-color: #ffffff diff --git a/app/styles/app/layouts/profile.sass b/app/styles/app/layouts/profile.sass index 5890bec9..d2f94471 100644 --- a/app/styles/app/layouts/profile.sass +++ b/app/styles/app/layouts/profile.sass @@ -159,7 +159,7 @@ p.profile-user-last white-space: nowrap overflow: hidden vertical-align: middle - span:not(.sync-spinner) + span:not(.loading-indicator) display: none margin-left: 2rem font-size: $font-size-sm diff --git a/app/styles/app/modules/switch.sass b/app/styles/app/modules/switch.sass index cef71fc7..b29ca7af 100644 --- a/app/styles/app/modules/switch.sass +++ b/app/styles/app/modules/switch.sass @@ -1,6 +1,5 @@ -.profile-main - +.profile-switch $switch-height: 28px $switch-inner-height: 22px $switch-width: 62px diff --git a/app/templates/account.hbs b/app/templates/account.hbs index 45eb1c2e..e77c6caf 100644 --- a/app/templates/account.hbs +++ b/app/templates/account.hbs @@ -28,7 +28,7 @@ {{#if user.isSyncing}}
{{else}} @@ -94,7 +94,7 @@{{view 'show-more-button'}} {{#if isLoading}} - + {{loading-indicator}} {{/if}}
{{/if}} {{else}} - + {{loading-indicator}} {{/if}} diff --git a/app/templates/components/build-repo-actions.hbs b/app/templates/components/build-repo-actions.hbs index 163eee0f..b38ea9ca 100644 --- a/app/templates/components/build-repo-actions.hbs +++ b/app/templates/components/build-repo-actions.hbs @@ -1,6 +1,6 @@ {{#if canCancel}} {{#if cancelling}} - + {{loading-indicator}} {{else}} @@ -11,7 +11,7 @@ {{#if canRestart}} {{#if restarting}} - + {{loading-indicator}} {{else}} diff --git a/app/templates/components/hooks-list-item.hbs b/app/templates/components/hooks-list-item.hbs index 46d6bd4c..55f94915 100644 --- a/app/templates/components/hooks-list-item.hbs +++ b/app/templates/components/hooks-list-item.hbs @@ -1,7 +1,7 @@ -