waveshaker commited on
Commit
082e01b
·
verified ·
1 Parent(s): 96bd6a2

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +6 -40
style.css CHANGED
@@ -371,47 +371,13 @@ body {
371
 
372
  .close-btn:hover { color: #fff; }
373
 
374
- /* 确保父级有定位基准 */
375
  .modal-body {
376
- position: relative; /* 必须加 */
377
- padding: 1.5rem;
378
- display: flex;
379
- flex-direction: column;
380
- gap: 1rem;
381
- flex: 1;
382
- min-height: 0;
383
- }
384
-
385
- /* 🌟 网格容器:用绝对定位盖满整个 body,这样它永远不会被销毁 */
386
- #grid-view-container {
387
- position: absolute;
388
- top: 4.5rem; /* 避开顶部的 Back to Grid 按钮 */
389
- left: 1.5rem;
390
- right: 1.5rem;
391
- bottom: 1.5rem;
392
- display: flex;
393
- flex-direction: column;
394
- /* 默认隐藏,由 JS 用 opacity 切换 */
395
- opacity: 0;
396
- pointer-events: none;
397
- z-index: 1;
398
- transition: opacity 0.2s ease;
399
- }
400
-
401
- /* 🌟 详情视图:用绝对定位盖在网格上面 */
402
- #detail-view {
403
- position: absolute;
404
- top: 4.5rem;
405
- left: 1.5rem;
406
- right: 1.5rem;
407
- bottom: 1.5rem;
408
- z-index: 2; /* 必须在网格上面 */
409
- display: flex;
410
- background: #151515; /* 遮盖底下的网格 */
411
- /* 默认隐藏 */
412
- opacity: 0;
413
- pointer-events: none;
414
- transition: opacity 0.2s ease;
415
  }
416
 
417
  .viewer-controls {
 
371
 
372
  .close-btn:hover { color: #fff; }
373
 
 
374
  .modal-body {
375
+ padding: 1.5rem;
376
+ display: flex;
377
+ flex-direction: column;
378
+ gap: 1rem;
379
+ flex: 1;
380
+ min-height: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  }
382
 
383
  .viewer-controls {