Unizomby commited on
Commit
57204c5
·
verified ·
1 Parent(s): 60b31e9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -27
app.py CHANGED
@@ -94,46 +94,34 @@ button.primary {
94
  color: white !important;
95
  }
96
 
97
- /* Example buttons with dark background for white text */
98
- .examples button,
99
- .examples .btn,
100
- .examples .gr-button {
 
101
  background: #374151 !important;
102
  color: white !important;
103
  border: 1px solid #4B5563 !important;
104
  border-radius: 8px !important;
105
  }
106
 
107
- .examples button:hover,
108
- .examples .btn:hover,
109
- .examples .gr-button:hover {
 
110
  background: #4B5563 !important;
111
  color: white !important;
112
- border-color: #6B7280 !important;
113
- transform: translateY(-1px) !important;
114
  }
115
 
116
- /* Ensure all nested elements also have white text */
117
- .examples button *,
118
- .examples .btn *,
119
- .examples .gr-button * {
120
- color: white !important;
121
- }
122
-
123
- /* Target any nested elements that might contain the text */
124
- .examples button span,
125
- .examples .btn span,
126
- .examples .gr-button span,
127
- .examples button div,
128
- .examples .btn div,
129
- .examples .gr-button div {
130
  color: white !important;
 
131
  }
132
 
133
- /* Alternative approach - target by data attributes or specific classes */
134
- [data-testid*="example"] button,
135
- [data-testid*="example"] * {
136
- color: white !important;
137
  }
138
 
139
  /* Clear/secondary buttons */
 
94
  color: white !important;
95
  }
96
 
97
+ /* NUCLEAR OPTION: Override ALL buttons in the examples section */
98
+ div:has(> *:contains("Examples")) ~ * button,
99
+ div:has(> *:contains("Examples")) button,
100
+ *[class*="example"] button,
101
+ *[class*="Example"] button {
102
  background: #374151 !important;
103
  color: white !important;
104
  border: 1px solid #4B5563 !important;
105
  border-radius: 8px !important;
106
  }
107
 
108
+ div:has(> *:contains("Examples")) ~ * button:hover,
109
+ div:has(> *:contains("Examples")) button:hover,
110
+ *[class*="example"] button:hover,
111
+ *[class*="Example"] button:hover {
112
  background: #4B5563 !important;
113
  color: white !important;
 
 
114
  }
115
 
116
+ /* Universal override for anything that might be an example */
117
+ button:nth-of-type(n+3) {
118
+ background: #374151 !important;
 
 
 
 
 
 
 
 
 
 
 
119
  color: white !important;
120
+ border: 1px solid #4B5563 !important;
121
  }
122
 
123
+ button:nth-of-type(n+3):hover {
124
+ background: #4B5563 !important;
 
 
125
  }
126
 
127
  /* Clear/secondary buttons */