模板:跳脸/style.css:修订间差异
外观
< 模板:跳脸
![]() OctoberSama(留言 | 贡献) 小 |
![]() OctoberSama(留言 | 贡献) 小 |
||
(未显示同一用户的30个中间版本) | |||
第1行: | 第1行: | ||
@keyframes | @keyframes zoomThenHide { | ||
0% { | 0% { | ||
opacity: 0; | opacity: 0; | ||
transform: scale(0.1); | transform: translate(-50%, -50%) scale(0.1); | ||
} | } | ||
20% { | |||
opacity: 1; | opacity: 1; | ||
transform: translate(-50%, -50%) scale(3); | |||
} | |||
86.7% { | |||
opacity: 1; | |||
transform: translate(-50%, -50%) scale(3); | |||
} | } | ||
100% { | 100% { | ||
opacity: | opacity: 0; | ||
transform: scale( | transform: translate(-50%, -50%) scale(0); | ||
} | } | ||
} | } | ||
第15行: | 第20行: | ||
.zoom-fullscreen { | .zoom-fullscreen { | ||
position: fixed !important; | position: fixed !important; | ||
top: | top: 50% !important; | ||
left: | left: 50% !important; | ||
width: 100vw !important; | width: auto !important; | ||
height: 100vh !important; | height: auto !important; | ||
object-fit: | max-width: 100vw !important; | ||
max-height: 100vh !important; | |||
object-fit: contain !important; | |||
transform: translate(-50%, -50%) scale(0.1); | |||
animation: zoomThenHide 1.5s ease-out forwards; | |||
z-index: 99999 !important; | z-index: 99999 !important; | ||
display: block !important; | |||
} | |||
.mw-collapsible.mw-collapsed .zoom-fullscreen { | |||
visibility: hidden; | |||
opacity: 0; | opacity: 0; | ||
} | |||
.mw-collapsible:not(.mw-collapsed) .zoom-fullscreen { | |||
visibility: visible; | |||
opacity: 1; | |||
} | } |
2025年5月18日 (日) 16:39的最新版本
@keyframes zoomThenHide { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(3); } 86.7% { opacity: 1; transform: translate(-50%, -50%) scale(3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0); } } .zoom-fullscreen { position: fixed !important; top: 50% !important; left: 50% !important; width: auto !important; height: auto !important; max-width: 100vw !important; max-height: 100vh !important; object-fit: contain !important; transform: translate(-50%, -50%) scale(0.1); animation: zoomThenHide 1.5s ease-out forwards; z-index: 99999 !important; display: block !important; } .mw-collapsible.mw-collapsed .zoom-fullscreen { visibility: hidden; opacity: 0; } .mw-collapsible:not(.mw-collapsed) .zoom-fullscreen { visibility: visible; opacity: 1; }