-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
297 lines (255 loc) · 4.93 KB
/
styles.css
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
287
288
289
290
291
292
293
294
295
296
297
body {
width: 400px;
padding: 10px;
}
.group {
position: relative;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 8px;
overflow: visible; /* 改为 visible 以允许提示框溢出 */
transition: box-shadow 0.3s;
}
.group:hover {
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.group-header {
background-color: #f0f0f0;
padding: 10px;
cursor: move;
display: flex;
justify-content: space-between;
align-items: center;
user-select: none;
position: relative;
z-index: 1; /* 给予较低的 z-index */
}
.group-header span {
font-weight: bold;
flex-grow: 1;
margin-right: 10px;
}
.enable-all-button,
.dissolve-button {
padding: 5px 10px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9em;
transition: background-color 0.2s;
}
.enable-all-button {
background-color: #45a049;
color: white;
}
.dissolve-button {
background-color: #f44336;
color: white;
}
.enable-all-button:hover {
background-color: #45a049;
}
.dissolve-button:hover {
background-color: #d32f2f;
}
.group-content {
position: relative;
z-index: 2; /* 给予较高的 z-index */
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 10px;
min-height: 30px;
transition: max-height 0.3s ease-out;
overflow: visible; /* 改为 visible 以允许提示框溢出 */
}
.plugin-icon {
width: 48px;
height: 48px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
cursor: pointer;
transition: transform 0.1s, box-shadow 0.2s;
background-color: white;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
.plugin-icon:hover {
transform: scale(1.05);
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.plugin-icon img {
max-width: 32px;
max-height: 32px;
object-fit: contain;
}
.plugin-icon.disabled img {
opacity: 0.5;
}
.status-indicator {
position: absolute;
bottom: 2px;
right: 2px;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #4CAF50; /* 绿色表示启用 */
}
.plugin-icon.disabled .status-indicator {
background-color: #F44336; /* 红色表示禁用 */
}
.plugin-icon::after {
content: attr(title);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px;
border-radius: 3px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
z-index: 1000; /* 给予很高的 z-index */
}
.plugin-icon:hover::after {
opacity: 1;
visibility: visible;
}
#all-plugins {
border-top: 1px solid #ccc;
padding-top: 10px;
margin-top: 20px;
}
h1 {
font-size: 18px;
}
.group-content.drag-over {
background-color: #e0e0e0;
border: 2px dashed #999;
}
#extensions-list.drag-over {
background-color: #e0e0e0;
border: 2px dashed #999;
}
#extensions-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: flex-start;
}
#save-groups {
margin-left: 10px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.3s;
}
#save-groups:hover {
background-color: #45a049;
}
#save-groups:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
#create-group {
margin-bottom: 10px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
#create-group:hover {
background-color: #45a049;
}
.group.dragging {
opacity: 0.5;
transform: scale(1.05);
}
.group-buttons {
display: flex;
gap: 5px;
}
/* 将这样的注释 */
/* 所有插件区域样式 */
/* 修改为 */
/* 待分组插件区域样式 */
#all-plugins {
/* 样式保持不变 */
}
#help-icon {
display: inline-block;
width: 20px;
height: 20px;
background-color: #4CAF50;
color: white;
border-radius: 50%;
text-align: center;
line-height: 20px;
cursor: pointer;
margin-left: 10px;
}
#help-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.help-content {
background-color: white;
padding: 20px;
border-radius: 5px;
max-width: 80%;
position: relative;
}
.hidden {
display: none !important;
}
#close-help {
margin-top: 10px;
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
#close-help:hover {
background-color: #45a049;
}
#ungrouped-plugins {
margin-top: 20px;
border: 2px solid #e0e0e0;
border-radius: 8px;
padding: 15px;
background-color: #f9f9f9;
}
#ungrouped-plugins h2 {
margin-top: 0;
margin-bottom: 10px;
color: #333;
font-size: 1.2em;
}
.toggle-button {
padding: 2px 5px;
font-size: 12px;
cursor: pointer;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 3px;
}