mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 07:10:00 -07:00
- Add help modal system with keyboard shortcuts reference - Add Main Dashboard button in navigation bar - Make settings modal accessible from all dashboards - Dashboard CSS improvements and consistency fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
185 lines
3.8 KiB
CSS
185 lines
3.8 KiB
CSS
/**
|
|
* Help Modal Styles
|
|
* Shared across all pages that include the help modal partial
|
|
*/
|
|
|
|
.help-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
z-index: 10000;
|
|
overflow-y: auto;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.help-modal.active {
|
|
display: block;
|
|
}
|
|
|
|
.help-content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background: var(--bg-card, var(--bg-secondary, #0f1218));
|
|
border: 1px solid var(--border-color, #1f2937);
|
|
border-radius: 8px;
|
|
padding: 30px;
|
|
position: relative;
|
|
}
|
|
|
|
.help-content h2 {
|
|
color: var(--accent-cyan, #4a9eff);
|
|
margin-bottom: 20px;
|
|
font-size: 24px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.help-content h3 {
|
|
color: var(--text-primary, #e8eaed);
|
|
margin: 25px 0 15px 0;
|
|
font-size: 14px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
border-bottom: 1px solid var(--border-color, #1f2937);
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.help-close {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-dim, #4b5563);
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.help-close:hover {
|
|
color: var(--accent-red, #ef4444);
|
|
}
|
|
|
|
.help-modal .icon-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.help-modal .icon-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
background: var(--bg-primary, #0a0c10);
|
|
border: 1px solid var(--border-color, #1f2937);
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.help-modal .icon-item .icon {
|
|
font-size: 18px;
|
|
width: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.help-modal .icon-item .desc {
|
|
color: var(--text-secondary, #9ca3af);
|
|
}
|
|
|
|
.help-modal .tip-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.help-modal .tip-list li {
|
|
padding: 8px 0;
|
|
padding-left: 20px;
|
|
position: relative;
|
|
color: var(--text-secondary, #9ca3af);
|
|
font-size: 13px;
|
|
border-bottom: 1px solid var(--border-color, #1f2937);
|
|
}
|
|
|
|
.help-modal .tip-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.help-modal .tip-list li::before {
|
|
content: '\203A';
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--accent-cyan, #4a9eff);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.help-tabs {
|
|
display: flex;
|
|
gap: 0;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--border-color, #1f2937);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.help-tab {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: var(--bg-primary, #0a0c10);
|
|
border: none;
|
|
color: var(--text-secondary, #9ca3af);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
transition: all 0.15s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.help-tab:not(:last-child) {
|
|
border-right: 1px solid var(--border-color, #1f2937);
|
|
}
|
|
|
|
.help-tab:hover {
|
|
background: var(--bg-tertiary, #151a23);
|
|
color: var(--text-primary, #e8eaed);
|
|
}
|
|
|
|
.help-tab.active {
|
|
background: var(--bg-tertiary, #151a23);
|
|
color: var(--accent-cyan, #4a9eff);
|
|
}
|
|
|
|
.help-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--accent-cyan, #4a9eff);
|
|
}
|
|
|
|
.help-section {
|
|
display: none;
|
|
}
|
|
|
|
.help-section.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Ensure code tags are styled */
|
|
.help-modal code {
|
|
background: var(--bg-tertiary, #151a23);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
font-size: 11px;
|
|
color: var(--accent-cyan, #4a9eff);
|
|
}
|