mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 09:35:39 +00:00
5b96ad2bd9
- Updated CSS for the monitors menu to improve layout with flexbox, ensuring better responsiveness and usability. - Modified JavaScript to encapsulate monitor and virtual display items within dedicated wrappers for improved organization and styling. - Introduced custom scrollbar styles for better visual integration.
2946 lines
61 KiB
CSS
2946 lines
61 KiB
CSS
/**
|
|
* BetterDesk Console - Remote Desktop Viewer Styles
|
|
* Fullscreen viewer with auto-hiding toolbar, connection overlay, and dark theme
|
|
*/
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* ---- Toast Notifications ---- */
|
|
.rd-toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(20px);
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: #fff;
|
|
z-index: 100000;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity 0.3s, transform 0.3s;
|
|
max-width: 420px;
|
|
text-align: center;
|
|
}
|
|
.rd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
.rd-toast-info { background: rgba(56, 132, 255, 0.92); }
|
|
.rd-toast-warning { background: rgba(210, 153, 34, 0.92); }
|
|
.rd-toast-error { background: rgba(218, 54, 51, 0.92); }
|
|
.rd-toast-success { background: rgba(46, 164, 79, 0.92); }
|
|
|
|
/* ---- Viewer Body (no sidebar, no scroll) ---- */
|
|
.viewer-body {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background-color: #000;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
color: var(--text-primary, #e6edf3);
|
|
height: var(--app-height, 100vh);
|
|
width: 100vw;
|
|
width: 100%;
|
|
}
|
|
|
|
/* ---- Main Viewer Container ---- */
|
|
.viewer-container {
|
|
position: absolute;
|
|
top: var(--session-bar-slim, 18px);
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
background-color: #000;
|
|
}
|
|
|
|
/* ---- Canvas ---- */
|
|
.session-canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: none;
|
|
cursor: default;
|
|
}
|
|
|
|
/* During streaming: show crosshair as fallback (remote cursor drawn on canvas overlay) */
|
|
.session-panel.streaming .session-canvas {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
/* When remote cursor overlay is active, hide local cursor to avoid double cursor */
|
|
.session-panel.streaming.has-remote-cursor .session-canvas {
|
|
cursor: none;
|
|
}
|
|
|
|
/* ---- Connection Overlay ---- */
|
|
.viewer-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: rgba(13, 17, 23, 0.95);
|
|
z-index: 100;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.overlay-card {
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 12px;
|
|
padding: 40px;
|
|
max-width: 400px;
|
|
width: 90%;
|
|
text-align: center;
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.overlay-icon {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.overlay-icon .material-icons {
|
|
font-size: 48px;
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.overlay-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.overlay-device-id {
|
|
font-size: 16px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin: 0 0 4px 0;
|
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
}
|
|
|
|
.overlay-device-name {
|
|
font-size: 14px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin: 0 0 24px 0;
|
|
}
|
|
|
|
.overlay-hint {
|
|
font-size: 14px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin: 0 0 24px 0;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.autoplay-overlay {
|
|
z-index: 150;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.autoplay-card .overlay-icon .material-icons {
|
|
font-size: 64px;
|
|
color: var(--accent-green, #3fb950);
|
|
}
|
|
|
|
.overlay-status {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
background: var(--bg-tertiary, #21262d);
|
|
margin-bottom: 16px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.overlay-status.error {
|
|
color: var(--accent-red, #f85149);
|
|
background: rgba(248, 81, 73, 0.1);
|
|
}
|
|
|
|
.overlay-status.info {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
/* Spinner */
|
|
.spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid var(--border-primary, #30363d);
|
|
border-top-color: var(--accent-blue, #58a6ff);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Overlay actions */
|
|
.overlay-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: center;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* ---- Buttons ---- */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.btn .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--accent-green, #2ea44f);
|
|
color: #fff;
|
|
border-color: var(--accent-green, #2ea44f);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #3fb950;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
border-color: var(--border-primary, #30363d);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--bg-elevated, #30363d);
|
|
}
|
|
|
|
.btn-full {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ---- Password Form ---- */
|
|
.password-form {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
text-align: left;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg-tertiary, #21262d);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
color: var(--text-primary, #e6edf3);
|
|
font-size: 14px;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
transition: border-color 0.15s;
|
|
}
|
|
|
|
.form-input:focus {
|
|
border-color: var(--accent-blue, #58a6ff);
|
|
box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.login-error {
|
|
color: var(--accent-red, #f85149);
|
|
font-size: 13px;
|
|
margin: 0 0 12px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.password-form-footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
margin-top: 4px;
|
|
text-align: left;
|
|
}
|
|
|
|
.session-remember-peer {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
margin: 0;
|
|
font-size: 0.8125rem;
|
|
line-height: 1.4;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.session-remember-peer-checkbox {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-top: 2px;
|
|
flex-shrink: 0;
|
|
accent-color: var(--accent-blue, #388bfd);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.session-remember-peer span {
|
|
flex: 1;
|
|
}
|
|
|
|
.password-form-footer .session-btn-authenticate {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* ---- Toolbar (notch integrated in session tab bar) ---- */
|
|
.toolbar-notch-slot {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 100%;
|
|
transform: translateX(-50%);
|
|
z-index: 230;
|
|
pointer-events: none;
|
|
-webkit-app-region: no-drag;
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
|
|
}
|
|
|
|
.toolbar-notch-slot.toolbar-chrome-hidden {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transform: translateX(-50%) translateY(-4px);
|
|
}
|
|
|
|
/* First appearance after login — droplet drops from tab bar */
|
|
.toolbar-notch-slot.toolbar-chrome-enter,
|
|
.toolbar-notch-slot.toolbar-chrome-exit {
|
|
transition: none;
|
|
}
|
|
|
|
.toolbar-notch-slot.toolbar-chrome-enter {
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
.toolbar-notch-slot.toolbar-chrome-enter .toolbar-handle {
|
|
animation: notch-droplet-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
|
|
@keyframes notch-droplet-enter {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(-10px) scaleY(0.4);
|
|
min-width: 32px;
|
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
}
|
|
65% {
|
|
opacity: 1;
|
|
transform: translateY(3px) scaleY(1.08);
|
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
|
|
}
|
|
100% {
|
|
opacity: 0.5;
|
|
transform: translateY(0) scaleY(1);
|
|
min-width: 40px;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.toolbar-notch-slot.toolbar-chrome-enter .toolbar-handle {
|
|
animation: none;
|
|
}
|
|
|
|
.toolbar-notch-slot.toolbar-chrome-exit {
|
|
animation: none;
|
|
}
|
|
|
|
.toolbar-drawer,
|
|
.toolbar-handle,
|
|
.toolbar-expanded {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* Exit after disconnect — retract into tab bar */
|
|
.toolbar-notch-slot.toolbar-chrome-exit {
|
|
pointer-events: none;
|
|
animation: notch-chrome-exit 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
@keyframes notch-chrome-exit {
|
|
0% {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0) scale(1);
|
|
}
|
|
55% {
|
|
opacity: 0.65;
|
|
transform: translateX(-50%) translateY(-6px) scale(0.96);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateX(-50%) translateY(-14px) scale(0.88);
|
|
}
|
|
}
|
|
|
|
.viewer-toolbar {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0;
|
|
background: transparent;
|
|
border: none;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Drawer shell — content panel + pull handle slide out together */
|
|
.toolbar-drawer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: max-content;
|
|
max-width: calc(100vw - 120px);
|
|
transform-origin: top center;
|
|
transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.viewer-toolbar.drawer-pulling .toolbar-drawer {
|
|
transition-duration: 0.42s;
|
|
}
|
|
|
|
/* Expanded action bar */
|
|
.toolbar-expanded {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
width: 100%;
|
|
max-height: 0;
|
|
opacity: 0;
|
|
padding: 0 14px;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid transparent;
|
|
border-top: none;
|
|
border-radius: 0 0 14px 14px;
|
|
box-shadow: none;
|
|
transform: translateY(-8px) scaleY(0.9);
|
|
transform-origin: top center;
|
|
transition:
|
|
max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
|
|
opacity 0.28s ease,
|
|
transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
|
|
padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
|
|
border-color 0.22s ease,
|
|
box-shadow 0.32s ease;
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-expanded,
|
|
.viewer-toolbar.pinned .toolbar-expanded {
|
|
max-height: 60px;
|
|
opacity: 1;
|
|
padding: 7px 16px 8px;
|
|
pointer-events: auto;
|
|
border-color: var(--border-primary, #30363d);
|
|
border-bottom: none;
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
|
|
transform: translateY(0) scaleY(1);
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Pull handle — collapsed: top droplet; expanded: bottom center tab */
|
|
.toolbar-handle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0;
|
|
min-width: 40px;
|
|
height: 10px;
|
|
padding: 0 6px 2px;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-top: none;
|
|
border-radius: 0 0 10px 10px;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
|
|
opacity: 0.5;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
cursor: grab;
|
|
transition: opacity 0.18s ease, min-width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
|
|
height 0.24s cubic-bezier(0.22, 1, 0.36, 1), padding 0.24s cubic-bezier(0.22, 1, 0.36, 1),
|
|
gap 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
|
|
margin-top 0.24s cubic-bezier(0.22, 1, 0.36, 1);
|
|
}
|
|
|
|
.toolbar-handle:focus-visible {
|
|
outline: 2px solid var(--accent-blue, #58a6ff);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.toolbar-handle-grip {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 24px;
|
|
height: 18px;
|
|
color: var(--accent-blue, #58a6ff);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toolbar-handle-grip .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.toolbar-handle .handle-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 0;
|
|
min-width: 0;
|
|
height: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
cursor: pointer;
|
|
transition: width 0.18s ease, min-width 0.18s ease, height 0.18s ease,
|
|
opacity 0.15s ease, background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
/* Collapsed: top droplet under tab bar */
|
|
.viewer-toolbar:not(.expanded):not(.pinned).hover-preview .toolbar-handle,
|
|
.viewer-toolbar:not(.expanded):not(.pinned) .toolbar-handle:hover,
|
|
.viewer-toolbar:not(.expanded):not(.pinned) .toolbar-handle:focus-within {
|
|
opacity: 1;
|
|
min-width: 72px;
|
|
height: 26px;
|
|
padding: 2px 6px 4px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.viewer-toolbar:not(.expanded):not(.pinned).hover-preview .toolbar-handle .handle-btn,
|
|
.viewer-toolbar:not(.expanded):not(.pinned) .toolbar-handle:hover .handle-btn,
|
|
.viewer-toolbar:not(.expanded):not(.pinned) .toolbar-handle:focus-within .handle-btn {
|
|
width: 28px;
|
|
min-width: 28px;
|
|
height: 22px;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Expanded: bottom center collapse tab with blue chevron */
|
|
.viewer-toolbar.expanded .toolbar-handle,
|
|
.viewer-toolbar.pinned .toolbar-handle {
|
|
opacity: 1;
|
|
min-width: 54px;
|
|
height: 20px;
|
|
margin-top: -1px;
|
|
padding: 0 10px 2px;
|
|
gap: 0;
|
|
cursor: pointer;
|
|
border-radius: 0 0 10px 10px;
|
|
border-top: none;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-handle-grip,
|
|
.viewer-toolbar.pinned .toolbar-handle-grip {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-handle .handle-btn,
|
|
.viewer-toolbar.pinned .toolbar-handle .handle-btn {
|
|
display: none;
|
|
}
|
|
|
|
.viewer-toolbar.drawer-pulling .toolbar-handle {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.handle-btn:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.handle-btn .material-icons {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.handle-expand.active {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.toolbar-left,
|
|
.toolbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-device-info,
|
|
.viewer-toolbar.pinned .toolbar-device-info {
|
|
margin-left: 0;
|
|
margin-right: 8px;
|
|
padding-right: 6px;
|
|
border-right: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-status-sep,
|
|
.viewer-toolbar.pinned .toolbar-status-sep,
|
|
.viewer-toolbar.expanded .toolbar-status,
|
|
.viewer-toolbar.pinned .toolbar-status {
|
|
display: none !important;
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-btn,
|
|
.viewer-toolbar.pinned .toolbar-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.viewer-toolbar.expanded .toolbar-btn .material-icons,
|
|
.viewer-toolbar.pinned .toolbar-btn .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.toolbar-monitor-strip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 0 4px;
|
|
border-left: 1px solid var(--border-primary, #30363d);
|
|
border-right: 1px solid var(--border-primary, #30363d);
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.toolbar-monitor-strip[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.toolbar-monitor-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 28px;
|
|
height: 28px;
|
|
padding: 0 6px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.toolbar-monitor-btn:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.toolbar-monitor-btn.active {
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
/* Toolbar button */
|
|
.toolbar-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
transition: background-color 0.15s, color 0.15s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.toolbar-btn:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.toolbar-btn .material-icons {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.toolbar-btn-danger:hover {
|
|
background: rgba(248, 81, 73, 0.15);
|
|
color: var(--accent-red, #f85149);
|
|
}
|
|
|
|
/* Device info in toolbar */
|
|
.toolbar-device-info {
|
|
font-size: 13px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin-left: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar-device-id {
|
|
color: var(--text-primary, #e6edf3);
|
|
font-weight: 600;
|
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
|
|
}
|
|
|
|
.toolbar-separator {
|
|
color: var(--border-primary, #30363d);
|
|
}
|
|
|
|
.toolbar-status {
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
/* ---- Toolbar Dropdowns ---- */
|
|
.toolbar-dropdown {
|
|
position: relative;
|
|
}
|
|
|
|
.toolbar-dropdown-menu {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 4px;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
padding: 4px;
|
|
min-width: 180px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
z-index: 60;
|
|
}
|
|
|
|
.toolbar-dropdown-menu.open {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.dropdown-item.active {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.dropdown-item .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ---- Dropdown Extras ---- */
|
|
.dropdown-separator {
|
|
height: 1px;
|
|
background: var(--border-primary, #30363d);
|
|
margin: 4px 8px;
|
|
}
|
|
|
|
.dropdown-label {
|
|
padding: 4px 12px 2px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #8b949e);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.toolbar-dropdown-wide {
|
|
min-width: 220px;
|
|
}
|
|
|
|
/* ---- Display settings grid dropdown ---- */
|
|
#display-menu.toolbar-dropdown-wide {
|
|
min-width: 420px;
|
|
max-width: min(480px, calc(100vw - 24px));
|
|
max-height: min(75vh, calc(100dvh - 120px));
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border-primary, #30363d) transparent;
|
|
}
|
|
|
|
#display-menu.toolbar-dropdown-wide::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
#display-menu.toolbar-dropdown-wide::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary, #30363d);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.display-menu-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4px 12px;
|
|
}
|
|
|
|
.display-menu-section {
|
|
min-width: 0;
|
|
}
|
|
|
|
.display-menu-section--full {
|
|
grid-column: 1 / -1;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 2px 8px;
|
|
padding-top: 4px;
|
|
border-top: 1px solid var(--border-primary, #30363d);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
#display-menu .dropdown-item {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#display-menu .dropdown-item .material-icons {
|
|
font-size: 16px;
|
|
}
|
|
|
|
#display-menu .dropdown-label {
|
|
padding: 2px 10px 4px;
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
#display-menu.toolbar-dropdown-wide {
|
|
min-width: 220px;
|
|
max-width: calc(100vw - 24px);
|
|
}
|
|
|
|
.display-menu-grid,
|
|
.display-menu-section--full {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ---- Monitors & Virtual Displays ---- */
|
|
#monitors-menu.toolbar-dropdown-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 240px;
|
|
max-width: min(300px, calc(100vw - 24px));
|
|
max-height: min(75vh, calc(100dvh - 120px));
|
|
overflow: hidden;
|
|
padding: 4px;
|
|
}
|
|
|
|
#monitors-menu > .dropdown-label {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.monitors-menu-list {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border-primary, #30363d) transparent;
|
|
}
|
|
|
|
.monitors-menu-list::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.monitors-menu-list::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary, #30363d);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.monitors-menu-vd {
|
|
flex-shrink: 0;
|
|
border-top: 1px solid var(--border-primary, #30363d);
|
|
margin-top: 4px;
|
|
padding-top: 4px;
|
|
background: var(--bg-secondary, #161b22);
|
|
}
|
|
|
|
.monitor-item {
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.monitor-item .material-icons {
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.monitor-item-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.monitor-item-name {
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.monitor-item-meta {
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.monitor-item.active::after {
|
|
align-self: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.dropdown-divider {
|
|
height: 1px;
|
|
background: var(--border-primary, #30363d);
|
|
margin: 6px 8px;
|
|
}
|
|
|
|
.monitor-item.active,
|
|
.virtual-display-item.active {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.monitor-item.active::after,
|
|
.virtual-display-item.active::after {
|
|
content: '✓';
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
color: var(--accent-green, #2ea44f);
|
|
}
|
|
|
|
.virtual-display-counter {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 6px 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.vd-count-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--text-primary, #e6edf3);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.vd-count-btn:hover:not(:disabled) {
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.vd-count-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.vd-count-btn .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.vd-count-value {
|
|
min-width: 24px;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Toggle items in dropdown */
|
|
.toggle-item[data-active="true"] {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.toggle-item[data-active="true"]::after {
|
|
content: '✓';
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
color: var(--accent-green, #2ea44f);
|
|
}
|
|
|
|
/* Active toolbar buttons */
|
|
.toolbar-btn.active {
|
|
background: rgba(88, 166, 255, 0.15);
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.toolbar-btn.recording {
|
|
background: rgba(248, 81, 73, 0.15);
|
|
color: var(--accent-red, #f85149);
|
|
animation: recording-pulse 1.5s infinite;
|
|
}
|
|
|
|
@keyframes recording-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
|
|
/* ---- Chat Panel ---- */
|
|
.chat-panel {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
width: 320px;
|
|
height: 400px;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 55;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.chat-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.chat-close:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: var(--bg-tertiary, #21262d);
|
|
}
|
|
|
|
.chat-close .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.chat-msg {
|
|
margin-bottom: 8px;
|
|
padding: 6px 10px;
|
|
border-radius: 8px;
|
|
max-width: 85%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.chat-msg.sent {
|
|
background: var(--accent-blue, #58a6ff);
|
|
color: #fff;
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
.chat-msg.received {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.chat-input-area {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
border-top: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.chat-input {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
background: var(--bg-tertiary, #21262d);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
color: var(--text-primary, #e6edf3);
|
|
font-size: 13px;
|
|
outline: none;
|
|
}
|
|
|
|
.chat-input:focus {
|
|
border-color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.chat-send {
|
|
background: var(--accent-blue, #58a6ff);
|
|
border: none;
|
|
color: #fff;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-send:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.chat-send .material-icons {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* ---- HTTP Warning Banner ---- */
|
|
.http-warning-banner {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 16px;
|
|
background: rgba(210, 153, 34, 0.92);
|
|
backdrop-filter: blur(8px);
|
|
color: #fff;
|
|
border-radius: 10px;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
max-width: 540px;
|
|
box-shadow: 0 4px 16px rgba(0,0,0,.4);
|
|
animation: bannerSlideUp .3s ease;
|
|
}
|
|
|
|
@keyframes bannerSlideUp {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(20px); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
.http-warning-banner .material-icons {
|
|
font-size: 22px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.http-warning-dismiss {
|
|
background: none;
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
margin-left: 4px;
|
|
opacity: .7;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.http-warning-dismiss:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ---- Security Warning Banner ---- */
|
|
.security-warning-banner {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 14px;
|
|
color: #fff;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
max-width: 480px;
|
|
box-shadow: 0 4px 14px rgba(0,0,0,.4);
|
|
animation: bannerSlideUp .3s ease;
|
|
}
|
|
.security-warning-banner.security-warning {
|
|
background: rgba(210, 153, 34, 0.92);
|
|
}
|
|
.security-warning-banner.security-error {
|
|
background: rgba(200, 40, 40, 0.92);
|
|
}
|
|
.security-warning-banner .material-icons {
|
|
font-size: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
.security-warning-dismiss {
|
|
background: none;
|
|
border: none;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
margin-left: 4px;
|
|
opacity: .7;
|
|
flex-shrink: 0;
|
|
}
|
|
.security-warning-dismiss:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ---- Session Tab Bar (slim + expandable cards) ---- */
|
|
:root {
|
|
--session-bar-slim: 18px;
|
|
--session-card-slim: 18px;
|
|
--session-card-expanded: 72px;
|
|
--session-bar-btn-expanded: 36px;
|
|
}
|
|
|
|
.session-tab-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--session-bar-slim);
|
|
display: flex;
|
|
align-items: flex-start;
|
|
background: var(--bg-secondary, #161b22);
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
z-index: 220;
|
|
user-select: none;
|
|
-webkit-app-region: drag;
|
|
overflow: visible;
|
|
}
|
|
|
|
.session-tabs {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
overflow-y: visible;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
gap: 4px;
|
|
padding: 0 4px;
|
|
align-items: flex-start;
|
|
min-height: 0;
|
|
}
|
|
|
|
.session-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* Session card tab — expands downward over the viewer */
|
|
.session-tab.session-tab-card {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
height: var(--session-card-slim);
|
|
min-width: 52px;
|
|
max-width: 52px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
border: none;
|
|
border-radius: 0 0 6px 6px;
|
|
background: var(--bg-tertiary, #21262d);
|
|
transition: height 0.2s ease, min-width 0.2s ease, max-width 0.2s ease, background-color 0.15s, color 0.15s;
|
|
-webkit-app-region: no-drag;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.session-tab-card-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 0 10px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.session-tab-glow {
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
left: auto;
|
|
right: auto;
|
|
width: auto;
|
|
margin: 0 4px;
|
|
height: 3px;
|
|
border-radius: 0 0 2px 2px;
|
|
background: var(--text-secondary, #8b949e);
|
|
box-shadow: 0 2px 8px 1px rgba(139, 148, 158, 0.45);
|
|
transition: background 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.session-tab-card.status-online .session-tab-glow {
|
|
background: var(--accent-green, #3fb950);
|
|
box-shadow: 0 2px 10px 2px rgba(63, 185, 80, 0.55);
|
|
}
|
|
|
|
.session-tab-card.status-connecting .session-tab-glow {
|
|
background: var(--accent-yellow, #d29922);
|
|
box-shadow: 0 2px 10px 2px rgba(210, 153, 34, 0.55);
|
|
animation: glow-pulse 1.2s ease infinite;
|
|
}
|
|
|
|
.session-tab-card.status-error .session-tab-glow {
|
|
background: var(--accent-red, #f85149);
|
|
box-shadow: 0 2px 10px 2px rgba(248, 81, 73, 0.55);
|
|
}
|
|
|
|
.session-tab-card.status-offline .session-tab-glow {
|
|
background: var(--text-secondary, #8b949e);
|
|
box-shadow: 0 2px 6px 1px rgba(139, 148, 158, 0.35);
|
|
}
|
|
|
|
@keyframes glow-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.45; }
|
|
}
|
|
|
|
.session-tab-card:hover,
|
|
.session-tab-card.is-expanded,
|
|
.session-tab-card.active.is-expanded {
|
|
height: var(--session-card-expanded);
|
|
min-width: 120px;
|
|
max-width: 180px;
|
|
z-index: 3;
|
|
color: var(--text-primary, #e6edf3);
|
|
background: var(--bg-tertiary, #21262d);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
|
|
overflow: visible;
|
|
}
|
|
|
|
.session-tab-card:hover .session-tab-card-inner,
|
|
.session-tab-card.is-expanded .session-tab-card-inner,
|
|
.session-tab-card.active.is-expanded .session-tab-card-inner {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.session-tab-card.active {
|
|
background: color-mix(in srgb, var(--bg-tertiary, #21262d) 85%, var(--accent-blue, #58a6ff));
|
|
}
|
|
|
|
.session-tab-card.active .session-tab-glow {
|
|
height: 4px;
|
|
}
|
|
|
|
.session-tab-os {
|
|
font-size: 16px !important;
|
|
flex-shrink: 0;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.session-tab-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.session-tab-dot.dot-online {
|
|
background: var(--accent-green, #3fb950);
|
|
}
|
|
|
|
.session-tab-dot.dot-connecting {
|
|
background: var(--accent-yellow, #d29922);
|
|
animation: dot-pulse 1.2s ease infinite;
|
|
}
|
|
|
|
.session-tab-dot.dot-error {
|
|
background: var(--accent-red, #f85149);
|
|
}
|
|
|
|
.session-tab-dot.dot-offline {
|
|
background: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
@keyframes dot-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
|
|
.session-tab-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.session-tab-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, background-color 0.15s;
|
|
}
|
|
|
|
.session-tab-card:hover .session-tab-close,
|
|
.session-tab-card.is-expanded .session-tab-close,
|
|
.session-tab-card.active .session-tab-close {
|
|
opacity: 1;
|
|
}
|
|
|
|
.session-tab-close:hover {
|
|
background: rgba(248, 81, 73, 0.2);
|
|
color: var(--accent-red, #f85149);
|
|
}
|
|
|
|
.tab-bar-back,
|
|
.tab-bar-add {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--session-bar-slim);
|
|
height: var(--session-card-slim);
|
|
min-width: var(--session-bar-slim);
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: height 0.2s ease, width 0.2s ease, background-color 0.15s, color 0.15s;
|
|
flex-shrink: 0;
|
|
-webkit-app-region: no-drag;
|
|
overflow: visible;
|
|
border-radius: 0 0 6px 6px;
|
|
padding: 0;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.tab-bar-back .material-icons,
|
|
.tab-bar-add .material-icons {
|
|
font-size: 16px;
|
|
transition: font-size 0.2s ease;
|
|
}
|
|
|
|
.tab-bar-back:hover,
|
|
.tab-bar-add:hover,
|
|
.tab-bar-back.is-expanded,
|
|
.tab-bar-add.is-expanded,
|
|
.tab-bar-back:focus-visible,
|
|
.tab-bar-add:focus-visible {
|
|
height: var(--session-bar-btn-expanded);
|
|
width: var(--session-bar-btn-expanded);
|
|
min-width: var(--session-bar-btn-expanded);
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
z-index: 3;
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.tab-bar-back:hover .material-icons,
|
|
.tab-bar-add:hover .material-icons,
|
|
.tab-bar-back.is-expanded .material-icons,
|
|
.tab-bar-add.is-expanded .material-icons {
|
|
font-size: 20px;
|
|
}
|
|
|
|
/* ---- Session Panel ---- */
|
|
.session-panel {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ---- Form Input Error State ---- */
|
|
.form-input.error {
|
|
border-color: var(--accent-red, #f85149);
|
|
animation: input-shake 0.3s ease;
|
|
}
|
|
|
|
@keyframes input-shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-4px); }
|
|
75% { transform: translateX(4px); }
|
|
}
|
|
|
|
/* ---- File Transfer Panel ---- */
|
|
|
|
.session-file-panel {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
width: 380px;
|
|
height: 480px;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 55;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.file-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
gap: 6px;
|
|
}
|
|
|
|
.file-panel-header-title {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.file-panel-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.file-btn-icon {
|
|
width: 30px;
|
|
height: 30px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.file-btn-icon .material-icons { font-size: 18px; }
|
|
|
|
.file-btn-icon:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.file-btn-icon.active {
|
|
color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.file-panel-path {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 14px;
|
|
gap: 6px;
|
|
border-bottom: 1px solid var(--border-secondary, #21262d);
|
|
background: var(--bg-tertiary, #0d1117);
|
|
}
|
|
|
|
.file-path-text {
|
|
flex: 1;
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-family: 'JetBrains Mono', 'Fira Code', monospace;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.file-panel-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.file-panel-list::-webkit-scrollbar { width: 6px; }
|
|
.file-panel-list::-webkit-scrollbar-thumb {
|
|
background: var(--border-primary, #30363d);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.file-panel-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--text-tertiary, #484f58);
|
|
font-size: 13px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.file-panel-empty .material-icons { font-size: 40px; opacity: 0.4; }
|
|
|
|
.file-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 14px;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: background 0.1s;
|
|
position: relative;
|
|
}
|
|
|
|
.file-entry:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
}
|
|
|
|
.file-entry-icon {
|
|
flex-shrink: 0;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.file-entry-icon .material-icons { font-size: 20px; }
|
|
|
|
.file-entry-dir .file-entry-icon { color: var(--accent-blue, #58a6ff); }
|
|
.file-entry-drive .file-entry-icon { color: var(--accent-yellow, #d29922); }
|
|
|
|
.file-entry-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.file-entry-dir .file-entry-name { font-weight: 600; }
|
|
|
|
.file-entry-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 11px;
|
|
color: var(--text-tertiary, #484f58);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.file-entry-actions {
|
|
display: flex;
|
|
gap: 2px;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.file-entry:hover .file-entry-actions { opacity: 1; }
|
|
|
|
.file-entry-actions .file-btn-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.file-entry-actions .file-btn-icon .material-icons { font-size: 16px; }
|
|
|
|
/* ---- File Transfers Section ---- */
|
|
|
|
.file-transfers-section {
|
|
border-top: 1px solid var(--border-primary, #30363d);
|
|
max-height: 140px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.file-transfers-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 14px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #8b949e);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.file-transfer-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 6px 14px;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.file-transfer-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.file-transfer-bar {
|
|
width: 80px;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--bg-tertiary, #21262d);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.file-transfer-bar-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
background: var(--accent-blue, #58a6ff);
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
.file-transfer-pct {
|
|
font-size: 11px;
|
|
color: var(--text-secondary, #8b949e);
|
|
min-width: 36px;
|
|
text-align: right;
|
|
}
|
|
|
|
.file-transfer-entry.complete .file-transfer-bar-fill {
|
|
background: var(--accent-green, #3fb950);
|
|
}
|
|
|
|
.file-transfer-entry.error .file-transfer-bar-fill {
|
|
background: var(--accent-red, #f85149);
|
|
}
|
|
|
|
.file-transfer-entry.complete .file-transfer-pct,
|
|
.file-transfer-entry.error .file-transfer-pct {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---- Responsive ---- */
|
|
@media (max-width: 768px) {
|
|
.toolbar-device-info {
|
|
display: none;
|
|
}
|
|
|
|
.toolbar-drawer {
|
|
max-width: calc(100vw - 16px);
|
|
}
|
|
|
|
.overlay-card {
|
|
padding: 24px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.session-tab-card:hover,
|
|
.session-tab-card.is-expanded {
|
|
max-width: 140px;
|
|
min-width: 110px;
|
|
}
|
|
}
|
|
|
|
/* ---- RdClient viewer shell (fullscreen target) ---- */
|
|
.rd-viewer-shell {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.rd-viewer-shell:fullscreen {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #000;
|
|
}
|
|
|
|
.rd-viewer-shell:fullscreen .session-tab-bar {
|
|
position: relative;
|
|
top: auto;
|
|
left: auto;
|
|
right: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rd-viewer-shell:fullscreen .viewer-container {
|
|
position: relative;
|
|
top: auto;
|
|
left: auto;
|
|
right: auto;
|
|
bottom: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.toolbar-streaming .toolbar-status,
|
|
.toolbar-streaming .toolbar-status-sep {
|
|
display: none !important;
|
|
}
|
|
|
|
.toolbar-btn.disabled,
|
|
.toolbar-btn:disabled {
|
|
opacity: 0.35;
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ---- File Transfer Modal (RustDesk-style) ---- */
|
|
.file-transfer-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
padding: 24px;
|
|
}
|
|
|
|
.file-transfer-modal {
|
|
width: min(1100px, 96vw);
|
|
height: min(560px, 88vh);
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.ft-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ft-modal-title {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ft-modal-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.ft-modal-close:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.ft-modal-body {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 220px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
gap: 0;
|
|
}
|
|
|
|
.ft-pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
border-right: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.ft-pane-queue {
|
|
border-right: none;
|
|
}
|
|
|
|
.ft-pane-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #8b949e);
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.ft-pane-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 8px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ft-path {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 11px;
|
|
color: var(--text-secondary, #8b949e);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.ft-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.ft-btn:hover {
|
|
color: var(--text-primary, #e6edf3);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.ft-btn-action {
|
|
margin-left: auto;
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--accent, #3884ff);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ft-local-hint {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
color: var(--text-secondary, #8b949e);
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.ft-hint-text {
|
|
display: inline;
|
|
}
|
|
|
|
.ft-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ft-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(48, 54, 61, 0.5);
|
|
}
|
|
|
|
.ft-row:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.ft-row.selected {
|
|
background: rgba(56, 132, 255, 0.15);
|
|
}
|
|
|
|
.ft-row-icon {
|
|
font-size: 18px !important;
|
|
color: var(--text-secondary, #8b949e);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ft-row-dir .ft-row-icon {
|
|
color: #e3b341;
|
|
}
|
|
|
|
.ft-row-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ft-row-size {
|
|
font-size: 11px;
|
|
color: var(--text-secondary, #8b949e);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ft-empty {
|
|
padding: 24px 16px;
|
|
text-align: center;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ft-empty.ft-error {
|
|
color: var(--warning, #d29922);
|
|
}
|
|
|
|
.ft-pane-remote.ft-drag-over {
|
|
outline: 2px dashed var(--accent, #3884ff);
|
|
outline-offset: -4px;
|
|
}
|
|
|
|
.ft-pane-remote {
|
|
position: relative;
|
|
}
|
|
|
|
.ft-drop-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: rgba(13, 17, 23, 0.85);
|
|
color: var(--accent, #3884ff);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
padding: 16px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ft-drop-overlay[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.ft-drop-overlay .material-icons {
|
|
font-size: 36px;
|
|
}
|
|
|
|
.ft-local-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ft-local-dropzone {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
margin: 12px;
|
|
min-height: 180px;
|
|
padding: 24px 16px;
|
|
border: 2px dashed var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
user-select: none;
|
|
}
|
|
|
|
.ft-local-dropzone.compact {
|
|
flex: 0 0 auto;
|
|
min-height: 0;
|
|
padding: 10px 12px;
|
|
margin: 8px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.ft-local-dropzone.compact .ft-dropzone-icon {
|
|
font-size: 24px !important;
|
|
}
|
|
|
|
.ft-local-dropzone.compact .ft-dropzone-subtitle,
|
|
.ft-local-dropzone.compact .ft-dropzone-multiple {
|
|
display: none;
|
|
}
|
|
|
|
.ft-local-dropzone:hover:not(.ft-dropzone-disabled) {
|
|
border-color: var(--accent, #3884ff);
|
|
background: rgba(56, 132, 255, 0.04);
|
|
}
|
|
|
|
.ft-local-dropzone.ft-dropzone-active {
|
|
border-color: var(--accent, #3884ff);
|
|
background: rgba(56, 132, 255, 0.08);
|
|
}
|
|
|
|
.ft-local-dropzone.ft-dropzone-disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ft-dropzone-icon {
|
|
font-size: 40px !important;
|
|
color: var(--accent, #3884ff);
|
|
}
|
|
|
|
.ft-dropzone-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.ft-dropzone-subtitle,
|
|
.ft-dropzone-multiple {
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.ft-dropzone-target {
|
|
font-size: 11px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin-top: 4px;
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.ft-btn.active {
|
|
color: var(--accent, #3884ff);
|
|
}
|
|
|
|
.ft-overwrite-dialog {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
}
|
|
|
|
.ft-overwrite-dialog[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.ft-overwrite-panel {
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 8px;
|
|
padding: 16px 20px;
|
|
max-width: 420px;
|
|
width: 90%;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.ft-overwrite-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ft-overwrite-message {
|
|
font-size: 12px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin-bottom: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.ft-overwrite-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.ft-context-menu {
|
|
position: fixed;
|
|
z-index: 300;
|
|
min-width: 160px;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 6px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.ft-context-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary, #e6edf3);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.ft-context-item:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.ft-context-item .material-icons {
|
|
font-size: 16px;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.ft-transfer-resume {
|
|
flex-shrink: 0;
|
|
background: none;
|
|
border: none;
|
|
color: var(--accent, #3884ff);
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
border-radius: 4px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ft-transfer-resume:hover {
|
|
background: rgba(56, 132, 255, 0.12);
|
|
}
|
|
|
|
.ft-transfer-resume .material-icons {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.ft-btn:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ft-queue-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
padding: 8px;
|
|
}
|
|
|
|
.ft-queue-empty {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 12px;
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.ft-transfer-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
margin-bottom: 6px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.ft-transfer-row.done .ft-transfer-status {
|
|
color: #3fb950;
|
|
}
|
|
|
|
.ft-transfer-row.error .ft-transfer-status {
|
|
color: #f85149;
|
|
}
|
|
|
|
.ft-transfer-row.pending .ft-transfer-icon {
|
|
animation: ft-spin 1.2s linear infinite;
|
|
}
|
|
|
|
@keyframes ft-spin {
|
|
from { transform: rotate(0deg); }
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.ft-transfer-icon {
|
|
flex-shrink: 0;
|
|
font-size: 18px;
|
|
color: var(--text-secondary, #8b949e);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.ft-transfer-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ft-transfer-name {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.ft-transfer-bar {
|
|
height: 5px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.ft-transfer-fill {
|
|
height: 100%;
|
|
background: var(--accent, #3884ff);
|
|
width: 0;
|
|
transition: width 0.15s;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.ft-transfer-fill.indeterminate {
|
|
width: 40% !important;
|
|
animation: ft-indeterminate 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes ft-indeterminate {
|
|
0% { transform: translateX(-100%); }
|
|
100% { transform: translateX(350%); }
|
|
}
|
|
|
|
.ft-transfer-status {
|
|
font-size: 10px;
|
|
color: var(--text-secondary, #8b949e);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.ft-transfer-cancel {
|
|
flex-shrink: 0;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
border-radius: 4px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ft-transfer-cancel:hover {
|
|
color: #f85149;
|
|
background: rgba(248, 81, 73, 0.12);
|
|
}
|
|
|
|
.ft-transfer-cancel .material-icons {
|
|
font-size: 16px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.ft-modal-body {
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: 1fr auto;
|
|
}
|
|
|
|
.ft-pane-queue {
|
|
grid-column: 1 / -1;
|
|
max-height: 120px;
|
|
border-top: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.session-tab-card:hover,
|
|
.session-tab-card.is-expanded {
|
|
min-width: 100px;
|
|
max-width: 120px;
|
|
}
|
|
}
|
|
|
|
/* ---- Session picker modal (centered, file-transfer style) ---- */
|
|
.session-picker-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
padding: 20px;
|
|
}
|
|
|
|
.session-picker-backdrop.open {
|
|
display: flex;
|
|
}
|
|
|
|
.session-picker-panel {
|
|
width: min(880px, 96vw);
|
|
height: min(460px, 82vh);
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-secondary, #161b22);
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
border-radius: 12px;
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.session-picker-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.session-picker-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.session-picker-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.session-picker-close:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.session-picker-quick {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.session-picker-quick-input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 7px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
background: var(--bg-primary, #0d1117);
|
|
color: var(--text-primary, #e6edf3);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.session-picker-quick-input.rd-picker-input-error {
|
|
border-color: var(--accent-red, #f85149);
|
|
}
|
|
|
|
.session-picker-quick-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 7px 12px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: var(--accent-blue, #238636);
|
|
color: #fff;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-picker-quick-btn:hover {
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
.session-picker-body {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.session-picker-sidebar {
|
|
width: 168px;
|
|
flex-shrink: 0;
|
|
border-right: 1px solid var(--border-primary, #30363d);
|
|
overflow-y: auto;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.session-picker-nav-heading {
|
|
display: block;
|
|
padding: 4px 12px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.session-picker-nav-list {
|
|
list-style: none;
|
|
margin: 0 0 6px;
|
|
padding: 0;
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: 100%;
|
|
padding: 5px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-item .material-icons {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-item:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-item.active {
|
|
background: color-mix(in srgb, var(--accent-blue, #58a6ff) 15%, transparent);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-label {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-nav-count {
|
|
font-size: 10px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.session-picker-nav-list .rd-picker-tag-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--accent-blue, #58a6ff);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.session-picker-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.session-picker-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.session-picker-section-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e6edf3);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-picker-search-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.session-picker-search-icon {
|
|
position: absolute;
|
|
left: 6px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 16px !important;
|
|
color: var(--text-secondary, #8b949e);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.session-picker-search {
|
|
width: 100%;
|
|
padding: 5px 8px 5px 28px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
background: var(--bg-primary, #0d1117);
|
|
color: var(--text-primary, #e6edf3);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.session-picker-filters {
|
|
display: flex;
|
|
gap: 3px;
|
|
}
|
|
|
|
.session-picker-filters .rd-picker-filter {
|
|
padding: 4px 8px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.session-picker-filters .rd-picker-filter.active {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
border-color: var(--accent-blue, #58a6ff);
|
|
}
|
|
|
|
.session-picker-view-toggle {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
.session-picker-view-toggle .rd-picker-icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.session-picker-view-toggle .rd-picker-icon-btn .material-icons {
|
|
font-size: 18px !important;
|
|
}
|
|
|
|
.session-picker-view-toggle .rd-picker-icon-btn.active {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
.session-picker-count {
|
|
font-size: 10px;
|
|
color: var(--text-secondary, #8b949e);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.session-picker-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
}
|
|
|
|
.session-picker-loading,
|
|
.session-picker-empty,
|
|
.session-picker-error {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 24px;
|
|
color: var(--text-secondary, #8b949e);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.session-picker-loading .material-icons {
|
|
animation: rd-desk-spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes rd-desk-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.rd-picker-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.rd-picker-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: linear-gradient(160deg, var(--rd-card-bg, #1e3a5f) 0%, color-mix(in srgb, var(--rd-card-bg, #1e3a5f) 70%, #000) 100%);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
min-height: 96px;
|
|
}
|
|
|
|
.rd-picker-card-compact {
|
|
min-height: 96px;
|
|
}
|
|
|
|
.rd-picker-card:not(.rd-picker-card-disabled):hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
|
|
transition: transform 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
.rd-picker-card-disabled {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.rd-picker-card-connected {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.rd-picker-card-top {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 10px 6px 2px;
|
|
}
|
|
|
|
.rd-picker-card-os {
|
|
font-size: 26px !important;
|
|
color: rgba(255, 255, 255, 0.92);
|
|
}
|
|
|
|
.rd-picker-card-body {
|
|
flex: 1;
|
|
padding: 0 6px 2px;
|
|
text-align: center;
|
|
}
|
|
|
|
.rd-picker-card-name {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.rd-picker-card-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.rd-picker-card-tag {
|
|
font-size: 9px;
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.rd-picker-card-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 6px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.rd-picker-card-id {
|
|
flex: 1;
|
|
font-size: 9px;
|
|
font-family: monospace;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.rd-picker-status-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rd-picker-status-dot.online { background: #3fb950; }
|
|
.rd-picker-status-dot.offline { background: #8b949e; }
|
|
.rd-picker-status-dot.banned { background: #f85149; }
|
|
.rd-picker-status-dot.no_signal { background: #d29922; }
|
|
|
|
.rd-picker-card-connect {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 22px;
|
|
height: 22px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rd-picker-card-connect:hover {
|
|
background: rgba(255, 255, 255, 0.28);
|
|
}
|
|
|
|
.rd-picker-card-connect .material-icons {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
.rd-picker-connected-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.rd-picker-connected-badge .material-icons {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
.rd-picker-table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.rd-picker-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.rd-picker-table th,
|
|
.rd-picker-table td {
|
|
padding: 6px 8px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-primary, #30363d);
|
|
}
|
|
|
|
.rd-picker-table th {
|
|
color: var(--text-secondary, #8b949e);
|
|
font-weight: 500;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.rd-picker-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
border-radius: 5px;
|
|
border: none;
|
|
background: var(--accent-blue, #238636);
|
|
color: #fff;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rd-picker-btn-sm {
|
|
padding: 3px 7px;
|
|
}
|
|
|
|
.rd-picker-btn-ghost {
|
|
background: transparent;
|
|
border: 1px solid var(--border-primary, #30363d);
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.rd-picker-connected-label {
|
|
font-size: 10px;
|
|
color: var(--text-secondary, #8b949e);
|
|
}
|
|
|
|
.rd-picker-spinning .material-icons {
|
|
animation: rd-desk-spin 1s linear infinite;
|
|
}
|
|
|
|
#session-picker-refresh.rd-picker-icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
background: transparent;
|
|
color: var(--text-secondary, #8b949e);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#session-picker-refresh.rd-picker-icon-btn:hover {
|
|
background: var(--bg-tertiary, #21262d);
|
|
color: var(--text-primary, #e6edf3);
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.session-picker-panel {
|
|
width: 96vw;
|
|
height: min(520px, 90vh);
|
|
}
|
|
|
|
.session-picker-sidebar {
|
|
width: 140px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.session-picker-sidebar {
|
|
display: none;
|
|
}
|
|
}
|