-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Playground.module.css
86 lines (74 loc) · 1.37 KB
/
Playground.module.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
83
84
85
86
:root {
--playground-main-color: var(--ifm-background-surface-color);
--playground-secondary-color: var(--ifm-color-emphasis-100);
}
.options {
background: var(--playground-main-color);
overflow: auto;
z-index: 1;
}
.sourceCode {
height: 100%;
border: 1px solid var(--playground-secondary-color);
}
.codeBlocks {
display: flex;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
flex-direction: row;
height: 100%;
width: calc(100vw - 20rem);
}
.astViewer {
height: 100%;
width: 100%;
border: 1px solid var(--playground-secondary-color);
padding: 0;
overflow: auto;
word-wrap: initial;
white-space: nowrap;
background: var(--code-editor-bg);
}
.codeContainer {
display: flex;
flex-direction: row;
position: fixed;
width: 100%;
height: calc(100% - var(--ifm-navbar-height));
top: var(--ifm-navbar-height);
z-index: calc(var(--ifm-z-index-fixed) - 1);
}
.playgroundInfoHeader {
position: sticky;
top: 0;
left: 0;
z-index: 1;
}
.tabCode {
height: calc(100% - 32px);
}
@media only screen and (max-width: 996px) {
.codeContainer {
display: block;
width: 100%;
position: static;
}
.codeBlocks {
display: block;
width: 100%;
}
.options {
display: none;
}
.tabCode {
height: calc(30rem - 3.2rem);
}
.astViewer,
.sourceCode {
height: 30rem;
}
.astViewer {
height: auto;
}
}