Yoyo2004 commited on
Commit
4c0264a
·
verified ·
1 Parent(s): e06be5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -7
app.py CHANGED
@@ -58,22 +58,35 @@ body, .gradio-container {
58
  /* Examples */
59
  .examples-container { margin-top: 15px; }
60
  .examples-label { font-size: 0.85rem; color: #a0aec0; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
 
61
  .examples-table table { border-collapse: separate !important; border-spacing: 0 8px !important; background: transparent !important; }
62
  .examples-table thead { display: none; }
63
- .examples-table tbody tr { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-radius: 8px; cursor: pointer; border: 1px solid #edf2f7; display: block; margin-bottom: 8px; }
64
- .examples-table td { padding: 12px 15px !important; border: none !important; display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  /* 终端日志 */
67
  .terminal-wrapper { margin-top: 25px; background: #1e1e1e; border-radius: 10px; overflow: hidden; }
68
  .terminal-header { background: #2d2d2d; padding: 8px 12px; display: flex; gap: 6px; border-bottom: 1px solid #333; }
69
  .dot { width: 10px; height: 10px; border-radius: 50%; }
70
- .dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }
 
 
71
  .terminal-log textarea { font-family: 'JetBrains Mono', monospace !important; background: #1e1e1e !important; color: #4ade80 !important; border: none !important; padding: 10px !important; }
72
 
73
- /* =========================================
74
- Book UI (Fixed Height & Pagination)
75
- ========================================= */
76
-
77
  /* 1. 书页容器 */
78
  .book-page-container {
79
  background-color: var(--paper-bg);
 
58
  /* Examples */
59
  .examples-container { margin-top: 15px; }
60
  .examples-label { font-size: 0.85rem; color: #a0aec0; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
61
+
62
  .examples-table table { border-collapse: separate !important; border-spacing: 0 8px !important; background: transparent !important; }
63
  .examples-table thead { display: none; }
64
+ .examples-table tbody tr {
65
+ background: #fff;
66
+ box-shadow: 0 2px 5px rgba(0,0,0,0.05);
67
+ border-radius: 8px;
68
+ cursor: pointer;
69
+ transition: transform 0.2s, box-shadow 0.2s;
70
+ border: 1px solid #edf2f7;
71
+ display: block;
72
+ margin-bottom: 8px;
73
+ }
74
+ .examples-table tbody tr:hover {
75
+ transform: translateY(-2px);
76
+ box-shadow: 0 5px 12px rgba(0,0,0,0.1);
77
+ border-color: var(--primary-color);
78
+ }
79
+ .examples-table td { padding: 12px 15px !important; font-size: 13px !important; color: #4a5568 !important; line-height: 1.5 !important; border: none !important; display: block; }
80
 
81
  /* 终端日志 */
82
  .terminal-wrapper { margin-top: 25px; background: #1e1e1e; border-radius: 10px; overflow: hidden; }
83
  .terminal-header { background: #2d2d2d; padding: 8px 12px; display: flex; gap: 6px; border-bottom: 1px solid #333; }
84
  .dot { width: 10px; height: 10px; border-radius: 50%; }
85
+ .dot-red { background: #ff5f56; }
86
+ .dot-yellow { background: #ffbd2e; }
87
+ .dot-green { background: #27c93f; }
88
  .terminal-log textarea { font-family: 'JetBrains Mono', monospace !important; background: #1e1e1e !important; color: #4ade80 !important; border: none !important; padding: 10px !important; }
89
 
 
 
 
 
90
  /* 1. 书页容器 */
91
  .book-page-container {
92
  background-color: var(--paper-bg);