nose-pluto/src/css/terminal.css
Chris Wanstrath 3f9db13192 status line!
2025-10-02 14:07:55 -07:00

178 lines
3.3 KiB
CSS

:root {
--cli-spacing-vertical: 5px;
--cli-spacing-horizontal: 5px;
--cli-margin: 5px 0 0 25px;
--cli-font-size: 20px;
--cli-height: 30px;
--cli-status-width: 8px;
--cli-margin-left: 20px;
}
#command-line {
position: relative;
display: inline-block;
width: 100%;
font-size: var(--cli-font-size);
}
#command-line[data-extended="true"] {
border-bottom: 2px solid var(--c64-light-blue);
}
#command-prompt {
position: absolute;
top: 5px;
}
#command-cursor {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
color: var(--c64-light-blue);
pointer-events: none;
background: transparent;
padding: var(--cli-spacing-vertical) var(--cli-spacing-horizontal);
resize: none;
overflow: hidden;
font: inherit;
letter-spacing: inherit;
line-height: inherit;
min-height: var(--cli-height);
width: 100%;
box-shadow: none;
box-sizing: border-box;
outline: 0;
border: none;
margin-left: var(--cli-margin-left);
animation: blink 1s steps(1) infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
#command-textbox {
position: relative;
z-index: 2;
caret-color: transparent;
display: block;
background: transparent;
padding: var(--cli-spacing-vertical) var(--cli-element-spacing-horizontal);
resize: none;
overflow: hidden;
font: inherit;
letter-spacing: inherit;
line-height: inherit;
min-height: var(--cli-height);
width: 100%;
box-shadow: none;
box-sizing: border-box;
outline: 0;
border: none;
margin: var(--cli-margin);
}
#command-hint {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
color: #666;
pointer-events: none;
background: transparent;
padding: var(--cli-spacing-vertical) var(--cli-spacing-horizontal);
resize: none;
overflow: hidden;
font: inherit;
letter-spacing: inherit;
line-height: inherit;
min-height: var(--cli-height);
width: 100%;
box-shadow: none;
box-sizing: border-box;
outline: 0;
border: none;
margin-left: var(--cli-margin-left);
}
/* The scrollback shows your previous inputs and outputs. */
#scrollback {
overflow: auto;
/* Firefox */
scrollbar-width: none;
/* IE/Edge */
-ms-overflow-style: none;
overflow-y: auto;
margin: 0;
padding: 0;
/* max-height: 95vh; */
height: 95vh;
/* Adjust 1.5em to match your line height */
padding-bottom: calc(95vh - 1.5em);
font-size: var(--cli-font-size);
}
#scrollback::-webkit-scrollbar {
/* Chrome, Safari, Opera */
display: none;
}
[data-mode="cinema"] #scrollback {
height: 505px;
padding-bottom: calc(505px - 1.5em);
}
#scrollback li {
list-style: none;
margin: 0;
}
#scrollback .center {
text-align: center;
}
#scrollback .output a {
margin-right: 15px;
}
#scrollback .input .content {
margin-left: var(--cli-status-width);
}
#scrollback .output {
white-space: pre-wrap;
}
#statusline {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 2px 8px;
background: var(--c64-light-gray);
color: var(--c64-dark-blue);
font-size: 14px;
display: flex;
justify-content: space-between;
}