#blanket { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba($bg-well, .6); overflow: hidden; z-index: 400; } .blanket.inline { position: relative; width: 100%; height: 100px; overflow: hidden; } #spinner { position: absolute; top: 50%; top: calc(50% - 37px); left: 50%; left: calc(50% - 100px); display: block; width: 200px; height: 75px; div { position: absolute; width: 4%; margin-top: 18%; border-radius: 2px; background: $accent-primary; animation: squeeze 1s linear infinite forwards; /* stylelint-disable declaration-block-single-line-max-declarations, declaration-block-semicolon-space-after, block-opening-brace-space-before */ &:nth-of-type(1) { left: 3%; height: 61%; margin-top: 9.2%; animation-delay: 0s; } &:nth-of-type(2) { left: 9%; height: 60%; margin-top: 14.4%; animation-delay: .0625; } &:nth-of-type(3) { left: 15%; height: 67%; margin-top: 6.3%; animation-delay: .125s; } &:nth-of-type(4) { left: 21%; height: 62%; margin-top: 9.2%; animation-delay: .1875s; } &:nth-of-type(5) { left: 27%; height: 70%; margin-top: 9.2%; animation-delay: .25s; } &:nth-of-type(6) { left: 33%; height: 80%; margin-top: 0%; animation-delay: .3125s; } &:nth-of-type(7) { left: 39%; height: 70%; margin-top: 9.2%; animation-delay: .375s; } &:nth-of-type(8) { left: 45%; height: 62%; margin-top: 9.2%; animation-delay: .4375s; } &:nth-of-type(9) { left: 51%; height: 62%; margin-top: 9.2%; animation-delay: .5s; } &:nth-of-type(10) { left: 57%; height: 60%; margin-top: 14.4%; animation-delay: .5625s; } &:nth-of-type(11) { left: 63%; height: 67%; margin-top: 6.3%; animation-delay: .625s; } &:nth-of-type(12) { left: 69%; height: 62%; margin-top: 9.2%; animation-delay: .6875s; } &:nth-of-type(13) { left: 75%; height: 70%; margin-top: 9.2%; animation-delay: .75s; } &:nth-of-type(14) { left: 81%; height: 80%; margin-top: 0%; animation-delay: .8125s; } &:nth-of-type(15) { left: 87%; height: 70%; margin-top: 9.2%; animation-delay: .875s; } &:nth-of-type(16) { left: 93%; height: 61%; margin-top: 9.2%; animation-delay: .9375s; } /* stylelint-enable */ } } @keyframes squeeze { 0%, 20%, 100% { transform: scaleY(1); } 10% { transform: scaleY(.5); } }