@@ -222,37 +222,20 @@ main.view-output {
222222}
223223
224224/* --- Editor --------------------------------------------------------*/
225- .editor {
226- /* padding-top: var(--editor-padding);*/
225+ .editor-wrap {
226+ padding : var (--editor-padding );
227+ padding-bottom : var (--editor-padding-bottom );
227228 font-size : 1rem ;
228229 flex : 1 ;
229- overflow : clip ;
230+ overflow : auto ;
230231 width : var (--editor-width );
231232}
232- /*.editor textarea {
233- padding-left: var(--editor-padding);
234- padding-right: var(--editor-padding);
233+ # editor {
235234 color : var (--color );
236235 background : var (--bg );
237236 font-size : 1rem ;
238237 font-family : var (--ff-code );
239238 font-variant-ligatures : none;
240- overflow: auto;
241-
242- resize: none;
243- outline: none;
244- -webkit-text-fill-color: var(--ccolor);
245- height: 100%;
246- width: 100%;
247- border: none;
248- padding-bottom: var(--editor-padding-bottom);
249- }
250- */
251- /*TODO: change from ID to class .editor*/
252- # editor {
253- color : var (--color );
254- background : var (--bg );
255- font-family : "Fira Code" , monospace;
256239 position : relative;
257240 overflow : hidden;
258241}
@@ -266,11 +249,12 @@ main.view-output {
266249 height : 100% ;
267250 z-index : 1 ;
268251 resize : none;
269- caret-color : hsl ( 0 deg 0 % 100 % );
252+ caret-color : var ( --color );
270253 padding : inherit;
271254 outline : none;
272255 font-size : inherit;
273256 font-family : inherit;
257+ font-variant-ligatures : inherit;
274258 border : none;
275259 top : 0px ;
276260 left : 0px ;
@@ -283,10 +267,12 @@ main.view-output {
283267 white-space : pre-wrap;
284268 word-break : keep-all;
285269 padding : 0 ;
286- width : 100 % ;
270+ width : max-content ;
287271 margin : 0 ;
272+ font-size : inherit;
273+ font-family : inherit;
274+ font-variant-ligatures : inherit;
288275 pointer-events : none;
289- overflow-wrap : break-word;
290276 font-family : inherit;
291277 overflow : auto;
292278}
@@ -300,7 +286,7 @@ main.view-output {
300286}
301287# editor pre .lines .num {
302288 position : aboslute;
303- color : # 6e7781 ;
289+ color : hsl ( 212 deg 8 % 47 % ) ;
304290 left : 0 ;
305291}
306292# editor pre .lines .txt {
@@ -309,29 +295,30 @@ main.view-output {
309295}
310296# editor .num ,
311297# editor .bool {
312- color : # 80ccff ;
298+ color : hsl ( 204 deg 100 % 75 % ) ;
313299}
314300# editor .str {
315- color : # b6e3ff ;
301+ color : hsl ( 203 deg 100 % 86 % ) ;
316302}
317- # editor .ident {
318- color : # d8b9ff ;
303+ # editor .func {
304+ color : hsl ( 266 deg 100 % 86 % ) ;
319305}
320306# editor .builtin {
321- color : # ffb77c ;
307+ color : hsl ( 27 deg 100 % 74 % ) ;
322308}
323309# editor .keyword {
324- color : # ff8182 ;
310+ color : hsl ( 359 deg 100 % 75 % ) ;
325311}
326- # editor .illegal {
327- color : # ffadda ;
312+ # editor .error {
313+ background : hsl (209deg 100% 33% );
314+ color : hsl (0 0% 100% );
328315 font-style : italic;
329316}
330317# editor .op {
331- color : # ff8182 ;
318+ color : hsl ( 359 deg 100 % 75 % ) ;
332319}
333320# editor .comment {
334- color : # afb8c1 ;
321+ color : hsl ( 210 deg , 13 % , 72 % ) ;
335322 font-style : italic;
336323 font-weight : 300 ;
337324}
0 commit comments