mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 22:59:59 -07:00
Add theme-aware severity/neon CSS variables and replace hardcoded hex colors (#fff, #000, #00ff88, #ffcc00, etc.) with var() references across 26 files so text remains readable in both dark and light themes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
569 lines
12 KiB
CSS
569 lines
12 KiB
CSS
/* Settings Modal Styles */
|
|
|
|
.settings-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
z-index: 10000;
|
|
overflow-y: auto;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.settings-modal.active {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.settings-content {
|
|
background: var(--bg-dark, #0a0a0f);
|
|
border: 1px solid var(--border-color, #1a1a2e);
|
|
border-radius: 8px;
|
|
max-width: 900px;
|
|
width: 100%;
|
|
max-height: calc(100vh - 80px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.settings-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-color, #1a1a2e);
|
|
}
|
|
|
|
.settings-header h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e0e0e0);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-header h2 .icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
.settings-close {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted, #666);
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
line-height: 1;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.settings-close:hover {
|
|
color: var(--accent-red, #ff4444);
|
|
}
|
|
|
|
/* Settings Tabs */
|
|
.settings-tabs {
|
|
display: grid;
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
border-bottom: 1px solid var(--border-color, #1a1a2e);
|
|
padding: 0 20px;
|
|
gap: 0;
|
|
}
|
|
|
|
.settings-tab {
|
|
background: none;
|
|
border: none;
|
|
padding: 12px 10px;
|
|
color: var(--text-muted, #666);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: color 0.2s;
|
|
min-width: 0;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.settings-tab:hover {
|
|
color: var(--text-primary, #e0e0e0);
|
|
}
|
|
|
|
.settings-tab.active {
|
|
color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
.settings-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
/* Settings Sections */
|
|
.settings-section {
|
|
display: none;
|
|
padding: 20px;
|
|
}
|
|
|
|
.settings-section.active {
|
|
display: block;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.settings-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.settings-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.settings-group-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-muted, #666);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Settings Row */
|
|
.settings-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.settings-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.settings-label-text {
|
|
font-size: 13px;
|
|
color: var(--text-primary, #e0e0e0);
|
|
}
|
|
|
|
.settings-label-desc {
|
|
font-size: 11px;
|
|
color: var(--text-muted, #666);
|
|
}
|
|
|
|
/* Settings Feed Lists */
|
|
.settings-feed {
|
|
background: var(--bg-tertiary, #12121f);
|
|
border: 1px solid var(--border-color, #1a1a2e);
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
max-height: 240px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.settings-feed-item {
|
|
padding: 8px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.settings-feed-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.settings-feed-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #e0e0e0);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.settings-feed-meta {
|
|
color: var(--text-muted, #666);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.settings-feed-empty {
|
|
color: var(--text-dim, #666);
|
|
text-align: center;
|
|
padding: 20px 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Toggle Switch */
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 24px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.toggle-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--bg-tertiary, #1a1a2e);
|
|
border: 1px solid var(--border-color, #2a2a3e);
|
|
transition: 0.3s;
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.toggle-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: var(--text-muted, #666);
|
|
transition: 0.3s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-slider {
|
|
background-color: var(--accent-cyan, #00d4ff);
|
|
border-color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
.toggle-switch input:checked + .toggle-slider:before {
|
|
transform: translateX(20px);
|
|
background-color: var(--text-inverse);
|
|
}
|
|
|
|
.toggle-switch input:focus + .toggle-slider {
|
|
box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3);
|
|
}
|
|
|
|
/* Select Dropdown */
|
|
.settings-select {
|
|
background: var(--bg-tertiary, #1a1a2e);
|
|
border: 1px solid var(--border-color, #2a2a3e);
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-primary, #e0e0e0);
|
|
min-width: 160px;
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 8px center;
|
|
padding-right: 32px;
|
|
}
|
|
|
|
.settings-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
/* Text Input */
|
|
.settings-input {
|
|
background: var(--bg-tertiary, #1a1a2e);
|
|
border: 1px solid var(--border-color, #2a2a3e);
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
color: var(--text-primary, #e0e0e0);
|
|
width: 200px;
|
|
}
|
|
|
|
.settings-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
.settings-input::placeholder {
|
|
color: var(--text-muted, #666);
|
|
}
|
|
|
|
/* Asset Status */
|
|
.asset-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
background: var(--bg-secondary, #0f0f1a);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.asset-status-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.asset-name {
|
|
color: var(--text-muted, #888);
|
|
}
|
|
|
|
.asset-badge {
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.asset-badge.available {
|
|
background: rgba(0, 255, 136, 0.15);
|
|
color: var(--accent-green, #00ff88);
|
|
}
|
|
|
|
.asset-badge.missing {
|
|
background: rgba(255, 68, 68, 0.15);
|
|
color: var(--accent-red, #ff4444);
|
|
}
|
|
|
|
.asset-badge.checking {
|
|
background: rgba(255, 170, 0, 0.15);
|
|
color: var(--accent-orange, #ffaa00);
|
|
}
|
|
|
|
/* Check Assets Button */
|
|
.check-assets-btn {
|
|
background: var(--bg-tertiary, #1a1a2e);
|
|
border: 1px solid var(--border-color, #2a2a3e);
|
|
color: var(--text-primary, #e0e0e0);
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
margin-top: 12px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.check-assets-btn:hover {
|
|
border-color: var(--accent-cyan, #00d4ff);
|
|
color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
.check-assets-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* GPS Detection Spinner */
|
|
.detecting-spinner {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid currentColor;
|
|
border-top-color: transparent;
|
|
border-radius: 50%;
|
|
animation: detecting-spin 0.8s linear infinite;
|
|
vertical-align: middle;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
@keyframes detecting-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* About Section */
|
|
.about-info {
|
|
font-size: 13px;
|
|
color: var(--text-muted, #888);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.about-info p {
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.about-info a {
|
|
color: var(--accent-cyan, #00d4ff);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.about-info a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.about-version {
|
|
font-family: var(--font-mono);
|
|
color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
/* Donate Button */
|
|
.donate-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 20px;
|
|
background: linear-gradient(135deg, var(--accent-amber, #d4a853) 0%, var(--accent-orange, #f59e0b) 100%);
|
|
border: none;
|
|
border-radius: 6px;
|
|
color: var(--text-inverse);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 8px rgba(212, 168, 83, 0.3);
|
|
}
|
|
|
|
.donate-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(212, 168, 83, 0.4);
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.donate-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Tile Provider Custom URL */
|
|
.custom-url-row {
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.custom-url-row .settings-input {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Info Callout */
|
|
.settings-info {
|
|
background: rgba(0, 212, 255, 0.1);
|
|
border: 1px solid rgba(0, 212, 255, 0.2);
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
margin-top: 16px;
|
|
font-size: 12px;
|
|
color: var(--text-muted, #888);
|
|
}
|
|
|
|
.settings-info strong {
|
|
color: var(--accent-cyan, #00d4ff);
|
|
}
|
|
|
|
/* Map tile variants */
|
|
.tile-layer-cyan {
|
|
filter: sepia(0.35) hue-rotate(185deg) saturate(1.75) brightness(1.06) contrast(1.05);
|
|
}
|
|
|
|
/* Global Leaflet map theme: cyber overlay */
|
|
.leaflet-container.map-theme-cyber {
|
|
position: relative;
|
|
background: #020813;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.leaflet-container.map-theme-cyber .leaflet-tile-pane {
|
|
filter: sepia(0.74) hue-rotate(176deg) saturate(1.72) brightness(1.05) contrast(1.08);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Hard global fallback: enforce cyber tint on all Leaflet tile images */
|
|
html.map-cyber-enabled .leaflet-container .leaflet-tile {
|
|
filter: sepia(0.74) hue-rotate(176deg) saturate(1.72) brightness(1.05) contrast(1.08) !important;
|
|
}
|
|
|
|
/* Hard global fallback: cyber glow + grid overlay */
|
|
html.map-cyber-enabled .leaflet-container {
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
html.map-cyber-enabled .leaflet-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 620;
|
|
background:
|
|
radial-gradient(95% 78% at 50% 44%, rgba(18, 170, 255, 0.17), rgba(18, 170, 255, 0) 64%),
|
|
linear-gradient(180deg, rgba(24, 118, 255, 0.045), rgba(24, 118, 255, 0));
|
|
}
|
|
|
|
html.map-cyber-enabled .leaflet-container::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 621;
|
|
opacity: 0.42;
|
|
mix-blend-mode: screen;
|
|
background-image:
|
|
linear-gradient(rgba(78, 188, 255, 0.14) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(78, 188, 255, 0.14) 1px, transparent 1px);
|
|
background-size: 52px 52px, 52px 52px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 960px) {
|
|
.settings-tabs {
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.settings-modal.active {
|
|
padding: 20px 10px;
|
|
}
|
|
|
|
.settings-content {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.settings-tabs {
|
|
padding: 0 10px;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.settings-tab {
|
|
padding: 10px 6px;
|
|
font-size: 11px;
|
|
white-space: normal;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.settings-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-select,
|
|
.settings-input {
|
|
width: 100%;
|
|
}
|
|
}
|