-
Notifications
You must be signed in to change notification settings - Fork 8
/
playground.css
82 lines (77 loc) · 1.1 KB
/
playground.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
73
74
75
76
77
78
79
80
81
82
@import url('./normalize.min.css');
/* font */
body, h1 {
font-family: sans-serif;
font-size: 14px;
line-height: 24px;
}
h1 {
display: inline;
font-weight: normal;
}
textarea {
font-family: monospace;
}
pre {
white-space: pre-wrap;
word-break: break-all;
}
/* color */
body {
color: #333;
background-color: #fff;
}
.stdout {
color: #333;
}
.stderr {
color: #c33;
}
.info {
color: #33c;
}
.stdout.subprocess {
color: #999;
}
.stderr.subprocess {
color: #c99;
}
#loading {
background-color: #fffc;
}
/* flex */
body {
display: flex;
flex-direction: column;
height: calc(var(--vh, 1vh) * 100);
}
header {
flex-grow: 0;
height: 48px;
}
main {
flex-grow: 1;
display: flex;
}
main > textarea {
flex-grow: 0;
width: 50%;
}
aside {
flex-grow: 0;
width: 50%;
height: calc(var(--vh, 1vh) * 100 - 48px * 2);
overflow: auto;
}
footer {
flex-grow: 0;
height: 48px;
}
#loading {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
position: absolute;
}