forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.ts
More file actions
46 lines (39 loc) · 836 Bytes
/
elements.ts
File metadata and controls
46 lines (39 loc) · 836 Bytes
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
import styled, { keyframes } from 'styled-components';
const fadeInAnimation = keyframes`
0% { opacity: 0 }
100% { opacity: 1 }
`;
export const Container = styled.div`
height: 100%;
width: 100%;
background-color: white;
display: flex;
flex-direction: column;
`;
export const StyledFrame = styled.iframe`
border-width: 0px;
width: 100%;
height: 100%;
min-height: 0;
overflow: auto;
`;
export const Loading = styled.div`
animation: ${fadeInAnimation} 0.2s;
animation-fill-mode: forwards;
position: absolute;
top: 35px;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.75);
padding: 2rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 300;
color: white;
line-height: 1.3;
text-align: center;
z-index: 10;
`;