Updated terminal style
This commit is contained in:
parent
a2dd052658
commit
1f70f610f7
4 changed files with 21 additions and 3 deletions
|
|
@ -68,5 +68,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.Window-content {
|
.Window-content {
|
||||||
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
@ -14,7 +14,9 @@ function InputLine({ value, prefix, onChange, onKeyUp, onKeyDown }) {
|
||||||
return (
|
return (
|
||||||
<span className={styles.Input}>
|
<span className={styles.Input}>
|
||||||
{prefix && <p className={[styles.Prefix]}>{prefix}</p>}
|
{prefix && <p className={[styles.Prefix]}>{prefix}</p>}
|
||||||
|
<label for="input"/>
|
||||||
<input
|
<input
|
||||||
|
id="input"
|
||||||
value={value}
|
value={value}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
onKeyUp={onKeyUp}
|
onKeyUp={onKeyUp}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Terminal * {
|
||||||
|
font-family: var(--mono-font-family);
|
||||||
|
}
|
||||||
|
|
||||||
.Terminal p {
|
.Terminal p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -30,5 +34,14 @@
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-size: inherit;
|
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;
|
||||||
}
|
}
|
||||||
|
|
@ -28,8 +28,9 @@
|
||||||
--background-color-c: var(--dark-grey-d);
|
--background-color-c: var(--dark-grey-d);
|
||||||
|
|
||||||
--body-font-family: "Poppins", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
--body-font-family: "Poppins", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||||
sans-serif;
|
--mono-font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||||
|
monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue