/* needed to position the spinner correctly */
.loading {
    position: relative;
}

/* credit: http://stephanwagner.me/only-css-loading-spinner */
@keyframes spinner {
    to { transform: rotate(360deg); }
}
@-webkit-keyframes spinner {
    to { -webkit-transform: rotate(360deg); }
}
.spinner2 {
    min-width: 24px;
    min-height: 24px;
}
.spinner2:before {
    content:'Loading…';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -10px;
    margin-left: -10px;
}
.spinner2:not(:required):before {
    content: '';
    border-radius: 50%;
    border-top: 2px solid #03ade0;
    border-right: 2px solid transparent;
    animation: spinner .6s linear infinite;
    -webkit-animation: spinner .6s linear infinite;
}