/* Table of Contents ================================================== # Keyframes # Loader # Colors */ /* # Keyframes ================================================== */ @-webkit-keyframes loader-spinner { 0% { @include transform(0); } 100% { @include transform(360deg); } } @keyframes loader-spinner { 0% { @include transform(0); } 100% { @include transform(360deg); } } /* # Loader ================================================== */ .loader-backdrop, .loader-bar { height: 2px; left: 0; pointer-events: none; position: fixed; right: 0; top: 0; width: 100%; z-index: 9999; } .loader-backdrop { height: 2px; background: $color-light-haze; } .loader-bar { background: $color-primary; } .loader-peg { box-shadow: 0 0 10px $color-primary, 0 0 5px $color-primary; display: block; height: 100%; opacity: 1; pointer-events: none; position: absolute; right: 0; @include transform(rotate(3deg) translate(0, -4px)); width: 100px; } .loader-spinner { display: block; pointer-events: none; position: fixed; right: 15px; top: 15px; z-index: 9999; } .loader-spinner-icon { @include animation(loader-spinner 400ms linear infinite); border: solid 2px $color-transparent; border-left-color: $color-primary; border-top-color: $color-primary; border-radius: 500px; box-sizing: border-box; height: 18px; pointer-events: none; width: 18px; } /* # Colors ================================================== */ .loader-dark { background: $color-black; } .loader-light { background: $color-haze; }