/* codetube
 *  Copyright (C) 2011 payload payload@lavabit.com
 *  Copyright (C) 2011 dodo dodo.the.last@gmail.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>
 */


.spinner
    position absolute
    .frame
        position        absolute
        font-size       1.2em
        text-align      center
        vertical-align  center
        font-family     monospace
        opacity         1

.spinner.waiting

    .frame:nth-child(1)
        animation:s1 0.5s step-end infinite
    .frame:nth-child(2)
        animation:s2 0.5s step-end infinite
    .frame:nth-child(3)
        animation:s3 0.5s step-end infinite
    .frame:nth-child(4)
        animation:s4 0.5s step-end infinite



@keyframes s1

    0%
        opacity:1
    25%
        opacity:0
    50%
        opacity:0
    75%
        opacity:0
    100%
        opacity:1


@keyframes s2

    0%
        opacity:0
    25%
        opacity:1
    50%
        opacity:0
    75%
        opacity:0
    100%
        opacity:0


@keyframes s3

    0%
        opacity:0
    25%
        opacity:0
    50%
        opacity:1
    75%
        opacity:0
    100%
        opacity:0


@keyframes s4

    0%
        opacity:0
    25%
        opacity:0
    50%
        opacity:0
    75%
        opacity:1
    100%
        opacity:0

