415 lines
6.6 KiB
CSS
415 lines
6.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--bg-primary: #0b0f14;
|
|
--bg-secondary: #0f141b;
|
|
--bg-tertiary: #161b22;
|
|
--border: #2d333b;
|
|
--gridline: #21262d;
|
|
--text-primary: #e6edf3;
|
|
--text-secondary: #c9d1d9;
|
|
--text-muted: #6e7681;
|
|
--accent: #2f81f7;
|
|
--green: #3fb950;
|
|
--yellow: #d29922;
|
|
--red: #f85149;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
font-size: 13px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header {
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 12px 20px;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
header .subtitle {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
padding: 16px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.upload-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.upload-info {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.scan-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.progress-bar-container {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 10px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.progress-bar-track {
|
|
flex: 1;
|
|
height: 8px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar-fill {
|
|
height: 100%;
|
|
width: 0%;
|
|
background: var(--accent);
|
|
border-radius: 4px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
min-width: 100px;
|
|
text-align: right;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
.context-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.context-selector label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
select {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 6px 12px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
select:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #1f2630;
|
|
}
|
|
|
|
.btn:disabled {
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #388bfd;
|
|
}
|
|
|
|
.btn-scan {
|
|
background: #238636;
|
|
border-color: #2ea043;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-scan:hover {
|
|
background: #2ea043;
|
|
}
|
|
|
|
.btn-scan:disabled {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--border);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.btn-export {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.btn-sanitize {
|
|
background: #3d1e00;
|
|
border-color: #7e4b1a;
|
|
color: #f0a030;
|
|
}
|
|
|
|
.btn-sanitize:hover:not(:disabled) {
|
|
background: #4a2500;
|
|
}
|
|
|
|
.btn-sanitize:disabled {
|
|
color: var(--text-muted);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.results-container {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 16px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-section {
|
|
flex: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.table-wrapper {
|
|
flex: 1;
|
|
overflow: auto;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
th {
|
|
background: var(--bg-tertiary);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th.sortable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
th.sortable:hover {
|
|
background: #1f2630;
|
|
}
|
|
|
|
th.sortable::after {
|
|
content: ' \25B4\25BE';
|
|
font-size: 10px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
th.sortable.asc::after {
|
|
content: ' \25B4';
|
|
opacity: 0.8;
|
|
}
|
|
|
|
th.sortable.desc::after {
|
|
content: ' \25BE';
|
|
opacity: 0.8;
|
|
}
|
|
|
|
td {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--gridline);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
tr {
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
tr:hover {
|
|
background: rgba(47, 129, 247, 0.08);
|
|
}
|
|
|
|
tr.selected {
|
|
background: rgba(47, 129, 247, 0.15);
|
|
}
|
|
|
|
td.path-cell {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.empty-state {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.details-section {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 280px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.details-section h3 {
|
|
font-size: 14px;
|
|
margin-bottom: 8px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.details-content {
|
|
flex: 1;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
overflow: auto;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.export-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.status-bar {
|
|
background: var(--bg-tertiary);
|
|
border-top: 1px solid var(--border);
|
|
padding: 6px 20px;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status-bar::before {
|
|
content: '';
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--green);
|
|
}
|
|
|
|
.level-LOW {
|
|
color: var(--green);
|
|
}
|
|
|
|
.level-MEDIUM {
|
|
color: var(--yellow);
|
|
}
|
|
|
|
.level-HIGH {
|
|
color: var(--red);
|
|
}
|
|
|
|
.level-CRITICAL {
|
|
color: var(--red);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.finding-LOW {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.finding-MEDIUM {
|
|
color: var(--yellow);
|
|
}
|
|
|
|
.finding-HIGH {
|
|
color: var(--red);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.results-container {
|
|
flex-direction: column;
|
|
}
|
|
.details-section {
|
|
max-width: none;
|
|
}
|
|
}
|