Create the Nexus Terminal design system with dark charcoal palette, teal accent, and premium desktop application styling: - tokens.css: Design tokens (colours, spacing, typography, layout) - base.css: Modern reset, scrollbar, focus, and utility styles - components.css: Buttons, forms, badges, dropdowns, notifications, disclosure, search, empty state, tooltip, spinner - layout.css: App grid shell (sidebar, tab bar, workspace, status bar) - sidebar.css: Connection manager with sections, profile items, search - tabs.css: Compact session tabs with status dots, protocol badges - terminal.css: xterm.js container, RAW mode views, send bar, search - forms.css: Profile editor sections, tag input, jump hosts, validation - modals.css: Modal, drawer, confirmation, host key, settings dialogs - index.html: Complete HTML shell with sidebar, tabs, workspace, status
188 lines
4.8 KiB
CSS
188 lines
4.8 KiB
CSS
/* ==========================================================================
|
|
Nexus Terminal — Base / Reset
|
|
Modern CSS reset and foundational element styles.
|
|
========================================================================== */
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Box-model reset
|
|
----------------------------------------------------------------------- */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Root element
|
|
----------------------------------------------------------------------- */
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: var(--font-sans);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
color: var(--text-primary);
|
|
background: var(--bg-base);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
user-select: none;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Scrollbar styling (Webkit / Blink)
|
|
----------------------------------------------------------------------- */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-strong);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-tertiary);
|
|
}
|
|
|
|
/* Firefox scrollbar */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border-strong) transparent;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Text selection
|
|
----------------------------------------------------------------------- */
|
|
::selection {
|
|
background: var(--accent-strong);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Focus management
|
|
----------------------------------------------------------------------- */
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Links
|
|
----------------------------------------------------------------------- */
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Images
|
|
----------------------------------------------------------------------- */
|
|
img,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Lists
|
|
----------------------------------------------------------------------- */
|
|
ul,
|
|
ol {
|
|
list-style: none;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Tables
|
|
----------------------------------------------------------------------- */
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Buttons & inputs — inherit font
|
|
----------------------------------------------------------------------- */
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
color: inherit;
|
|
background: none;
|
|
border: none;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Monospace elements
|
|
----------------------------------------------------------------------- */
|
|
code,
|
|
pre,
|
|
kbd,
|
|
.mono {
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Hidden utility
|
|
----------------------------------------------------------------------- */
|
|
[hidden],
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Text utilities
|
|
----------------------------------------------------------------------- */
|
|
.truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.text-secondary { color: var(--text-secondary); }
|
|
.text-tertiary { color: var(--text-tertiary); }
|
|
.text-accent { color: var(--accent); }
|
|
.text-success { color: var(--success); }
|
|
.text-warning { color: var(--warning); }
|
|
.text-error { color: var(--error); }
|
|
|
|
/* -----------------------------------------------------------------------
|
|
Wails window drag region
|
|
----------------------------------------------------------------------- */
|
|
.wails-drag {
|
|
--wails-draggable: drag;
|
|
}
|