File size: 1,679 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
import styled, { createGlobalStyle } from 'styled-components';
export const LockBody = createGlobalStyle`
body {
overflow: hidden;
}
`;
export const ReleaseBody = createGlobalStyle`
body {
overflow: visible;
}
`;
export const Spinner = styled.div`
position: fixed;
width: 100%;
height: 100%;
background-color: black;
z-index: 999;
:after {
content: '';
position: absolute;
top: 50%;
left: 50%;
background-image: url(/images/misc/spinner.png);
background-size: contain;
background-repeat: no-repeat;
margin-top: -150px;
margin-left: -75px;
width: 150px;
height: 150px;
animation-name: spin;
animation-duration: 1000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@-ms-keyframes spin {
from {
-ms-transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
}
}
@-moz-keyframes spin {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
}
}
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
`;
export const Picture = styled.img`
width: 50px;
height: 50px;
position: absolute;
top: 50%;
left: 50%;
margin-top: -100px;
margin-left: -22px;
`; |