Ronaldo1111 commited on
Commit
ab4687d
·
verified ·
1 Parent(s): 9261e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -8
app.py CHANGED
@@ -196,10 +196,14 @@ html_template = '''
196
  }
197
  {background_css}
198
  .gr-chatbot {
199
- background: rgba(255, 255, 255, 0.5) !important;
200
- border-radius: 16px;
201
- padding: 10px;
 
 
 
202
  }
 
203
  .gr-textbox textarea {
204
  font-family: monospace;
205
  font-size: 1.1em;
@@ -293,33 +297,38 @@ html_template = '''
293
  height: 80px;
294
  background-size: contain;
295
  background-repeat: no-repeat;
296
- z-index: 9999;
297
  animation: floatUp 12s linear infinite;
298
  }
299
 
300
  #balloon1 {
301
  background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon1.png");
302
  left: 10%;
 
303
  animation-delay: 0s;
304
  }
305
  #balloon2 {
306
- background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon2.png");
307
  left: 30%;
 
308
  animation-delay: 2s;
309
  }
310
  #balloon3 {
311
- background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon3.png");
312
  left: 50%;
 
313
  animation-delay: 4s;
314
  }
315
  #balloon4 {
316
- background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon4.png");
317
  left: 70%;
 
318
  animation-delay: 6s;
319
  }
320
  #balloon5 {
321
- background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon5.png");
322
  left: 90%;
 
323
  animation-delay: 8s;
324
  }
325
 
@@ -328,6 +337,7 @@ html_template = '''
328
  100% { transform: translateY(-120vh); }
329
  }
330
 
 
331
  #music-toggle, #next-track {
332
  position: fixed;
333
  padding: 8px 12px;
 
196
  }
197
  {background_css}
198
  .gr-chatbot {
199
+ background: rgba(255, 255, 255, 0.3) !important; /* 更轻的透明白 */
200
+ border-radius: 16px;
201
+ padding: 10px;
202
+ backdrop-filter: blur(12px); /* 毛玻璃核心效果 */
203
+ -webkit-backdrop-filter: blur(12px); /* 兼容 Safari */
204
+ border: 1px solid rgba(255, 255, 255, 0.4); /* 边框更精致 */
205
  }
206
+
207
  .gr-textbox textarea {
208
  font-family: monospace;
209
  font-size: 1.1em;
 
297
  height: 80px;
298
  background-size: contain;
299
  background-repeat: no-repeat;
300
+ z-index: 10000; /* 使气球位于对话框之上 */
301
  animation: floatUp 12s linear infinite;
302
  }
303
 
304
  #balloon1 {
305
  background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/balloon1.png");
306
  left: 10%;
307
+ top: 0; /* 确保气球从页面顶部开始 */
308
  animation-delay: 0s;
309
  }
310
  #balloon2 {
311
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/ballon2.png");
312
  left: 30%;
313
+ top: 0; /* 确保气球从页面顶部开始 */
314
  animation-delay: 2s;
315
  }
316
  #balloon3 {
317
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/ballon3.png");
318
  left: 50%;
319
+ top: 0; /* 确保气球从页面顶部开始 */
320
  animation-delay: 4s;
321
  }
322
  #balloon4 {
323
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/ballon4.png");
324
  left: 70%;
325
+ top: 0; /* 确保气球从页面顶部开始 */
326
  animation-delay: 6s;
327
  }
328
  #balloon5 {
329
+ background-image: url("https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/ballon5.png");
330
  left: 90%;
331
+ top: 0; /* 确保气球从页面顶部开始 */
332
  animation-delay: 8s;
333
  }
334
 
 
337
  100% { transform: translateY(-120vh); }
338
  }
339
 
340
+
341
  #music-toggle, #next-track {
342
  position: fixed;
343
  padding: 8px 12px;