XRachel commited on
Commit
a4b18cb
·
verified ·
1 Parent(s): 0b0bf54

Delete style.css

Browse files
Files changed (1) hide show
  1. style.css +0 -171
style.css DELETED
@@ -1,171 +0,0 @@
1
- /* ===== 1. 整页背景图 ===== */
2
- html, body {
3
- margin: 0 !important;
4
- padding: 0 !important;
5
- min-height: 100vh !important;
6
- background-color: rgb(15, 23, 42) !important;
7
- background-image: url("https://huggingface.co/spaces/XRachel/bc4/resolve/main/assets/BankChurn.png") !important;
8
- background-position: top center !important;
9
- background-repeat: no-repeat !important;
10
- background-size: 100% auto !important;
11
- background-attachment: scroll !important;
12
- }
13
-
14
- /* 兼容 Gradio 外层容器 */
15
- gradio-app,
16
- .gradio-app,
17
- #app,
18
- [data-testid="app"],
19
- .main,
20
- .app {
21
- background: transparent !important;
22
- min-height: 100vh !important;
23
- }
24
-
25
- /* ===== 2. 主容器区域 ===== */
26
- .gradio-container {
27
- max-width: 1400px !important;
28
- width: 94vw !important;
29
- margin: 0 auto !important;
30
- padding-top: 140px !important;
31
- padding-bottom: 80px !important;
32
- background: transparent !important;
33
- }
34
-
35
- /* ===== 3. 页面主体卡片 ===== */
36
- .gradio-container > .main,
37
- .gradio-container .contain,
38
- .gradio-container .wrap {
39
- background: transparent !important;
40
- }
41
-
42
- /* 给主要内容区一个半透明白色卡片效果 */
43
- .gr-block,
44
- .gr-box,
45
- .gr-panel,
46
- .gr-group,
47
- .form {
48
- background: rgba(255, 255, 255, 0.92) !important;
49
- border-radius: 16px !important;
50
- border: 1px solid rgba(255, 255, 255, 0.55) !important;
51
- box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
52
- }
53
-
54
- /* ===== 4. 标题样式 ===== */
55
- h1 {
56
- color: #ffffff !important;
57
- font-size: 3rem !important;
58
- font-weight: 800 !important;
59
- text-align: left !important;
60
- margin: 0 0 18px 0 !important;
61
- text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
62
- }
63
-
64
- /* 普通文字 */
65
- h2, h3, h4, p, label, span, .gr-markdown, .prose {
66
- color: #111827 !important;
67
- }
68
-
69
- /* ===== 5. Tabs ===== */
70
- .tabs > .tab-nav,
71
- .tab-nav,
72
- div[role="tablist"] {
73
- background: rgba(255, 255, 255, 0.85) !important;
74
- border-radius: 12px 12px 0 0 !important;
75
- padding: 6px !important;
76
- border: 1px solid rgba(17, 24, 39, 0.08) !important;
77
- }
78
-
79
- .tabs > .tab-nav button,
80
- .tab-nav button,
81
- div[role="tablist"] button,
82
- button[role="tab"] {
83
- color: #374151 !important;
84
- font-weight: 600 !important;
85
- border: none !important;
86
- background: transparent !important;
87
- padding: 10px 20px !important;
88
- border-radius: 10px 10px 0 0 !important;
89
- opacity: 1 !important;
90
- }
91
-
92
- .tabs > .tab-nav button.selected,
93
- .tab-nav button.selected,
94
- button[role="tab"][aria-selected="true"],
95
- div[role="tablist"] button[aria-selected="true"] {
96
- color: #f59e0b !important;
97
- background: rgba(15, 23, 42, 0.05) !important;
98
- font-weight: 700 !important;
99
- }
100
-
101
- .tabitem {
102
- background: rgba(255, 255, 255, 0.94) !important;
103
- border-radius: 0 0 14px 14px !important;
104
- padding: 18px !important;
105
- border: 1px solid rgba(17, 24, 39, 0.08) !important;
106
- border-top: none !important;
107
- }
108
-
109
- /* ===== 6. 输入框 / 文本框 ===== */
110
- input,
111
- textarea,
112
- select {
113
- background: #ffffff !important;
114
- color: #111827 !important;
115
- border: 1px solid #d1d5db !important;
116
- border-radius: 12px !important;
117
- box-shadow: none !important;
118
- }
119
-
120
- textarea {
121
- font-family: monospace !important;
122
- font-size: 0.9rem !important;
123
- }
124
-
125
- /* ===== 7. 按钮 ===== */
126
- button:not([role="tab"]) {
127
- background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
128
- color: #ffffff !important;
129
- border: none !important;
130
- border-radius: 12px !important;
131
- padding: 12px 18px !important;
132
- font-weight: 700 !important;
133
- box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25) !important;
134
- }
135
-
136
- button:not([role="tab"]):hover {
137
- filter: brightness(1.05) !important;
138
- }
139
-
140
- /* ===== 8. 日志框区域更清晰 ===== */
141
- label[for],
142
- .gr-textbox,
143
- [data-testid="textbox"] {
144
- color: #111827 !important;
145
- }
146
-
147
- /* ===== 9. 顶部和底部透明,避免多余灰条 ===== */
148
- header,
149
- footer,
150
- header *,
151
- footer * {
152
- background: transparent !important;
153
- box-shadow: none !important;
154
- }
155
-
156
- /* ===== 10. 小屏适配 ===== */
157
- @media (max-width: 900px) {
158
- .gradio-container {
159
- width: 96vw !important;
160
- padding-top: 70px !important;
161
- padding-bottom: 40px !important;
162
- }
163
-
164
- h1 {
165
- font-size: 2.1rem !important;
166
- }
167
-
168
- .tabitem {
169
- padding: 12px !important;
170
- }
171
- }