mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50:00 -07:00
Fix "What's New" section shifting up/down on smaller screens (#157) by isolating the logo pulse animation to its own compositing layer, stabilizing the scrollbar gutter, and pinning the welcome container dimensions. Morse mode improvements: relocate scope and decoded output panels to the main content area, use shared SDR device controls, and reduce panel heights for better layout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
119 lines
2.4 KiB
CSS
119 lines
2.4 KiB
CSS
/* Morse Code / CW Decoder Styles */
|
|
|
|
/* Scope canvas container */
|
|
.morse-scope-container {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.morse-scope-container canvas {
|
|
width: 100%;
|
|
height: 80px;
|
|
display: block;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Decoded text panel */
|
|
.morse-decoded-panel {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
min-height: 120px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
font-family: var(--font-mono);
|
|
font-size: 18px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.morse-decoded-panel:empty::before {
|
|
content: 'Decoded text will appear here...';
|
|
color: var(--text-dim);
|
|
font-size: 14px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Individual decoded character with fade-in */
|
|
.morse-char {
|
|
display: inline;
|
|
animation: morseFadeIn 0.3s ease-out;
|
|
position: relative;
|
|
}
|
|
|
|
@keyframes morseFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
color: var(--accent-cyan);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
color: var(--text-primary);
|
|
}
|
|
}
|
|
|
|
/* Small Morse notation above character */
|
|
.morse-char-morse {
|
|
font-size: 9px;
|
|
color: var(--text-dim);
|
|
letter-spacing: 1px;
|
|
display: block;
|
|
line-height: 1;
|
|
margin-bottom: -2px;
|
|
}
|
|
|
|
/* Reference grid */
|
|
.morse-ref-grid {
|
|
transition: max-height 0.3s ease, opacity 0.3s ease;
|
|
max-height: 500px;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.morse-ref-grid.collapsed {
|
|
max-height: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Toolbar: export/copy/clear */
|
|
.morse-toolbar {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.morse-toolbar .btn {
|
|
font-size: 11px;
|
|
padding: 4px 10px;
|
|
}
|
|
|
|
/* Status bar at bottom */
|
|
.morse-status-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
color: var(--text-dim);
|
|
padding: 6px 0;
|
|
border-top: 1px solid var(--border-color);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.morse-status-bar .status-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Word space styling */
|
|
.morse-word-space {
|
|
display: inline;
|
|
width: 0.5em;
|
|
}
|