mirror of
https://github.com/DumbWareio/DumbTerm.git
synced 2026-01-21 03:14:19 +08:00
1021 lines
22 KiB
CSS
1021 lines
22 KiB
CSS
/* NerdFont Integration */
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-Regular.ttf') format('truetype');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: block; /* Block render text until font loads */
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-Medium.ttf') format('truetype');
|
|
font-weight: 500;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-Bold.ttf') format('truetype');
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
/* Other weights can use swap strategy since they're less critical */
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-Light.ttf') format('truetype');
|
|
font-weight: 300;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-SemiBold.ttf') format('truetype');
|
|
font-weight: 600;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFontMono-Retina.ttf') format('truetype');
|
|
font-weight: 450;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'FiraCode Nerd Font';
|
|
src: url('/assets/fonts/FiraCodeNerdFont-Regular.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
:root, [data-theme="light"] {
|
|
/* Light theme variables */
|
|
--primary: #2196F3;
|
|
--primary-hover: #1976D2;
|
|
--secondary-color: #e5e7eb;
|
|
--background: #f5f5f5;
|
|
--container: white;
|
|
--text: #333;
|
|
--border: #ccc;
|
|
--shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
--transition: 0.2s ease;
|
|
--terminal-tabs-container: #f0f0f0;
|
|
--terminal-bg: #FCFCFC;
|
|
--terminal-active:rgba(33, 149, 243, 0.8);
|
|
--terminal-text: #2C2C2C;
|
|
--terminal-cursor: gray;
|
|
--terminal-selection: rgba(33, 149, 243, 0.3);
|
|
--terminal-border: rgba(0, 0, 0, 0.1);
|
|
--btn-default:rgba(231, 229, 229, 0.5);
|
|
--terminal-font: 'FiraCode Nerd Font', Menlo, Monaco, 'Courier New', monospace;
|
|
--tooltip-bg: rgba(0, 0, 0, 0.7);
|
|
--tooltip-text: #fff;
|
|
--accent-color: var(--primary);
|
|
--input-element-transition: background-color 0.2s ease;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--background: #1a1a1a;
|
|
--container: #2d2d2d;
|
|
--secondary-color: #374151;
|
|
--text: white;
|
|
--border: #404040;
|
|
--shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
--terminal-tabs-container: #101010;
|
|
--terminal-bg: #1F1F1F;
|
|
--terminal-active:rgba(33, 149, 243, 0.5);
|
|
--terminal-text: #E0E0E0;
|
|
--terminal-cursor: gray;
|
|
--terminal-selection: rgba(33, 149, 243, 0.2);
|
|
--terminal-border: rgba(255, 255, 255, 0.1);
|
|
--btn-default:rgba(231, 229, 229, 0.3);
|
|
--tooltip-bg: rgba(255, 255, 255, 0.85);
|
|
--tooltip-text: #333;
|
|
--accent-color: var(--primary);
|
|
}
|
|
|
|
/* Base styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background: var(--background);
|
|
color: var(--text);
|
|
transition: background var(--transition), color var(--transition);
|
|
min-height: 100vh;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Main content */
|
|
main {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Container styling */
|
|
.container {
|
|
position: relative;
|
|
background: var(--container);
|
|
padding: 2rem 1rem 1.5rem;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
width: calc(100% - 2rem);
|
|
max-width: 85%;
|
|
min-height: 0;
|
|
height: calc(100vh - 2rem);
|
|
max-height: calc(100vh - 2rem);
|
|
transition: background var(--transition), box-shadow var(--transition);
|
|
margin: 1rem auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header-top {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: absolute;
|
|
left: 1rem;
|
|
right: 1rem;
|
|
top: 0;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
/* padding: 0.5rem; */
|
|
color: var(--text-color);
|
|
border-radius: 8px;
|
|
transition: var(--input-element-transition);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: absolute;
|
|
right: 1rem;
|
|
top: 1rem;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
color: var(--text-color);
|
|
border-radius: 8px;
|
|
transition: var(--input-element-transition);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
#terminal {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
background: var(--terminal-bg);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
margin-top: 0.5rem;
|
|
min-height: 0;
|
|
height: calc(100% - 3rem);
|
|
max-height: calc(100% - 3rem);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
border: 1px solid var(--terminal-border);
|
|
}
|
|
|
|
.xterm {
|
|
height: 100%;
|
|
padding: 0.5rem;
|
|
font-family: var(--terminal-font) !important;
|
|
font-feature-settings: "liga" 1, "calt" 1; /* Enable ligatures */
|
|
padding-right: 15px; /* Match scrollbar width */
|
|
padding-bottom: 5px;
|
|
position: relative;
|
|
top: -5px; /* Move terminal content up */
|
|
}
|
|
|
|
.xterm-viewport {
|
|
overflow-y: auto !important;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar {
|
|
width: 10px;
|
|
display: block;
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar-track {
|
|
background: var(--terminal-bg);
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar-thumb {
|
|
background: var(--terminal-border);
|
|
border-radius: 5px;
|
|
border: 2px solid var(--terminal-bg);
|
|
}
|
|
|
|
.xterm-viewport::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* Form styling */
|
|
form {
|
|
position: relative;
|
|
background: var(--container);
|
|
padding: 3rem 1.5rem 2rem;
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
width: calc(100% - 2rem);
|
|
max-width: 400px;
|
|
transition: background var(--transition), box-shadow var(--transition);
|
|
text-align: center;
|
|
margin: 1rem auto;
|
|
transform: translateY(-10%);
|
|
}
|
|
|
|
/* header-right buttons */
|
|
#themeToggle, #logoutBtn, #search-open {
|
|
/* position: absolute; */
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0.5rem;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: background-color var(--transition);
|
|
}
|
|
|
|
#themeToggle:hover, #logoutBtn:hover, #search-open:hover {
|
|
background: rgba(128, 128, 128, 0.1);
|
|
}
|
|
|
|
#themeToggle svg, #logoutBtn svg, #search-open svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
stroke: var(--text);
|
|
fill: none;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
transition: stroke var(--transition);
|
|
}
|
|
|
|
[data-theme="light"] .moon {
|
|
display: block;
|
|
}
|
|
|
|
[data-theme="light"] .sun {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="dark"] .moon {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="dark"] .sun {
|
|
display: block;
|
|
}
|
|
|
|
/* Headings */
|
|
h1 {
|
|
font-size: 2rem;
|
|
font-weight: 500;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text);
|
|
text-align: center;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 0.875rem;
|
|
font-weight: 400;
|
|
margin-bottom: 2rem;
|
|
color: var(--text);
|
|
opacity: 0.7;
|
|
text-align: center;
|
|
}
|
|
|
|
/* PIN input styling */
|
|
.pin-input-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
margin: 2rem 0;
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.pin-input-container input.pin-input {
|
|
width: 44px;
|
|
height: 44px;
|
|
text-align: center;
|
|
font-size: 1.25rem;
|
|
font-weight: 500;
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
background: var(--container);
|
|
color: var(--text);
|
|
transition: all var(--transition);
|
|
-webkit-appearance: none;
|
|
-moz-appearance: textfield;
|
|
}
|
|
|
|
.pin-input-container input.pin-input::-webkit-outer-spin-button,
|
|
.pin-input-container input.pin-input::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.pin-input-container input.pin-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
|
|
}
|
|
|
|
.pin-input-container input.pin-input.has-value {
|
|
border-color: var(--primary);
|
|
background-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.pin-error {
|
|
color: #ff4444;
|
|
font-size: 0.9rem;
|
|
margin-top: 0.5rem;
|
|
text-align: center;
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
transition: opacity var(--transition), transform var(--transition);
|
|
}
|
|
|
|
.pin-error[aria-hidden="false"] {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Credit styling */
|
|
.dumbware-credit {
|
|
position: fixed;
|
|
bottom: 14px;
|
|
width: 100%;
|
|
text-align: center;
|
|
font-size: 0.75em;
|
|
opacity: 0.5;
|
|
padding: 8px;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
margin: 0;
|
|
font-family: 'FiraCode Nerd Font', monospace;
|
|
}
|
|
|
|
.dumbware-credit a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.dumbware-credit a:hover {
|
|
text-decoration: underline;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.version-display {
|
|
font-size: 0.75rem;
|
|
opacity: 0.8;
|
|
color: var(--text);
|
|
}
|
|
|
|
.version-display.loading::after {
|
|
content: "";
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-left: 5px;
|
|
border: 2px solid var(--text);
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.tooltip {
|
|
position: absolute;
|
|
background-color: var(--secondary-color);
|
|
color: var(--text-color);
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
z-index: 1000; /* Ensure it's above other elements */
|
|
}
|
|
|
|
.tooltip.show {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Terminal search styling */
|
|
.terminal-search-container {
|
|
position: absolute;
|
|
top: 1.4rem;
|
|
right: 7rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
background: var(--background);
|
|
padding: 0.5rem;
|
|
border-radius: 6px;
|
|
box-shadow: var(--shadow);
|
|
z-index: 1000;
|
|
width: 30%;
|
|
height: 3rem;
|
|
}
|
|
|
|
.terminal-search-container input {
|
|
background: var(--terminal-bg);
|
|
color: var(--terminal-text);
|
|
border: 1px solid var(--terminal-border);
|
|
border-radius: 4px;
|
|
padding: 0.25rem 0.5rem;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
width: calc(100% - 2rem);
|
|
height: 100%;
|
|
}
|
|
|
|
.terminal-search-container input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
}
|
|
|
|
.search-buttons {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.search-buttons button {
|
|
background: var(--terminal-bg);
|
|
color: var(--terminal-text);
|
|
border: 1px solid var(--terminal-border);
|
|
border-radius: 4px;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 0;
|
|
}
|
|
|
|
.search-buttons button:hover {
|
|
background: var(--terminal-border);
|
|
}
|
|
|
|
/* Terminal tabs styling */
|
|
.terminal-tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
height: 42px;
|
|
position: relative;
|
|
}
|
|
|
|
/* Show scrollbar only when needed */
|
|
.tab-list::-webkit-scrollbar {
|
|
height: 6px;
|
|
display: block;
|
|
}
|
|
|
|
.tab-list::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.tab-list::-webkit-scrollbar-thumb {
|
|
background: var(--terminal-border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.tab-list::-webkit-scrollbar-thumb:hover {
|
|
background: var(--primary);
|
|
}
|
|
|
|
/* Firefox scrollbar */
|
|
.tab-list {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--terminal-border) transparent;
|
|
}
|
|
|
|
/* Hide scrollbar when not needed (no overflow) */
|
|
.tab-list.no-scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.tab-list.no-scroll {
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.tab-list {
|
|
display: flex;
|
|
align-items: center; /* Ensure tabs are centered vertically */
|
|
gap: 0.25rem;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
padding-bottom: 6px; /* Space for scrollbar */
|
|
}
|
|
|
|
.terminal-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.25rem 1rem;
|
|
background: var(--terminal-bg);
|
|
color: var(--terminal-text);
|
|
border: 1px solid var(--terminal-border);
|
|
border-radius: 6px;
|
|
cursor: grab;
|
|
font-size: 0.875rem;
|
|
white-space: nowrap;
|
|
transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.1s ease;
|
|
will-change: transform, opacity;
|
|
min-width: 120px;
|
|
max-width: 250px;
|
|
height: 28px; /* Match the height of the add button */
|
|
user-select: none;
|
|
position: relative; /* Added to ensure proper positioning of the tooltip */
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Add this to handle text overflow */
|
|
.terminal-tab span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
|
|
.terminal-tab.active {
|
|
background: var(--terminal-active);
|
|
border-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.terminal-tab:hover:not(.active) {
|
|
background: var(--terminal-border);
|
|
}
|
|
|
|
.terminal-tab .close-tab {
|
|
padding: 2px;
|
|
margin-left: auto;
|
|
border-radius: 4px;
|
|
opacity: 0.7;
|
|
transition: opacity var(--transition);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
margin-left: auto;
|
|
border: none;
|
|
background: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
opacity: 0.6;
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.terminal-tab .close-tab::before,
|
|
.terminal-tab .close-tab::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 1.5px;
|
|
background-color: currentColor;
|
|
border-radius: 1px;
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.terminal-tab .close-tab::before {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.terminal-tab .close-tab::after {
|
|
transform: rotate(-45deg);
|
|
}
|
|
|
|
.terminal-tab .close-tab:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.terminal-tab .close-tab:hover::before {
|
|
transform: rotate(45deg) scale(1.2);
|
|
}
|
|
|
|
.terminal-tab .close-tab:hover::after {
|
|
transform: rotate(-45deg) scale(1.2);
|
|
}
|
|
|
|
.terminal-tab.dragging {
|
|
opacity: 0.7;
|
|
z-index: 10;
|
|
}
|
|
|
|
.terminal-tab.drag-over {
|
|
background-color: var(--tab-hover-bg);
|
|
}
|
|
|
|
.terminal-tab.just-moved {
|
|
animation: slideIn 0.25s ease-out forwards;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
0% { transform: translateX(15px); opacity: 0.7; }
|
|
100% { transform: translateX(0); opacity: 1; }
|
|
}
|
|
|
|
/* Style for drop indicator */
|
|
.drop-indicator {
|
|
position: absolute;
|
|
background: var(--accent);
|
|
width: 2px;
|
|
top: 0;
|
|
bottom: 0;
|
|
transition: left 0.15s ease;
|
|
z-index: 5;
|
|
}
|
|
|
|
.ghost-tab {
|
|
background: var(--bg-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.new-tab-button {
|
|
background: var(--btn-default);
|
|
color: var(--terminal-text);
|
|
border: 1px solid var(--terminal-border);
|
|
border-radius: 6px;
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
position: relative;
|
|
bottom: 3px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
padding: 0;
|
|
margin-right: 8px;
|
|
transition: all var(--transition);
|
|
flex-shrink: 0;
|
|
align-self: center; /* Ensure button is centered vertically */
|
|
}
|
|
|
|
.new-tab-button:hover {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.terminals-container {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 0;
|
|
height: calc(100% - 8px); /* Adjust for the margin we added */
|
|
margin-top: 0;
|
|
border-radius: 12px; /* Round all corners */
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.terminals-container > div {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: var(--terminal-bg);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--terminal-border);
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity var(--transition);
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
/* overflow: hidden; */
|
|
}
|
|
|
|
.terminals-container > div.active {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.xterm-viewport,
|
|
.xterm-screen,
|
|
.xterm-link-layer {
|
|
/* overflow: hidden !important; */
|
|
position: absolute;
|
|
inset: 0;
|
|
top: -5px; /* Move these components up to match */
|
|
}
|
|
|
|
.xterm-link-layer {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.xterm-link-layer > div {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Tab renaming styles */
|
|
.rename-input {
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
width: 100%;
|
|
max-width: 200px;
|
|
padding: 0 2px;
|
|
margin: 0;
|
|
border-bottom: 1px solid var(--accent-color);
|
|
}
|
|
|
|
/* Tabs container styling */
|
|
.tabs-container {
|
|
background: var(--terminal-tabs-container);
|
|
border-radius: 12px; /* Rounded corners all around */
|
|
padding: 8px 12px 2px;
|
|
border: 1px solid var(--terminal-border);
|
|
margin-bottom: 0.5rem; /* Add space between tabs and terminal */
|
|
position: relative;
|
|
z-index: 5;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
|
|
}
|
|
|
|
/* Update notification styling */
|
|
.update-notification {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
background: var(--container);
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
|
|
z-index: 9999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
border-left: 4px solid var(--primary);
|
|
max-width: 300px;
|
|
animation: slideInNotification 0.3s ease forwards;
|
|
}
|
|
|
|
.update-notification.error {
|
|
border-left-color: #ff4444;
|
|
}
|
|
|
|
.update-notification.error button {
|
|
background: var(--secondary-color);
|
|
color: var(--text);
|
|
}
|
|
|
|
@keyframes slideInNotification {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.update-notification p {
|
|
margin: 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.update-notification button {
|
|
background: var(--primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 0.5rem 1rem;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.update-notification button:hover {
|
|
background: var(--primary-hover);
|
|
}
|
|
|
|
.update-notification button:disabled {
|
|
opacity: 0.7;
|
|
cursor: wait;
|
|
}
|
|
|
|
.update-notification button.secondary {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
}
|
|
|
|
.update-notification button.secondary:hover {
|
|
background: var(--btn-default);
|
|
}
|
|
|
|
.demo-banner {
|
|
background: linear-gradient(135deg, #ff6b6b 0%, #ff8383 100%);
|
|
color: white;
|
|
text-align: center;
|
|
padding: 0.5rem 1rem;
|
|
margin: 0 auto 1rem auto;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
animation: pulse 2s infinite;
|
|
box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
|
|
border-radius: 0 0 8px 8px;
|
|
position: relative;
|
|
z-index: 5;
|
|
width: fit-content;
|
|
max-width: 90%;
|
|
backdrop-filter: blur(8px);
|
|
/* border: 1px solid rgba(255, 255, 255, 0.1); */
|
|
}
|
|
|
|
.demo-banner span {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% { opacity: 1; }
|
|
50% { opacity: 0.70; }
|
|
100% { opacity: 1; }
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 1000px) {
|
|
.container {
|
|
width: calc(100%);
|
|
max-width: 100%;
|
|
/* padding: 1.5rem 0.75rem 1rem;
|
|
margin: 0.5rem auto; */
|
|
}
|
|
|
|
#terminal {
|
|
padding: 0.5rem;
|
|
min-height: 250px;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
#siteTitle {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.header-right {
|
|
position: absolute;
|
|
float: right;
|
|
padding: 0;
|
|
margin: 0;
|
|
top: 0.2rem;
|
|
}
|
|
|
|
.terminal-search-container {
|
|
top: 1rem;
|
|
right: 6rem;
|
|
}
|
|
|
|
.terminal-search-container {
|
|
width: calc(100% - 2rem);
|
|
height: 3rem;
|
|
top: 0.7rem;
|
|
right: 1rem;
|
|
}
|
|
|
|
.terminal-search-container input {
|
|
width: calc(100% - 2rem);
|
|
height: 100%;
|
|
}
|
|
|
|
.terminal-search-container button {
|
|
width: 2rem;
|
|
height: 2rem;
|
|
}
|
|
|
|
.demo-banner {
|
|
padding: 0.5rem;
|
|
margin: 0 auto 1rem auto;
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
/* Responsive adjustments for update notification */
|
|
@media (max-width: 600px) {
|
|
main {
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
padding-left: 0.5rem;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
.terminal-search-container {
|
|
width: calc(100% - 1rem);
|
|
right: 0.5rem;
|
|
}
|
|
|
|
.update-notification {
|
|
bottom: 1rem;
|
|
right: 1rem;
|
|
left: 1rem;
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
|
form {
|
|
padding: 3rem 0.75rem 1.5rem;
|
|
width: calc(100% - 1rem);
|
|
margin: 0.5rem auto;
|
|
}
|
|
|
|
.pin-input-container {
|
|
gap: 0.4rem;
|
|
padding: 0;
|
|
}
|
|
|
|
.pin-input-container input.pin-input {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.75rem;
|
|
}
|
|
|
|
#terminal {
|
|
padding: 0.25rem;
|
|
min-height: 200px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 320px) {
|
|
.pin-input-container input.pin-input {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
} |