File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 < div id ="logo ">
33 < a href ="/ "> < span class ="logo-bold "> Type</ span > ScriptTo< span class ="logo-bold "> Lua</ span > </ a > Playground
44 </ 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 >
513</ div >
614< div id ="content ">
715 < div id ="editor-container ">
816 < div id ="editor-ts " class ="editor ">
917 </ 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 ">
1121 </ div >
1222 < div id ="editor-output " class ="editor ">
1323 < div id ="editor-output-linenumbers ">
Original file line number Diff line number Diff line change @@ -32,6 +32,28 @@ $output-height: 120px;
3232 font-weight : 400 ;
3333}
3434
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+
3557#content {
3658 height : calc (100% - #{$header-height } );
3759}
@@ -49,10 +71,21 @@ $output-height: 120px;
4971 display : inline-block ;
5072 overflow : hidden ;
5173 border-bottom : 1px $grey-accent solid ;
74+ flex : 50% ;
75+ display : none ;
5276 }
5377
54- #editor-ts , #editor-lua {
78+ #editor-ts {
5579 flex : 50% ;
80+ display : block ;
81+ }
82+
83+ .editor-lua-active {
84+ display : block ;
85+ }
86+
87+ #editor-lua-ast {
88+ overflow : scroll ;
5689 }
5790
5891 @media screen and (max-width : 600px ) {
You can’t perform that action at this time.
0 commit comments