Skip to content

Commit 86ff360

Browse files
author
Jean-Baptiste Doderlein
committed
fix autoscroll + clean css
1 parent be75bad commit 86ff360

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

src/css/index.css

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -620,86 +620,6 @@ py-terminal {
620620

621621
/* Syntax highligthing */
622622

623-
.caml {
624-
color: var(--code-caml);
625-
}
626-
627-
.stderr {
628-
color: var(--code-error);
629-
}
630-
631-
.stdout {
632-
color: var(--code-text-color);
633-
}
634-
635-
.errorloc {
636-
border-bottom-color: var(--code-error);
637-
}
638-
639-
.sharp .id {
640-
color: var(--code-variable);
641-
}
642-
643-
.sharp .kw0 {
644-
color: var(--code-keyword);
645-
}
646-
647-
.sharp .kw1 {
648-
color: var(--code-keyword);
649-
}
650-
651-
.sharp .kw2 {
652-
color: var(--code-builtin);
653-
}
654-
655-
.sharp .kw3 {
656-
color: var(--code-builtin);
657-
}
658-
659-
.sharp .kw4 {
660-
color: var(--code-builtin);
661-
}
662-
663-
.sharp .comment {
664-
color: var(--code-comment);
665-
font-style: italic;
666-
}
667-
668-
.sharp .string {
669-
color: var(--code-string);;
670-
}
671-
672-
.sharp .text {
673-
color: var(--code-text-color);
674-
}
675-
676-
.sharp .numeric {
677-
color: var(--code-number);
678-
}
679-
680-
.sharp .directive {
681-
font-style: italic;
682-
color: var(--code-def);
683-
}
684-
685-
.sharp .escape {
686-
color: var(--code-escape);
687-
}
688-
689-
.sharp .symbol0 {
690-
color: var(--code-symbol);
691-
font-weight: bold;
692-
}
693-
694-
.sharp .symbol1 {
695-
color: var(--code-symbol);
696-
font-weight: bold;
697-
}
698-
699-
.sharp .constant {
700-
color: var(--code-constant);
701-
}
702-
703623
.CodeMirror .cm-keyword {
704624
color: var(--code-keyword)
705625
}

src/js/editor_change.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let clean_content = function (content) {
4949
* Auto scroll down output interpreter
5050
*/
5151
function autoscroll_output() {
52-
let container = document.getElementById("toplevel-container");
52+
let container = document.getElementsByClassName("xterm-viewport")[0];
5353
container.scrollTop = container.scrollHeight;
5454
}
5555

0 commit comments

Comments
 (0)