AlauStone commited on
Commit
ea6d46d
·
verified ·
1 Parent(s): 8c7e398

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -5
app.py CHANGED
@@ -30,20 +30,41 @@ st.set_page_config(page_title="智答 AI 助手", page_icon="🤖", layout="wide
30
  def _get_custom_css():
31
  return """
32
  <style>
33
- /* ===== 暗色模式全面适配 ===== */
34
- /* 使用 body.dark-mode 类来控制(兼容微信浏览器) */
35
 
36
  /* 隐藏工具栏标记 */
37
  .toolbar-marker {
38
  display: none !important;
39
  }
40
 
41
- /* 游客提示颜色 - 浅色模式默认 */
 
 
 
 
 
 
 
42
  .guest-tip {
43
- color: #666;
44
  }
45
  .guest-tip b {
46
- color: #444;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
 
49
  /* ===== 暗色模式样式(通过 JS 添加 dark-mode 类) ===== */
 
30
  def _get_custom_css():
31
  return """
32
  <style>
33
+ /* ===== 主题适配 ===== */
 
34
 
35
  /* 隐藏工具栏标记 */
36
  .toolbar-marker {
37
  display: none !important;
38
  }
39
 
40
+ /* ===== 浅色模式默认样式 ===== */
41
+ .main-title {
42
+ background: white !important;
43
+ color: #333 !important;
44
+ }
45
+ .main-title h1 {
46
+ color: #333 !important;
47
+ }
48
  .guest-tip {
49
+ color: #666 !important;
50
  }
51
  .guest-tip b {
52
+ color: #444 !important;
53
+ }
54
+ [data-testid="stChatInput"] {
55
+ background: white !important;
56
+ }
57
+ [data-testid="stChatInput"] textarea,
58
+ [data-testid="stChatInput"] > div {
59
+ border-color: #ddd !important;
60
+ background: white !important;
61
+ color: #333 !important;
62
+ }
63
+ .welcome-marker {
64
+ color: #666 !important;
65
+ }
66
+ .welcome-hint {
67
+ color: #888 !important;
68
  }
69
 
70
  /* ===== 暗色模式样式(通过 JS 添加 dark-mode 类) ===== */