site: revert CVE table → pill grid
The sortable table was denser but lost the visual scan-ability of the color-coded pill grid. Restoring the pill view: two grouped sections (🟢 / 🟡) each showing every module name as a pill. Drops the table-sort JS (~25 lines) and the .cve-table CSS block.
This commit is contained in:
@@ -253,66 +253,6 @@ section h3 {
|
||||
.pill.green { border-color: rgba(63, 185, 80, 0.4); color: var(--green); }
|
||||
.pill.yellow { border-color: rgba(210, 153, 34, 0.4); color: var(--yellow); }
|
||||
|
||||
/* CVE table */
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--bg-elevated);
|
||||
}
|
||||
table.cve-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
table.cve-table th,
|
||||
table.cve-table td {
|
||||
text-align: left;
|
||||
padding: 0.55rem 0.85rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
vertical-align: top;
|
||||
white-space: nowrap;
|
||||
}
|
||||
table.cve-table th {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
color: var(--text-muted);
|
||||
font-weight: 600;
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
table.cve-table th.sortable { cursor: pointer; user-select: none; }
|
||||
table.cve-table th.sortable:hover { color: var(--text); }
|
||||
table.cve-table th[data-dir="asc"]::after { content: " ▲"; opacity: 0.7; }
|
||||
table.cve-table th[data-dir="desc"]::after { content: " ▼"; opacity: 0.7; }
|
||||
table.cve-table td:nth-child(3) { white-space: normal; min-width: 280px; }
|
||||
table.cve-table tr:last-child td { border-bottom: none; }
|
||||
table.cve-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
|
||||
table.cve-table code {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.05rem 0.3rem;
|
||||
border-radius: 3px;
|
||||
font-size: 0.86em;
|
||||
}
|
||||
|
||||
.tier {
|
||||
display: inline-block;
|
||||
font-family: var(--mono);
|
||||
font-size: 0.78rem;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.tier.green { color: var(--green); border-color: rgba(63, 185, 80, 0.4); }
|
||||
.tier.yellow { color: var(--yellow); border-color: rgba(210, 153, 34, 0.4); }
|
||||
|
||||
@media (max-width: 600px) {
|
||||
table.cve-table { font-size: 0.82rem; }
|
||||
table.cve-table th,
|
||||
table.cve-table td { padding: 0.45rem 0.6rem; }
|
||||
}
|
||||
|
||||
/* Code block */
|
||||
pre.code {
|
||||
background: var(--bg-elevated);
|
||||
|
||||
Reference in New Issue
Block a user