-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay.css
More file actions
181 lines (160 loc) · 3.88 KB
/
Copy pathoverlay.css
File metadata and controls
181 lines (160 loc) · 3.88 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/* overlay.css — injected into every page */
/* Highlight ring around flagged elements */
.dp-highlight {
outline: none !important;
position: relative;
z-index: 2147483640;
}
.dp-highlight::before {
content: '';
position: absolute;
inset: -3px;
border-radius: 4px;
pointer-events: none;
z-index: 2147483641;
animation: dp-pulse 2.5s ease-in-out infinite;
}
.dp-highlight[data-dp-severity="critical"]::before {
border: 2px solid #E24B4A;
box-shadow: 0 0 0 1px rgba(226, 75, 74, 0.2), inset 0 0 0 9999px rgba(226, 75, 74, 0.06);
}
.dp-highlight[data-dp-severity="high"]::before {
border: 2px solid #EF9F27;
box-shadow: 0 0 0 1px rgba(239, 159, 39, 0.2), inset 0 0 0 9999px rgba(239, 159, 39, 0.06);
}
.dp-highlight[data-dp-severity="medium"]::before {
border: 2px solid #378ADD;
box-shadow: 0 0 0 1px rgba(55, 138, 221, 0.15), inset 0 0 0 9999px rgba(55, 138, 221, 0.04);
}
.dp-highlight[data-dp-severity="info"]::before {
border: 2px solid #888780;
box-shadow: 0 0 0 1px rgba(136, 135, 128, 0.15);
}
@keyframes dp-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.65; }
}
/* Badge pill on each flagged element */
.dp-badge {
position: absolute;
top: -22px;
left: 0;
z-index: 2147483645;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 7px;
border-radius: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
white-space: nowrap;
cursor: pointer;
transition: transform 0.1s ease, opacity 0.15s ease;
user-select: none;
line-height: 1.5;
}
.dp-badge:hover { transform: scale(1.05); }
.dp-badge:active { transform: scale(0.97); }
.dp-badge[data-severity="critical"] {
background: #E24B4A;
color: #fff;
}
.dp-badge[data-severity="high"] {
background: #EF9F27;
color: #fff;
}
.dp-badge[data-severity="medium"] {
background: #378ADD;
color: #fff;
}
.dp-badge[data-severity="info"] {
background: #888780;
color: #fff;
}
/* Tooltip */
.dp-tooltip {
position: fixed;
z-index: 2147483647;
max-width: 280px;
background: #1a1a1a;
color: #f0f0f0;
border-radius: 8px;
padding: 10px 13px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 12.5px;
line-height: 1.5;
box-shadow: 0 4px 20px rgba(0,0,0,0.35);
pointer-events: none;
opacity: 0;
transform: translateY(4px);
transition: opacity 0.15s ease, transform 0.15s ease;
}
.dp-tooltip.visible {
opacity: 1;
transform: translateY(0);
}
.dp-tooltip-title {
font-weight: 600;
font-size: 12px;
margin-bottom: 4px;
text-transform: uppercase;
letter-spacing: 0.06em;
opacity: 0.65;
}
.dp-tooltip-body {
font-size: 12.5px;
line-height: 1.55;
}
.dp-tooltip-category {
margin-top: 6px;
font-size: 11px;
opacity: 0.5;
}
/* Floating summary pill (bottom-right of page) */
#dp-summary-pill {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 2147483646;
display: flex;
align-items: center;
gap: 8px;
background: #1a1a1a;
color: #f0f0f0;
border-radius: 999px;
padding: 8px 14px 8px 10px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 13px;
font-weight: 500;
cursor: pointer;
box-shadow: 0 4px 20px rgba(0,0,0,0.3);
transition: transform 0.15s ease, background 0.15s ease;
user-select: none;
}
#dp-summary-pill:hover { background: #2a2a2a; transform: scale(1.02); }
#dp-summary-pill:active { transform: scale(0.98); }
#dp-summary-pill .dp-pill-icon {
font-size: 15px;
}
#dp-summary-pill .dp-pill-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
background: #E24B4A;
color: #fff;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
padding: 0 5px;
}
#dp-summary-pill .dp-pill-count.none {
background: #3B6D11;
}
#dp-summary-pill .dp-pill-label {
font-size: 12.5px;
opacity: 0.8;
}