File tree 7 files changed +3707
-188
lines changed
7 files changed +3707
-188
lines changed Original file line number Diff line number Diff line change 2
2
< div id ="logo ">
3
3
< a href ="/ "> < span class ="logo-bold "> Type</ span > ScriptTo< span class ="logo-bold "> Lua</ span > </ a > Playground
4
4
</ div >
5
+ < div id ="lua-tabs ">
6
+ < div id ="lua-tab-text " class ="lua-tab lua-tab-active ">
7
+ TEXT
8
+ </ div >
9
+ < div id ="lua-tab-ast " class ="lua-tab ">
10
+ AST
11
+ </ div >
12
+ </ div >
5
13
</ div >
6
14
< div id ="content ">
7
15
< div id ="editor-container ">
8
16
< div id ="editor-ts " class ="editor ">
9
17
</ div >
10
- < div id ="editor-lua " class ="editor ">
18
+ < div id ="editor-lua " class ="editor editor-lua-active ">
19
+ </ div >
20
+ < div id ="editor-lua-ast " class ="editor ">
11
21
</ div >
12
22
< div id ="editor-output " class ="editor ">
13
23
< div id ="editor-output-linenumbers ">
Original file line number Diff line number Diff line change @@ -32,6 +32,28 @@ $output-height: 120px;
32
32
font-weight : 400 ;
33
33
}
34
34
35
+ #lua-tabs {
36
+ position : absolute ;
37
+ top : 10px ;
38
+ right : 10px ;
39
+ height : $header-height ;
40
+ font-weight : 300 ;
41
+ font-size : 20px ;
42
+ }
43
+
44
+ .lua-tab {
45
+ display : inline-block ;
46
+ width : 40px ;
47
+ height : $header-height ;
48
+ color : $grey-accent ;
49
+ margin-left : 10px ;
50
+ }
51
+
52
+ .lua-tab-active {
53
+ font-weight : 400 ;
54
+ color : $body-font-color ;
55
+ }
56
+
35
57
#content {
36
58
height : calc (100% - #{$header-height } );
37
59
}
@@ -49,10 +71,21 @@ $output-height: 120px;
49
71
display : inline-block ;
50
72
overflow : hidden ;
51
73
border-bottom : 1px $grey-accent solid ;
74
+ flex : 50% ;
75
+ display : none ;
52
76
}
53
77
54
- #editor-ts , #editor-lua {
78
+ #editor-ts {
55
79
flex : 50% ;
80
+ display : block ;
81
+ }
82
+
83
+ .editor-lua-active {
84
+ display : block ;
85
+ }
86
+
87
+ #editor-lua-ast {
88
+ overflow : scroll ;
56
89
}
57
90
58
91
@media screen and (max-width : 600px ) {
You can’t perform that action at this time.
0 commit comments