File size: 3,299 Bytes
09edf62 e900dee | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /* ============================================================
Fourier Transform Visualizer - Specific Styles
============================================================ */
/* Wave Section Styling */
.wave-section {
background: var(--color-surface-alt);
border-radius: var(--radius-md);
padding: var(--space-md);
margin-bottom: var(--space-md);
}
.wave-section:last-child {
margin-bottom: 0;
}
.wave-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-sm);
}
.wave-header .control-label {
margin-bottom: 0;
font-weight: 600;
font-size: 0.875rem;
}
.wave-color {
width: 16px;
height: 16px;
border-radius: 50%;
display: inline-block;
border: 2px solid var(--color-surface);
box-shadow: var(--shadow-sm);
}
/* Checkbox input styling */
.checkbox-input {
margin-right: var(--space-sm);
width: 16px;
height: 16px;
cursor: pointer;
accent-color: var(--color-accent);
}
/* Disabled wave section styling */
.wave-section.disabled {
opacity: 0.5;
}
.wave-section.disabled .slider {
pointer-events: none;
}
/* Control group spacing in wave sections */
.wave-section .control-group {
margin-bottom: var(--space-sm);
}
.wave-section .control-group:last-child {
margin-bottom: 0;
}
/* Phase spectrum card transition */
#phaseCard {
transition: opacity var(--transition-normal);
}
/* Metrics display enhancements */
.metrics-display .metric-item {
padding: var(--space-sm) var(--space-md);
background: var(--color-surface);
border-radius: var(--radius-sm);
border: 1px solid var(--color-border);
}
/* Frequency value styling */
#freq1Value, #freq2Value, #freq3Value, #freq4Value {
color: var(--color-accent);
}
/* Responsive adjustments */
@media (max-width: 1200px) {
.metrics-display {
grid-template-columns: 1fr !important;
}
}
@media (max-width: 600px) {
.wave-section {
padding: var(--space-sm);
}
.metrics-display .metric-item {
flex-direction: column;
align-items: flex-start;
gap: var(--space-xs);
}
}
/* Tooltip for help icon */
.help-tooltip {
display: inline-block;
cursor: help;
margin-left: 4px;
font-size: 0.9em;
color: var(--color-primary);
position: relative;
vertical-align: middle;
}
.help-tooltip:hover::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: var(--color-bg-secondary);
color: var(--color-text);
padding: 8px 12px;
border-radius: 4px;
font-size: 0.75rem;
white-space: normal;
width: 300px;
max-width: 300px;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
border: 1px solid var(--color-border);
margin-bottom: 8px;
text-align: left;
line-height: 1.4;
}
.help-tooltip::before {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent var(--color-border) transparent;
opacity: 0;
transition: opacity 0.2s;
margin-bottom: 2px;
}
.help-tooltip:hover::before {
opacity: 1;
}
|