-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
203 lines (182 loc) · 5.62 KB
/
Copy pathstyles.css
File metadata and controls
203 lines (182 loc) · 5.62 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/* Bad Words Detector Styles */
/* Подсветка найденных слов в тексте */
.bad-word-highlight {
background-color: #ff6b6b !important;
color: white !important;
padding: 2px 4px !important;
border-radius: 3px !important;
font-weight: bold !important;
border: 2px solid #ff5252 !important;
box-shadow: 0 0 5px rgba(255, 107, 107, 0.7) !important;
animation: badWordPulse 2s infinite !important;
position: relative !important;
z-index: 9999 !important;
}
/* Анимация пульсации для привлечения внимания */
@keyframes badWordPulse {
0% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.7); }
50% { box-shadow: 0 0 15px rgba(255, 107, 107, 1); }
100% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.7); }
}
/* Подсветка ссылок с плохими словами в href */
.bad-word-link {
border: 3px solid #ff6b6b !important;
background-color: rgba(255, 107, 107, 0.1) !important;
border-radius: 5px !important;
padding: 2px !important;
position: relative !important;
}
.bad-word-link::before {
content: "⚠️ BAD HREF" !important;
position: absolute !important;
top: -25px !important;
left: 0 !important;
background: #ff6b6b !important;
color: white !important;
padding: 2px 6px !important;
border-radius: 3px !important;
font-size: 10px !important;
font-weight: bold !important;
z-index: 10000 !important;
white-space: nowrap !important;
}
/* Подсветка ссылок с плохими словами в тексте */
.bad-word-link-text {
background-color: rgba(255, 152, 0, 0.3) !important;
border: 2px solid #ff9800 !important;
border-radius: 4px !important;
position: relative !important;
}
.bad-word-link-text::after {
content: "⚠️ BAD TEXT" !important;
position: absolute !important;
top: -25px !important;
right: 0 !important;
background: #ff9800 !important;
color: white !important;
padding: 2px 6px !important;
border-radius: 3px !important;
font-size: 10px !important;
font-weight: bold !important;
z-index: 10000 !important;
white-space: nowrap !important;
}
/* Подсветка элементов с плохими словами в атрибутах */
.bad-word-attribute {
outline: 2px dashed #9c27b0 !important;
outline-offset: 2px !important;
position: relative !important;
}
.bad-word-attribute::before {
content: "⚠️ BAD ATTR" !important;
position: absolute !important;
top: -20px !important;
left: 50% !important;
transform: translateX(-50%) !important;
background: #9c27b0 !important;
color: white !important;
padding: 1px 4px !important;
border-radius: 2px !important;
font-size: 9px !important;
font-weight: bold !important;
z-index: 10000 !important;
white-space: nowrap !important;
}
/* Общие стили для всех типов предупреждений */
.bad-word-highlight,
.bad-word-link,
.bad-word-link-text,
.bad-word-attribute {
transition: all 0.3s ease !important;
}
.bad-word-highlight:hover,
.bad-word-link:hover,
.bad-word-link-text:hover,
.bad-word-attribute:hover {
transform: scale(1.05) !important;
z-index: 10001 !important;
}
/* Tooltip для отображения информации при наведении */
.bad-word-highlight[data-word]::after {
content: "Bad word: " attr(data-word) !important;
position: absolute !important;
bottom: 100% !important;
left: 50% !important;
transform: translateX(-50%) !important;
background: rgba(0, 0, 0, 0.9) !important;
color: white !important;
padding: 5px 8px !important;
border-radius: 4px !important;
font-size: 12px !important;
white-space: nowrap !important;
opacity: 0 !important;
pointer-events: none !important;
transition: opacity 0.3s ease !important;
z-index: 10002 !important;
}
.bad-word-highlight[data-word]:hover::after {
opacity: 1 !important;
}
/* Навигационные иконки */
.bad-words-nav-icon {
width: 24px !important;
height: 24px !important;
background: linear-gradient(45deg, #ff6b6b, #ff5252) !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 12px !important;
color: white !important;
box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4) !important;
border: 2px solid white !important;
cursor: pointer !important;
transition: all 0.3s ease !important;
animation: badWordsPulse 2s infinite !important;
user-select: none !important;
}
.bad-words-nav-icon:hover {
transform: scale(1.2) !important;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6) !important;
animation: none !important;
}
.bad-words-nav-icon:active {
transform: scale(0.9) !important;
}
@keyframes badWordsPulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
/* Стили для popup расширения */
.popup-container {
width: 300px;
padding: 15px;
font-family: Arial, sans-serif;
background: #f5f5f5;
}
.popup-header {
text-align: center;
margin-bottom: 15px;
color: #333;
}
.stats-container {
background: white;
padding: 10px;
border-radius: 5px;
border-left: 4px solid #ff6b6b;
margin-bottom: 10px;
}
.scan-button {
width: 100%;
background: #ff6b6b;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
.scan-button:hover {
background: #ff5252;
}