Spaces:
Paused
Paused
Update public/index.html
Browse files- public/index.html +27 -3
public/index.html
CHANGED
|
@@ -296,16 +296,28 @@
|
|
| 296 |
70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
|
| 297 |
100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
|
| 298 |
}
|
| 299 |
-
@media (max-width:
|
| 300 |
#summary {
|
| 301 |
-
grid-template-columns: 1fr; /*
|
| 302 |
gap: 10px;
|
| 303 |
}
|
| 304 |
#summary div {
|
| 305 |
padding: 10px;
|
| 306 |
}
|
| 307 |
#summary span {
|
| 308 |
-
font-size: 20px; /*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
}
|
| 310 |
.user-servers {
|
| 311 |
grid-template-columns: 1fr !important; /* 小屏幕强制单列显示实例卡片,使用 !important 提高优先级 */
|
|
@@ -333,6 +345,18 @@
|
|
| 333 |
margin-bottom: 20px;
|
| 334 |
}
|
| 335 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
.login-overlay, .confirm-overlay, .loading-overlay {
|
| 337 |
position: fixed;
|
| 338 |
top: 0;
|
|
|
|
| 296 |
70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
|
| 297 |
100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
|
| 298 |
}
|
| 299 |
+
@media (max-width: 900px) { /* 中等屏幕,调整为3列 */
|
| 300 |
#summary {
|
| 301 |
+
grid-template-columns: repeat(3, 1fr); /* 3列显示 */
|
| 302 |
gap: 10px;
|
| 303 |
}
|
| 304 |
#summary div {
|
| 305 |
padding: 10px;
|
| 306 |
}
|
| 307 |
#summary span {
|
| 308 |
+
font-size: 20px; /* 字体略小 */
|
| 309 |
+
}
|
| 310 |
+
}
|
| 311 |
+
@media (max-width: 600px) { /* 小屏幕,调整为2列 */
|
| 312 |
+
#summary {
|
| 313 |
+
grid-template-columns: repeat(2, 1fr); /* 2列显示 */
|
| 314 |
+
gap: 8px;
|
| 315 |
+
}
|
| 316 |
+
#summary div {
|
| 317 |
+
padding: 8px;
|
| 318 |
+
}
|
| 319 |
+
#summary span {
|
| 320 |
+
font-size: 18px; /* 字体进一步缩小 */
|
| 321 |
}
|
| 322 |
.user-servers {
|
| 323 |
grid-template-columns: 1fr !important; /* 小屏幕强制单列显示实例卡片,使用 !important 提高优先级 */
|
|
|
|
| 345 |
margin-bottom: 20px;
|
| 346 |
}
|
| 347 |
}
|
| 348 |
+
@media (max-width: 400px) { /* 超小屏幕,仍保持2列,但进一步压缩 */
|
| 349 |
+
#summary {
|
| 350 |
+
grid-template-columns: repeat(2, 1fr); /* 仍为2列 */
|
| 351 |
+
gap: 6px;
|
| 352 |
+
}
|
| 353 |
+
#summary div {
|
| 354 |
+
padding: 6px;
|
| 355 |
+
}
|
| 356 |
+
#summary span {
|
| 357 |
+
font-size: 16px; /* 字体更小 */
|
| 358 |
+
}
|
| 359 |
+
}
|
| 360 |
.login-overlay, .confirm-overlay, .loading-overlay {
|
| 361 |
position: fixed;
|
| 362 |
top: 0;
|