@import 'variables'; @import 'functions'; .spinner_button { height: 10px; width: 70px; text-align: center; vertical-align: middle; > span { width: 10px; height: 10px; background-color: #fff; border-radius: 100%; -webkit-border-radius: 100%; display: inline-block; -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both; animation: sk-bouncedelay 1.4s infinite ease-in-out both; vertical-align: top; } .bounce1 { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .bounce2 { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } @at-root { @-webkit-keyframes sk-bouncedelay { 0%, 80%, 100% { -webkit-transform: scale(0) } 40% { -webkit-transform: scale(1.0) } } @keyframes sk-bouncedelay { 0%, 80%, 100% { -webkit-transform: scale(0); transform: scale(0); } 40% { -webkit-transform: scale(1.0); transform: scale(1.0); } } } } .spinner-circle { width: 40px; height: 40px; position: relative; .sk-circle { width: 100%; height: 100%; position: absolute; left: 0; top: 0; &::before { content: ''; display: block; margin: 0 auto; width: 15%; height: 15%; background-color: $TF_Admin_Highlight_Color; border-radius: 100%; -webkit-border-radius: 100%; -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both; animation: sk-circleFadeDelay 1.2s infinite ease-in-out both; } &.sk-circle2 { -webkit-transform: rotate(30deg); -ms-transform: rotate(30deg); transform: rotate(30deg); &::before { -webkit-animation-delay: -1.1s; animation-delay: -1.1s; } } &.sk-circle3 { -webkit-transform: rotate(60deg); -ms-transform: rotate(60deg); transform: rotate(60deg); &::before { -webkit-animation-delay: -1s; animation-delay: -1s; } } &.sk-circle4 { -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); &::before { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } } &.sk-circle5 { -webkit-transform: rotate(120deg); -ms-transform: rotate(120deg); transform: rotate(120deg); &::before { -webkit-animation-delay: -0.8s; animation-delay: -0.8s; } } &.sk-circle6 { -webkit-transform: rotate(150deg); -ms-transform: rotate(150deg); transform: rotate(150deg); &::before { -webkit-animation-delay: -0.7s; animation-delay: -0.7s; } } &.sk-circle7 { -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); transform: rotate(180deg); &::before { -webkit-animation-delay: -0.6s; animation-delay: -0.6s; } } &.sk-circle8 { -webkit-transform: rotate(210deg); -ms-transform: rotate(210deg); transform: rotate(210deg); &::before { -webkit-animation-delay: -0.5s; animation-delay: -0.5s; } } &.sk-circle9 { -webkit-transform: rotate(240deg); -ms-transform: rotate(240deg); transform: rotate(240deg); &::before { -webkit-animation-delay: -0.4s; animation-delay: -0.4s; } } &.sk-circle10 { -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); &::before { -webkit-animation-delay: -0.3s; animation-delay: -0.3s; } } &.sk-circle11 { -webkit-transform: rotate(300deg); -ms-transform: rotate(300deg); transform: rotate(300deg); &::before { -webkit-animation-delay: -0.2s; animation-delay: -0.2s; } } &.sk-circle12 { -webkit-transform: rotate(330deg); -ms-transform: rotate(330deg); transform: rotate(330deg); &::before { -webkit-animation-delay: -0.1s; animation-delay: -0.1s; } } } @at-root { @-webkit-keyframes sk-circleFadeDelay { 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } } @keyframes sk-circleFadeDelay { 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } } } } .spinner-container { &.qr-refresh { display: none; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 2; @media all and (max-width: $screen-xs-max) { left: auto; padding-bottom: 20px; position: static; top: auto; transform: none; text-align: center; } .spinner-circle { height: 100px; width: 100px; @media all and (max-width: $screen-xs-max) { display: inline-block; height: 150px; width: 150px; } } } &.visible { display: block; } } .token-loading { .loading-dot { opacity: .3; animation: token-loading-animation $TF_Dot_Animation_Base_Time_In_Seconds ease-in-out normal infinite !important; -webkit-animation: token-loading-animation $TF_Dot_Animation_Base_Time_In_Seconds ease-in-out normal infinite !important; } } .token-setup { .loading-dot { animation: token-loading-setup 1.2s ease-in normal 1 both; -webkit-animation: token-loading-setup 1.2s ease-in normal 1 both; } } .token-loading, .token-setup { display: none; &.play { display: inline-block; } .loading-dot { display: block; float: left; margin-right: 7px; width: 8px; height: 8px; border-radius: 50%; background-color: $TF_Dot_Far_Background_Color; opacity: 0; will-change: background-color, opacity; &:last-of-type { margin-right: 0; } &:nth-of-type(2) { animation-delay: timeToSeconds(getAnimationOffset(1)); -webkit-animation-delay: timeToSeconds(getAnimationOffset(1)); } &:nth-of-type(3) { animation-delay: timeToSeconds(getAnimationOffset(2)); -webkit-animation-delay: timeToSeconds(getAnimationOffset(2)); } &:nth-of-type(4) { animation-delay: timeToSeconds(getAnimationOffset(3)); -webkit-animation-delay: timeToSeconds(getAnimationOffset(3)); } &:nth-of-type(5) { animation-delay: timeToSeconds(getAnimationOffset(4)); -webkit-animation-delay: timeToSeconds(getAnimationOffset(4)); } &:nth-of-type(6) { animation-delay: timeToSeconds(getAnimationOffset(5)); -webkit-animation-delay: timeToSeconds(getAnimationOffset(5)); } } @at-root { @keyframes token-loading-setup { 0% { opacity: 0; } 100% { opacity: .3; } } @-webkit-keyframes token-loading-setup { 0% { opacity: 0; } 100% { opacity: .3; } } @keyframes token-loading-animation { 0%, 100% { opacity: .3; background-color: $TF_Dot_Far_Background_Color; } 16.67%, 83.33% { opacity: .5; background-color: $TF_Dot_Far_Background_Color; } 33.33%, 66.67% { opacity: .8; background-color: $TF_Dot_Near_Background_Color; } 50% { opacity: 1; background-color: $TF_Dot_Active_Background_Color; } } @-webkit-keyframes token-loading-animation { 0%, 100% { opacity: .3; background-color: $TF_Dot_Far_Background_Color; } 16.67%, 83.33% { opacity: .5; background-color: $TF_Dot_Far_Background_Color; } 33.33%, 66.67% { opacity: .8; background-color: $TF_Dot_Near_Background_Color; } 50% { opacity: 1; background-color: $TF_Dot_Active_Background_Color; } } } }