diff --git a/assets/styles/app.scss b/assets/styles/app.scss index 0b163e8..0e7beb0 100644 --- a/assets/styles/app.scss +++ b/assets/styles/app.scss @@ -217,28 +217,10 @@ } .status { - position: relative; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - &:not(:last-child) { margin-bottom: $block-spacing; } - .status-spinner { - margin-top: 1.5rem; - &:after { - content: ''; - display: block; - height: 40px; - width: 40px; - background-image: url('../img/logo.svg'); - animation: spinAroundReverse 2000ms infinite linear; - } - } - .status-message { color: $primary; text-align: center; @@ -249,6 +231,42 @@ } } +.loading-overlay { + &.is-full-page { + .loading-background { + background:rgba(0,0,0,0.85); + } + } + .loading-container { + position: relative; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + .loading-tornado { + &:after { + content: ''; + display: block; + height: 60px; + width: 60px; + background-image: url('../img/logo.svg'); + animation: spinAroundReverse 2000ms infinite linear; + } + } + + .loading-message { + padding-top: .5rem; + color: $primary; + text-align: center; + + &.is-danger { + color: $danger; + } + } + } +} + @keyframes spinAroundReverse { from { transform: rotate(359deg); } diff --git a/pages/make-contribution.vue b/pages/make-contribution.vue index 0c55f1f..3e35311 100644 --- a/pages/make-contribution.vue +++ b/pages/make-contribution.vue @@ -40,9 +40,8 @@ -