-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
286 lines (245 loc) · 5.31 KB
/
Copy pathstyles.css
File metadata and controls
286 lines (245 loc) · 5.31 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/**
* 智能表单数据模拟助手 - 样式文件
* 提供现代化的UI样式设计
*/
/* 悬浮窗基础样式 */
#smart-form-filler-widget {
/* 基础样式已在content.js中定义 */
font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif !important;
}
/* 悬浮窗动画效果 */
#smart-form-filler-widget {
animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 按钮悬停动画 */
#smart-form-filler-widget button {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
position: relative;
overflow: hidden;
}
#smart-form-filler-widget button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
#smart-form-filler-widget button:active {
transform: translateY(0);
}
/* 按钮点击涟漪效果 */
#smart-form-filler-widget button::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
#smart-form-filler-widget button:active::after {
width: 100px;
height: 100px;
}
/* 通知消息样式 */
.smart-filler-notification {
animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* 表单元素高亮效果(调试用) */
.smart-filler-highlight {
outline: 2px solid #4CAF50 !important;
outline-offset: 2px !important;
transition: outline 0.3s ease !important;
}
/* 加载动画 */
.smart-filler-loading {
display: inline-block;
width: 16px;
height: 16px;
border: 2px solid #f3f3f3;
border-top: 2px solid #4CAF50;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* 响应式设计 */
@media (max-width: 768px) {
#smart-form-filler-widget {
min-width: 100px !important;
padding: 8px !important;
font-size: 11px !important;
}
#smart-form-filler-widget button {
padding: 4px 8px !important;
font-size: 10px !important;
}
}
/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
#smart-form-filler-widget {
background-color: rgba(45, 45, 45, 0.95) !important;
border-color: #555 !important;
color: #fff !important;
}
#smart-form-filler-widget button {
background: #666 !important;
color: #fff !important;
}
#smart-form-filler-widget button:hover {
background: #777 !important;
}
}
/* 无障碍支持 */
#smart-form-filler-widget:focus {
outline: 2px solid #4CAF50;
outline-offset: 2px;
}
#smart-form-filler-widget button:focus {
outline: 2px solid #2196F3;
outline-offset: 2px;
}
/* 打印样式隐藏 */
@media print {
#smart-form-filler-widget {
display: none !important;
}
}
/* 弹出窗口样式 */
.popup-container {
width: 300px;
padding: 20px;
font-family: 'Microsoft YaHei', Arial, sans-serif;
}
.popup-header {
text-align: center;
margin-bottom: 20px;
}
.popup-title {
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.popup-subtitle {
font-size: 12px;
color: #666;
}
.popup-controls {
display: flex;
flex-direction: column;
gap: 10px;
}
.popup-button {
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.popup-button.primary {
background-color: #4CAF50;
color: white;
}
.popup-button.secondary {
background-color: #2196F3;
color: white;
}
.popup-button:hover {
opacity: 0.9;
}
.popup-status {
margin-top: 15px;
padding: 10px;
background-color: #f5f5f5;
border-radius: 5px;
font-size: 12px;
text-align: center;
}
/* 设置页面样式 */
.settings-page {
max-width: 600px;
margin: 0 auto;
padding: 20px;
font-family: 'Microsoft YaHei', Arial, sans-serif;
}
.settings-section {
margin-bottom: 30px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;
}
.settings-section h3 {
margin-top: 0;
color: #333;
}
.setting-item {
margin-bottom: 15px;
}
.setting-label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.setting-input {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
}
.setting-description {
font-size: 12px;
color: #666;
margin-top: 5px;
}
/* 工具提示样式 */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 200px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -100px;
opacity: 0;
transition: opacity 0.3s;
font-size: 12px;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}