mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 14:11:54 -07:00
a58e2f0d21
- Add centralized design tokens in static/css/core/variables.css - Create reusable base templates (base.html, base_dashboard.html) - Add unified navigation partial (partials/nav.html) with all modules - Create reusable UI components (card, loading, empty_state, status_badge, stats_strip) - Integrate navigation into ADSB, AIS, and Satellite dashboards - Consolidate CSS by importing shared variables in dashboard stylesheets - Add comprehensive UI_GUIDE.md documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
330 lines
7.5 KiB
CSS
330 lines
7.5 KiB
CSS
/**
|
|
* INTERCEPT Base Styles
|
|
* Reset, typography, and foundational element styles
|
|
* Requires: variables.css to be imported first
|
|
*/
|
|
|
|
/* ============================================
|
|
CSS RESET
|
|
============================================ */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
-webkit-text-size-adjust: 100%;
|
|
-moz-tab-size: 4;
|
|
tab-size: 4;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
color: var(--text-primary);
|
|
background: var(--bg-primary);
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* ============================================
|
|
TYPOGRAPHY
|
|
============================================ */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: var(--font-semibold);
|
|
line-height: var(--leading-tight);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
h1 { font-size: var(--text-4xl); }
|
|
h2 { font-size: var(--text-3xl); }
|
|
h3 { font-size: var(--text-2xl); }
|
|
h4 { font-size: var(--text-xl); }
|
|
h5 { font-size: var(--text-lg); }
|
|
h6 { font-size: var(--text-base); }
|
|
|
|
p {
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-cyan);
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--accent-cyan-hover);
|
|
}
|
|
|
|
a:focus-visible {
|
|
outline: 2px solid var(--border-focus);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
strong, b {
|
|
font-weight: var(--font-semibold);
|
|
}
|
|
|
|
small {
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
code, kbd, pre, samp {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
code {
|
|
background: var(--bg-tertiary);
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
pre {
|
|
background: var(--bg-tertiary);
|
|
padding: var(--space-4);
|
|
border-radius: var(--radius-md);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
FORM ELEMENTS
|
|
============================================ */
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
border: none;
|
|
background: none;
|
|
}
|
|
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-2) var(--space-3);
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
input:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent-cyan);
|
|
box-shadow: 0 0 0 3px var(--accent-cyan-dim);
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
select {
|
|
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='%239ca3af' 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: 28px;
|
|
}
|
|
|
|
input[type="checkbox"],
|
|
input[type="radio"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
accent-color: var(--accent-cyan);
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
/* ============================================
|
|
TABLES
|
|
============================================ */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: var(--space-2) var(--space-3);
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
th {
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-secondary);
|
|
background: var(--bg-secondary);
|
|
text-transform: uppercase;
|
|
font-size: var(--text-xs);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
tr:hover td {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* ============================================
|
|
LISTS
|
|
============================================ */
|
|
ul, ol {
|
|
padding-left: var(--space-6);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
li {
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITY CLASSES
|
|
============================================ */
|
|
|
|
/* Text colors */
|
|
.text-primary { color: var(--text-primary); }
|
|
.text-secondary { color: var(--text-secondary); }
|
|
.text-muted { color: var(--text-muted); }
|
|
.text-cyan { color: var(--accent-cyan); }
|
|
.text-green { color: var(--accent-green); }
|
|
.text-red { color: var(--accent-red); }
|
|
.text-orange { color: var(--accent-orange); }
|
|
.text-amber { color: var(--accent-amber); }
|
|
|
|
/* Font utilities */
|
|
.font-mono { font-family: var(--font-mono); }
|
|
.font-medium { font-weight: var(--font-medium); }
|
|
.font-semibold { font-weight: var(--font-semibold); }
|
|
.font-bold { font-weight: var(--font-bold); }
|
|
|
|
/* Text sizes */
|
|
.text-xs { font-size: var(--text-xs); }
|
|
.text-sm { font-size: var(--text-sm); }
|
|
.text-base { font-size: var(--text-base); }
|
|
.text-lg { font-size: var(--text-lg); }
|
|
.text-xl { font-size: var(--text-xl); }
|
|
|
|
/* Display */
|
|
.hidden { display: none !important; }
|
|
.block { display: block; }
|
|
.inline-block { display: inline-block; }
|
|
.flex { display: flex; }
|
|
.inline-flex { display: inline-flex; }
|
|
.grid { display: grid; }
|
|
|
|
/* Flexbox */
|
|
.items-center { align-items: center; }
|
|
.justify-center { justify-content: center; }
|
|
.justify-between { justify-content: space-between; }
|
|
.flex-1 { flex: 1; }
|
|
.gap-1 { gap: var(--space-1); }
|
|
.gap-2 { gap: var(--space-2); }
|
|
.gap-3 { gap: var(--space-3); }
|
|
.gap-4 { gap: var(--space-4); }
|
|
|
|
/* Spacing */
|
|
.m-0 { margin: 0; }
|
|
.mt-2 { margin-top: var(--space-2); }
|
|
.mt-4 { margin-top: var(--space-4); }
|
|
.mb-2 { margin-bottom: var(--space-2); }
|
|
.mb-4 { margin-bottom: var(--space-4); }
|
|
.p-2 { padding: var(--space-2); }
|
|
.p-3 { padding: var(--space-3); }
|
|
.p-4 { padding: var(--space-4); }
|
|
|
|
/* Borders */
|
|
.rounded { border-radius: var(--radius-md); }
|
|
.rounded-lg { border-radius: var(--radius-lg); }
|
|
.border { border: 1px solid var(--border-color); }
|
|
|
|
/* Truncate text */
|
|
.truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Screen reader only */
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
SCROLLBAR STYLING
|
|
============================================ */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-light);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-dim);
|
|
}
|
|
|
|
/* Firefox scrollbar */
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border-light) var(--bg-secondary);
|
|
}
|
|
|
|
/* ============================================
|
|
SELECTION
|
|
============================================ */
|
|
::selection {
|
|
background: var(--accent-cyan-dim);
|
|
color: var(--text-primary);
|
|
}
|