[javascript] terminal emulator: max width 60em

This commit is contained in:
Alexander Wunschik
2022-03-29 23:07:54 +02:00
parent 7b0fc56b0d
commit 306e420869
2 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
:root {
--terminal-font: 1em "Lucida Console", "Courier New", monospace;
--terminal-font: 1rem "Lucida Console", "Courier New", monospace;
--background-color: transparent;
--text-color: var(--text);
--prompt-char: '$ ';
@@ -10,12 +10,15 @@
* If you wan t to overwrite them use custom properties (variables).
*/
.terminal {
display: block;
font: var(--terminal-font);
background-color: var(--background-color);
color: var(--text-color);
overflow-y: scroll;
width: max-content;
width: 100%;
max-width: 60rem;
margin: 0 auto;
}
/* The terminal consits of multiple "line" elements