Spaces:
Sleeping
Sleeping
fix(sidepanel.html): add CRITICAL severity filter button, tag styles, card border color
Browse files- extension/sidepanel.html +4 -0
extension/sidepanel.html
CHANGED
|
@@ -29,6 +29,7 @@
|
|
| 29 |
.filter-btn.active { background: #18181b; color: #fff; border-color: #18181b; }
|
| 30 |
.filter-count { font-size: 10px; opacity: 0.6; }
|
| 31 |
.dot { width: 6px; height: 6px; border-radius: 50%; }
|
|
|
|
| 32 |
.dot-red { background: #ef4444; }
|
| 33 |
.dot-amber { background: #f59e0b; }
|
| 34 |
.dot-blue { background: #3b82f6; }
|
|
@@ -36,6 +37,7 @@
|
|
| 36 |
.clause-list { padding: 8px; }
|
| 37 |
.clause-card { border: 1px solid #e4e4e7; border-radius: 10px; padding: 12px; margin-bottom: 6px; transition: all 0.15s; cursor: default; }
|
| 38 |
.clause-card:hover { border-color: #d4d4d8; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
|
|
|
|
| 39 |
.clause-card.sev-high { border-left: 3px solid #ef4444; }
|
| 40 |
.clause-card.sev-medium { border-left: 3px solid #f59e0b; }
|
| 41 |
.clause-card.sev-low { border-left: 3px solid #3b82f6; }
|
|
@@ -43,6 +45,7 @@
|
|
| 43 |
.clause-tags { display: flex; flex-wrap: wrap; gap: 4px; }
|
| 44 |
.tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid; display: inline-flex; align-items: center; gap: 3px; }
|
| 45 |
.tag svg { width: 10px; height: 10px; }
|
|
|
|
| 46 |
.tag-high { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
|
| 47 |
.tag-medium { background: #fffbeb; color: #a16207; border-color: #fde68a; }
|
| 48 |
.tag-low { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
|
|
@@ -71,6 +74,7 @@
|
|
| 71 |
|
| 72 |
<div class="filters" id="filters" style="display:none;">
|
| 73 |
<button class="filter-btn active" data-filter="all">All</button>
|
|
|
|
| 74 |
<button class="filter-btn" data-filter="HIGH"><span class="dot dot-red"></span>High <span class="filter-count" id="fc-high">0</span></button>
|
| 75 |
<button class="filter-btn" data-filter="MEDIUM"><span class="dot dot-amber"></span>Medium <span class="filter-count" id="fc-med">0</span></button>
|
| 76 |
<button class="filter-btn" data-filter="LOW"><span class="dot dot-blue"></span>Low <span class="filter-count" id="fc-low">0</span></button>
|
|
|
|
| 29 |
.filter-btn.active { background: #18181b; color: #fff; border-color: #18181b; }
|
| 30 |
.filter-count { font-size: 10px; opacity: 0.6; }
|
| 31 |
.dot { width: 6px; height: 6px; border-radius: 50%; }
|
| 32 |
+
.dot-purple { background: #a855f7; }
|
| 33 |
.dot-red { background: #ef4444; }
|
| 34 |
.dot-amber { background: #f59e0b; }
|
| 35 |
.dot-blue { background: #3b82f6; }
|
|
|
|
| 37 |
.clause-list { padding: 8px; }
|
| 38 |
.clause-card { border: 1px solid #e4e4e7; border-radius: 10px; padding: 12px; margin-bottom: 6px; transition: all 0.15s; cursor: default; }
|
| 39 |
.clause-card:hover { border-color: #d4d4d8; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
|
| 40 |
+
.clause-card.sev-critical { border-left: 3px solid #a855f7; }
|
| 41 |
.clause-card.sev-high { border-left: 3px solid #ef4444; }
|
| 42 |
.clause-card.sev-medium { border-left: 3px solid #f59e0b; }
|
| 43 |
.clause-card.sev-low { border-left: 3px solid #3b82f6; }
|
|
|
|
| 45 |
.clause-tags { display: flex; flex-wrap: wrap; gap: 4px; }
|
| 46 |
.tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid; display: inline-flex; align-items: center; gap: 3px; }
|
| 47 |
.tag svg { width: 10px; height: 10px; }
|
| 48 |
+
.tag-critical { background: #faf5ff; color: #7c3aed; border-color: #d8b4fe; }
|
| 49 |
.tag-high { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
|
| 50 |
.tag-medium { background: #fffbeb; color: #a16207; border-color: #fde68a; }
|
| 51 |
.tag-low { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
|
|
|
|
| 74 |
|
| 75 |
<div class="filters" id="filters" style="display:none;">
|
| 76 |
<button class="filter-btn active" data-filter="all">All</button>
|
| 77 |
+
<button class="filter-btn" data-filter="CRITICAL" id="filter-critical" style="display:none;"><span class="dot dot-purple"></span>Critical <span class="filter-count" id="fc-crit">0</span></button>
|
| 78 |
<button class="filter-btn" data-filter="HIGH"><span class="dot dot-red"></span>High <span class="filter-count" id="fc-high">0</span></button>
|
| 79 |
<button class="filter-btn" data-filter="MEDIUM"><span class="dot dot-amber"></span>Medium <span class="filter-count" id="fc-med">0</span></button>
|
| 80 |
<button class="filter-btn" data-filter="LOW"><span class="dot dot-blue"></span>Low <span class="filter-count" id="fc-low">0</span></button>
|