Updated terminal style

This commit is contained in:
Prozilla 2023-07-21 18:46:03 +02:00
parent a2dd052658
commit 1f70f610f7
No known key found for this signature in database
GPG key ID: 5858DFE71CAF31EE
4 changed files with 21 additions and 3 deletions

View file

@ -68,5 +68,7 @@
}
.Window-content {
position: relative;
overflow: hidden;
height: 100%;
}

View file

@ -14,7 +14,9 @@ function InputLine({ value, prefix, onChange, onKeyUp, onKeyDown }) {
return (
<span className={styles.Input}>
{prefix && <p className={[styles.Prefix]}>{prefix}</p>}
<label for="input"/>
<input
id="input"
value={value}
onChange={onChange}
onKeyUp={onKeyUp}

View file

@ -6,6 +6,10 @@
height: 100%;
}
.Terminal * {
font-family: var(--mono-font-family);
}
.Terminal p {
margin: 0;
}
@ -30,5 +34,14 @@
border: none;
outline: none;
font-size: inherit;
margin-left: 0.15rem;
margin-left: 0.45rem;
}
.Input label {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
cursor: text;
}

View file

@ -28,8 +28,9 @@
--background-color-c: var(--dark-grey-d);
--body-font-family: "Poppins", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
--mono-font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
@font-face {