cstr commited on
Commit
17f7aab
·
verified ·
1 Parent(s): 62d06f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -15
app.py CHANGED
@@ -60,27 +60,34 @@ CSS = """
60
  background: transparent !important;
61
  }
62
 
63
- /* Specific fix for the 'Thinking' box inside the markdown */
64
  .thinking-section {
65
- background: var(--secondary-50);
66
- border-left: 4px solid var(--primary-500);
67
- padding: 1.25rem;
68
- margin-bottom: 1.5rem;
69
- border-radius: 0 0.75rem 0.75rem 0;
70
- font-style: italic;
71
- color: var(--body-text-color-subdued);
72
  }
73
 
74
- /* Ensure the thinking section background is dark when in dark mode */
75
- [data-theme="dark"] .thinking-section {
76
- background: var(--neutral-800) !important;
77
- color: var(--neutral-300) !important;
78
  }
79
 
80
- /* Prevent markdown containers from forcing white backgrounds */
81
- .prose, .markdown-text {
82
- background-color: transparent !important;
 
83
  color: var(--body-text-color) !important;
 
 
 
 
 
 
 
84
  }
85
 
86
  .sources-panel {
 
60
  background: transparent !important;
61
  }
62
 
63
+ /* 1. Base style (Light Mode) */
64
  .thinking-section {
65
+ background: rgba(0, 0, 0, 0.05) !important; /* Subtle tint instead of var */
66
+ border-left: 4px solid var(--primary-500) !important;
67
+ padding: 1.25rem !important;
68
+ margin-bottom: 1.5rem !important;
69
+ border-radius: 0 0.75rem 0.75rem 0 !important;
70
+ font-style: italic !important;
 
71
  }
72
 
73
+ /* 2. Dark Mode Override */
74
+ .dark .thinking-section {
75
+ background: rgba(255, 255, 255, 0.1) !important; /* Light tint on dark background */
76
+ border-left-color: var(--primary-400) !important;
77
  }
78
 
79
+ /* 3. Force the text inside the thinking section to adapt */
80
+ .thinking-section,
81
+ .thinking-section p,
82
+ .thinking-section span {
83
  color: var(--body-text-color) !important;
84
+ opacity: 0.9;
85
+ }
86
+
87
+ /* 4. Extra insurance for the summary area text in dark mode */
88
+ .dark .summary-text,
89
+ .dark .prose {
90
+ color: #f1f5f9 !important; /* Explicit light gray/white */
91
  }
92
 
93
  .sources-panel {