Spaces:
Sleeping
Sleeping
File size: 2,430 Bytes
9548e93 dafbffe 9548e93 dafbffe 9548e93 dafbffe 9548e93 dafbffe 9548e93 dafbffe 9548e93 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | /* ClauseGuard — Content Script Styles (injected into web pages) */
/* v4.3: Added CRITICAL severity styles */
/* Highlight severity levels */
.clauseguard-highlight {
cursor: pointer;
border-radius: 2px;
padding: 1px 0;
transition: background-color 0.2s ease;
position: relative;
}
/* CRITICAL — purple (most severe) */
.clauseguard-critical {
background: rgba(168, 85, 247, 0.22);
border-bottom: 2.5px solid #a855f7;
}
.clauseguard-critical:hover {
background: rgba(168, 85, 247, 0.38);
}
/* HIGH — red */
.clauseguard-high {
background: rgba(239, 68, 68, 0.22);
border-bottom: 2.5px solid #ef4444;
}
.clauseguard-high:hover {
background: rgba(239, 68, 68, 0.35);
}
/* MEDIUM — amber */
.clauseguard-medium {
background: rgba(245, 158, 11, 0.18);
border-bottom: 2.5px solid #f59e0b;
}
.clauseguard-medium:hover {
background: rgba(245, 158, 11, 0.32);
}
/* LOW — blue */
.clauseguard-low {
background: rgba(59, 130, 246, 0.14);
border-bottom: 2.5px solid #3b82f6;
}
.clauseguard-low:hover {
background: rgba(59, 130, 246, 0.28);
}
/* Tooltip */
.clauseguard-tooltip {
position: absolute;
z-index: 2147483647;
background: #1f2937;
color: #f9fafb;
padding: 12px 16px;
border-radius: 10px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 13px;
line-height: 1.5;
max-width: 340px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
pointer-events: none;
animation: clauseguard-fadeIn 0.15s ease;
}
.clauseguard-tooltip-header {
font-weight: 700;
font-size: 14px;
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 1px solid #374151;
}
.clauseguard-tooltip-item {
display: flex;
align-items: center;
gap: 8px;
margin: 4px 0;
}
.clauseguard-tooltip-badge {
font-size: 10px;
font-weight: 700;
padding: 1px 6px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.clauseguard-badge-critical {
background: #e9d5ff;
color: #6b21a8;
}
.clauseguard-badge-high {
background: #fecaca;
color: #991b1b;
}
.clauseguard-badge-medium {
background: #fed7aa;
color: #9a3412;
}
.clauseguard-badge-low {
background: #dbeafe;
color: #1e40af;
}
.clauseguard-tooltip-footer {
margin-top: 8px;
font-size: 11px;
opacity: 0.6;
}
@keyframes clauseguard-fadeIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
|