New Features
* Implements Terminal
This commit is contained in:
210
hg.css
210
hg.css
@@ -325,6 +325,10 @@ canvas {
|
||||
color: #ffff;
|
||||
right: 0;
|
||||
margin-right: 5px;
|
||||
padding: 5px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
||||
.ERRORS {
|
||||
@@ -344,3 +348,209 @@ canvas {
|
||||
border: 2px solid red;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Terminal Overlay Styles - ORED Initial Console Emulator Style */
|
||||
.terminal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(192, 192, 192, 0.3);
|
||||
backdrop-filter: none;
|
||||
z-index: 10001;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.terminal-window {
|
||||
width: 80%;
|
||||
max-width: 600px;
|
||||
height: 65%;
|
||||
max-height: 450px;
|
||||
min-height: 300px;
|
||||
background: #c0c0c0;
|
||||
border: 4px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
font-family: 'VCR', 'Monaco', 'Courier New', monospace;
|
||||
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.terminal-header {
|
||||
background: #c0c0c0;
|
||||
color: #000000;
|
||||
padding: 1px 0;
|
||||
border-bottom: 2px inset #c0c0c0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
font-family: 'VCR', 'Geneva', 'Helvetica', sans-serif;
|
||||
min-height: 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.terminal-title {
|
||||
color: #000000;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.terminal-close {
|
||||
cursor: pointer;
|
||||
color: #000000;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
width: 16px;
|
||||
height: 14px;
|
||||
border: 1px outset #c0c0c0;
|
||||
background: #c0c0c0;
|
||||
text-align: center;
|
||||
line-height: 12px;
|
||||
border-radius: 0;
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.terminal-close:hover {
|
||||
background: #b0b0b0;
|
||||
}
|
||||
|
||||
.terminal-close:active {
|
||||
border: 1px inset #c0c0c0;
|
||||
background: #a0a0a0;
|
||||
}
|
||||
|
||||
.terminal-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2px;
|
||||
overflow: hidden;
|
||||
background: #c0c0c0;
|
||||
}
|
||||
|
||||
#terminal-output {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 4px;
|
||||
color: #000000;
|
||||
font-size: 9px;
|
||||
line-height: 1.1;
|
||||
font-family: 'VCR', 'Monaco', 'Courier New', monospace;
|
||||
background: #c0c0c0;
|
||||
border: 2px inset #c0c0c0;
|
||||
padding: 2px 4px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.terminal-line {
|
||||
margin-bottom: 0;
|
||||
word-wrap: break-word;
|
||||
color: #000000;
|
||||
font-size: 9px;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.terminal-input-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #000000;
|
||||
font-size: 9px;
|
||||
background: #c0c0c0;
|
||||
border: 2px inset #c0c0c0;
|
||||
padding: 1px 4px;
|
||||
min-height: 14px;
|
||||
}
|
||||
|
||||
.terminal-prompt {
|
||||
color: #000000;
|
||||
margin-right: 2px;
|
||||
font-weight: normal;
|
||||
font-family: 'VCR', 'Monaco', 'Courier New', monospace;
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.terminal-input {
|
||||
flex: 1;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #000000;
|
||||
font-family: 'VCR', 'Monaco', 'Courier New', monospace;
|
||||
font-size: 9px;
|
||||
outline: none;
|
||||
caret-color: #000000;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.terminal-input::selection {
|
||||
background: #000080;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.terminal-btn {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
font-size: 16px;
|
||||
color: #565656;
|
||||
}
|
||||
|
||||
.terminal-btn:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.terminal-overlay.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Custom scrollbar for terminal output - Classic style */
|
||||
#terminal-output::-webkit-scrollbar {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-track {
|
||||
background: #c0c0c0;
|
||||
border: 1px inset #c0c0c0;
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-thumb {
|
||||
background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
|
||||
border: 1px outset #c0c0c0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-thumb:hover {
|
||||
background: linear-gradient(to bottom, #d0d0d0 0%, #b0b0b0 50%, #909090 100%);
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-thumb:active {
|
||||
border: 1px inset #c0c0c0;
|
||||
background: linear-gradient(to bottom, #a0a0a0 0%, #b0b0b0 50%, #d0d0d0 100%);
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-corner {
|
||||
background: #c0c0c0;
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-button {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
|
||||
border: 1px outset #c0c0c0;
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-button:hover {
|
||||
background: linear-gradient(to bottom, #d0d0d0 0%, #b0b0b0 50%, #909090 100%);
|
||||
}
|
||||
|
||||
#terminal-output::-webkit-scrollbar-button:active {
|
||||
border: 1px inset #c0c0c0;
|
||||
background: linear-gradient(to bottom, #a0a0a0 0%, #b0b0b0 50%, #d0d0d0 100%);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user