@principal-ade/industry-themed-terminal
Version:
Industry-themed terminal wrapper with integrated theming for xterm.js
115 lines (95 loc) • 2.74 kB
CSS
/* src/styles/terminal-theme.css */
.terminal-container-fix {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.terminal-container-fix .xterm {
font-variant-ligatures: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
width: 100%;
height: 100%;
margin: 0;
padding: 5px 0 0 5px;
}
.xterm-helper-textarea {
position: absolute ;
opacity: 0 ;
z-index: -5 ;
white-space: nowrap ;
overflow: hidden ;
resize: none ;
width: 0 ;
height: 0 ;
top: 0 ;
left: -9999em ;
}
.xterm-viewport {
overflow-y: auto ;
overflow-x: hidden ;
}
.terminal-container-fix .xterm-viewport {
scrollbar-width: thin;
overflow-y: overlay ;
overflow-y: auto ;
}
.terminal-container-fix .xterm-viewport::-webkit-scrollbar {
background: none;
width: 10px;
}
.terminal-container-fix .xterm-viewport::-webkit-scrollbar-track {
background: #0000001a;
border-radius: 10px;
}
.terminal-container-fix .xterm-viewport::-webkit-scrollbar-thumb {
background: #fff3 padding-box content-box;
border: 2px solid #0000;
border-radius: 10px;
}
.terminal-container-fix .xterm-viewport::-webkit-scrollbar-thumb:hover {
background: #ffffff4d padding-box content-box;
}
.terminal-container-fix .xterm-viewport::-webkit-scrollbar-thumb:active {
background: #fff6 padding-box content-box;
}
.terminal-container-fix.hide-scrollbar .xterm-viewport {
scrollbar-width: none;
-ms-overflow-style: none;
}
.terminal-container-fix.hide-scrollbar .xterm-viewport::-webkit-scrollbar {
display: none;
}
.terminal-container-fix.thin-scrollbar .xterm-viewport::-webkit-scrollbar {
width: 4px;
}
.terminal-container-fix.thin-scrollbar .xterm-viewport::-webkit-scrollbar-track {
background: none;
}
.terminal-container-fix.thin-scrollbar .xterm-viewport::-webkit-scrollbar-thumb {
background: #ffffff26;
border-radius: 4px;
}
.terminal-container-fix.auto-hide-scrollbar .xterm-viewport::-webkit-scrollbar {
opacity: 0;
width: 10px;
transition: opacity .3s;
}
.terminal-container-fix.auto-hide-scrollbar:hover .xterm-viewport::-webkit-scrollbar {
opacity: 1;
}
.terminal-container-fix.auto-hide-scrollbar .xterm-viewport::-webkit-scrollbar-thumb {
background: #fff0;
transition: background .3s;
}
.terminal-container-fix.auto-hide-scrollbar:hover .xterm-viewport::-webkit-scrollbar-thumb {
background: #fff3;
}
:root {
--terminal-bg: #1e1e1e;
--terminal-fg: #ccc;
--terminal-border: #3c3c3c;
--terminal-header-bg: #2d2d2d;
--terminal-font-family: "Menlo", "Monaco", "Courier New", monospace;
--terminal-font-size: 14px;
}