File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
docs/.vitepress/theme/components Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 2020
2121<script setup>
2222import { onMounted } from ' vue'
23+
2324onMounted (() => {
2425 // 给所有二维码容器绑定点击事件
2526 document .querySelectorAll (' .qrcode-wrapper' ).forEach (el => {
@@ -48,6 +49,7 @@ onMounted(() => {
4849 })
4950})
5051 </script >
52+
5153<style scoped>
5254.donate-container {
5355 display : flex ;
125127 .donate-container { padding : 30px 20px ; }
126128 .qrcode-container { gap : 20px ; }
127129 .qrcode { width : 110px ; height : 110px ; }
130+ }
131+ </style >
132+
133+ <!-- 弹窗全局样式 -->
134+ <style >
135+ .modal-overlay {
136+ position : fixed ;
137+ inset : 0 ;
138+ display : flex ;
139+ align-items : center ;
140+ justify-content : center ;
141+ background : rgba (0 , 0 , 0 , 0.45 );
142+ z-index : 9999 ;
143+ }
144+
145+ .modal-card {
146+ background : var (--vp-c-bg , #fff );
147+ border-radius : 20px ;
148+ padding : 16px ;
149+ box-shadow : 0 20px 60px rgba (0 ,0 ,0 ,0.25 );
150+ max-width : 90vw ;
151+ max-height : 90vh ;
152+ display : flex ;
153+ flex-direction : column ;
154+ align-items : center ;
155+ }
156+
157+ .modal-card img {
158+ max-width : 80vw ;
159+ max-height : 70vh ;
160+ display : block ;
161+ border-radius : 12px ;
162+ }
163+
164+ .modal-title {
165+ margin-top : 12px ;
166+ font-weight : 600 ;
167+ text-align : center ;
168+ }
169+
170+ .modal-subtitle {
171+ margin-top : 6px ;
172+ font-size : 12px ;
173+ opacity : .7 ;
174+ text-align : center ;
128175}
129176 </style >
You can’t perform that action at this time.
0 commit comments