forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelements.js
More file actions
53 lines (45 loc) · 1.35 KB
/
elements.js
File metadata and controls
53 lines (45 loc) · 1.35 KB
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
import styled from 'styled-components';
import theme from '@codesandbox/common/lib/theme';
export const Container = styled.div`
width: 100%;
height: 100%;
z-index: 30;
`;
export const CodeContainer = styled.div`
position: relative;
width: 100%;
height: 100%;
z-index: 30;
.greensquiggly {
background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23ffd399'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
repeat-x bottom left !important;
}
.jest-success {
display: flex;
align-items: center;
justify-content: center;
&:after {
content: '';
width: 50%;
height: 50%;
background-color: ${theme.green()};
border-radius: 50%;
}
}
.jest-error {
display: flex;
align-items: center;
justify-content: center;
&:after {
content: '';
width: 50%;
height: 50%;
background-color: ${theme.red()};
border-radius: 50%;
}
}
/* For retina screens we will not do subpixel anti-aliasing. That looks uglier. */
@media (-webkit-min-device-pixel-ratio: 1.5) {
-webkit-font-smoothing: auto;
}
`;