-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
72 lines (67 loc) · 1.13 KB
/
main.css
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
html, head, body {
background: #111;
color: #fff;
margin: 0;
font-family: Roboto;
}
body {
display: flex;
flex-direction: row;
}
#preview {
flex: 2;
position: relative;
}
#tools {
flex: 1;
display: flex;
align-items: center;
}
#tools > div {
width: 100%;
max-width: 400px;
}
#preview > canvas.tex {
display: none;
opacity: .5;
}
#preview > canvas {
border-radius: 3px;
position: absolute;
top: 50%;
left: 95%;
transform: translateX(-100%) translateY(-50%);
}
#preview.text > canvas.tex {
background: #000;
border: 1px solid rgba(255, 255, 255, .2);
box-shadow: 0 2px 8px rgba(255, 255, 255, .05);
display: block;
}
#preview.notext > canvas.gl {
background: #000;
border: 1px solid rgba(255, 255, 255, .2);
box-shadow: 0 2px 8px rgba(255, 255, 255, .05);
}
@media (max-width: 800px) {
body {
flex-direction: column;
}
#preview {
flex: min(100vw, 600px) 0;
}
#preview > canvas {
top: 95%;
left: 50%;
transform: translateX(-50%) translateY(-100%);
}
#tools {
align-items: start;
}
#tools > div {
margin: 0 auto;
}
}
.close-button {
display: none
}