Update style.css
Browse files
style.css
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
background-image: url("https://huggingface.co/spaces/XRachel/bc4/resolve/main/assets/Bank%20Churn.png");
|
| 3 |
background-size: cover;
|
| 4 |
background-position: center;
|
|
@@ -7,9 +11,50 @@ body {
|
|
| 7 |
color: white;
|
| 8 |
}
|
| 9 |
|
| 10 |
-
/* 让
|
| 11 |
.gradio-container {
|
| 12 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
backdrop-filter: blur(6px);
|
| 14 |
-
border-radius:
|
|
|
|
| 15 |
}
|
|
|
|
| 1 |
+
/* ===== 页面背景 ===== */
|
| 2 |
+
html, body {
|
| 3 |
+
margin: 0;
|
| 4 |
+
padding: 0;
|
| 5 |
+
min-height: 100%;
|
| 6 |
background-image: url("https://huggingface.co/spaces/XRachel/bc4/resolve/main/assets/Bank%20Churn.png");
|
| 7 |
background-size: cover;
|
| 8 |
background-position: center;
|
|
|
|
| 11 |
color: white;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* ===== 让 Gradio 整体透明 ===== */
|
| 15 |
.gradio-container {
|
| 16 |
+
background: transparent !important;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* 主内容区域透明 */
|
| 20 |
+
.main {
|
| 21 |
+
background: transparent !important;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
/* Tabs 背景透明 */
|
| 25 |
+
.tabs {
|
| 26 |
+
background: transparent !important;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/* ===== 标题颜色 ===== */
|
| 30 |
+
h1, h2, h3, p, label {
|
| 31 |
+
color: white !important;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/* ===== 输入框样式 ===== */
|
| 35 |
+
input, textarea, select {
|
| 36 |
+
background: rgba(255,255,255,0.9) !important;
|
| 37 |
+
color: #111 !important;
|
| 38 |
+
border-radius: 10px !important;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
/* ===== Execution Log ===== */
|
| 42 |
+
textarea {
|
| 43 |
+
font-family: monospace;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/* ===== 按钮样式 ===== */
|
| 47 |
+
button {
|
| 48 |
+
background: rgba(255,255,255,0.9) !important;
|
| 49 |
+
color: #111 !important;
|
| 50 |
+
border-radius: 10px !important;
|
| 51 |
+
font-weight: 600;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* ===== 卡片区域(Run Pipeline等) ===== */
|
| 55 |
+
.block {
|
| 56 |
+
background: rgba(0,0,0,0.35) !important;
|
| 57 |
backdrop-filter: blur(6px);
|
| 58 |
+
border-radius: 12px;
|
| 59 |
+
padding: 10px;
|
| 60 |
}
|