Spaces:
Sleeping
Sleeping
Mahdi Naser Moghadasi commited on
Commit ·
56537f5
1
Parent(s): f10cfac
Fix all text visibility issues: Input fields, generated content, chat messages, and all output areas
Browse files
app.py
CHANGED
|
@@ -1328,47 +1328,129 @@ with gr.Blocks(
|
|
| 1328 |
box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
|
| 1329 |
}
|
| 1330 |
|
| 1331 |
-
/* Enhanced Input Styling */
|
| 1332 |
-
.gradio-container input,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1333 |
border-radius: 16px !important;
|
| 1334 |
border: 2px solid #e2e8f0 !important;
|
| 1335 |
padding: 16px 20px !important;
|
| 1336 |
font-size: 15px !important;
|
| 1337 |
font-weight: 500 !important;
|
| 1338 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
| 1339 |
-
background:
|
| 1340 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
|
| 1341 |
-
color: #
|
| 1342 |
}
|
| 1343 |
|
| 1344 |
-
.gradio-container input::placeholder,
|
| 1345 |
-
|
|
|
|
| 1346 |
opacity: 1 !important;
|
| 1347 |
}
|
| 1348 |
|
| 1349 |
/* Dropdown and Select Styling */
|
| 1350 |
.gradio-container select option {
|
| 1351 |
-
color: #
|
| 1352 |
background: #ffffff !important;
|
| 1353 |
}
|
| 1354 |
|
| 1355 |
.gradio-container .dropdown {
|
| 1356 |
-
color: #
|
| 1357 |
}
|
| 1358 |
|
| 1359 |
.gradio-container .dropdown .wrap {
|
| 1360 |
-
color: #
|
| 1361 |
}
|
| 1362 |
|
| 1363 |
-
.gradio-container input:focus,
|
|
|
|
|
|
|
| 1364 |
border-color: #667eea !important;
|
| 1365 |
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(0, 0, 0, 0.1) !important;
|
| 1366 |
outline: none !important;
|
| 1367 |
transform: translateY(-2px) !important;
|
| 1368 |
-
color: #
|
| 1369 |
background: #ffffff !important;
|
| 1370 |
}
|
| 1371 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1372 |
/* Premium Button Design */
|
| 1373 |
.gradio-container .btn {
|
| 1374 |
border-radius: 16px !important;
|
|
|
|
| 1328 |
box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
|
| 1329 |
}
|
| 1330 |
|
| 1331 |
+
/* Enhanced Input Styling - Force Text Visibility */
|
| 1332 |
+
.gradio-container input,
|
| 1333 |
+
.gradio-container textarea,
|
| 1334 |
+
.gradio-container select,
|
| 1335 |
+
.gradio-container input[type="text"],
|
| 1336 |
+
.gradio-container input[type="email"],
|
| 1337 |
+
.gradio-container input[type="password"],
|
| 1338 |
+
.gradio-container textarea,
|
| 1339 |
+
.gradio-container select {
|
| 1340 |
border-radius: 16px !important;
|
| 1341 |
border: 2px solid #e2e8f0 !important;
|
| 1342 |
padding: 16px 20px !important;
|
| 1343 |
font-size: 15px !important;
|
| 1344 |
font-weight: 500 !important;
|
| 1345 |
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
| 1346 |
+
background: #ffffff !important;
|
| 1347 |
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
|
| 1348 |
+
color: #1a202c !important;
|
| 1349 |
}
|
| 1350 |
|
| 1351 |
+
.gradio-container input::placeholder,
|
| 1352 |
+
.gradio-container textarea::placeholder {
|
| 1353 |
+
color: #718096 !important;
|
| 1354 |
opacity: 1 !important;
|
| 1355 |
}
|
| 1356 |
|
| 1357 |
/* Dropdown and Select Styling */
|
| 1358 |
.gradio-container select option {
|
| 1359 |
+
color: #1a202c !important;
|
| 1360 |
background: #ffffff !important;
|
| 1361 |
}
|
| 1362 |
|
| 1363 |
.gradio-container .dropdown {
|
| 1364 |
+
color: #1a202c !important;
|
| 1365 |
}
|
| 1366 |
|
| 1367 |
.gradio-container .dropdown .wrap {
|
| 1368 |
+
color: #1a202c !important;
|
| 1369 |
}
|
| 1370 |
|
| 1371 |
+
.gradio-container input:focus,
|
| 1372 |
+
.gradio-container textarea:focus,
|
| 1373 |
+
.gradio-container select:focus {
|
| 1374 |
border-color: #667eea !important;
|
| 1375 |
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 8px 25px rgba(0, 0, 0, 0.1) !important;
|
| 1376 |
outline: none !important;
|
| 1377 |
transform: translateY(-2px) !important;
|
| 1378 |
+
color: #1a202c !important;
|
| 1379 |
background: #ffffff !important;
|
| 1380 |
}
|
| 1381 |
|
| 1382 |
+
/* Force text visibility in all text elements */
|
| 1383 |
+
.gradio-container * {
|
| 1384 |
+
color: inherit !important;
|
| 1385 |
+
}
|
| 1386 |
+
|
| 1387 |
+
.gradio-container input,
|
| 1388 |
+
.gradio-container textarea,
|
| 1389 |
+
.gradio-container select {
|
| 1390 |
+
color: #1a202c !important;
|
| 1391 |
+
}
|
| 1392 |
+
|
| 1393 |
+
/* Markdown and output text visibility */
|
| 1394 |
+
.gradio-container .markdown,
|
| 1395 |
+
.gradio-container .markdown *,
|
| 1396 |
+
.gradio-container .prose,
|
| 1397 |
+
.gradio-container .prose * {
|
| 1398 |
+
color: #1a202c !important;
|
| 1399 |
+
}
|
| 1400 |
+
|
| 1401 |
+
/* Chat message text visibility */
|
| 1402 |
+
.gradio-container .chatbot .message,
|
| 1403 |
+
.gradio-container .chatbot .message * {
|
| 1404 |
+
color: #1a202c !important;
|
| 1405 |
+
}
|
| 1406 |
+
|
| 1407 |
+
/* Override any conflicting styles */
|
| 1408 |
+
.gradio-container .gr-textbox,
|
| 1409 |
+
.gradio-container .gr-textbox input,
|
| 1410 |
+
.gradio-container .gr-textarea,
|
| 1411 |
+
.gradio-container .gr-textarea textarea,
|
| 1412 |
+
.gradio-container .gr-dropdown,
|
| 1413 |
+
.gradio-container .gr-dropdown select {
|
| 1414 |
+
color: #1a202c !important;
|
| 1415 |
+
background: #ffffff !important;
|
| 1416 |
+
}
|
| 1417 |
+
|
| 1418 |
+
/* Force visibility for all generated content */
|
| 1419 |
+
.gradio-container .gr-markdown,
|
| 1420 |
+
.gradio-container .gr-markdown *,
|
| 1421 |
+
.gradio-container .gr-html,
|
| 1422 |
+
.gradio-container .gr-html *,
|
| 1423 |
+
.gradio-container .output,
|
| 1424 |
+
.gradio-container .output *,
|
| 1425 |
+
.gradio-container .result,
|
| 1426 |
+
.gradio-container .result * {
|
| 1427 |
+
color: #1a202c !important;
|
| 1428 |
+
}
|
| 1429 |
+
|
| 1430 |
+
/* Specific styling for lesson plan and quiz outputs */
|
| 1431 |
+
.gradio-container .gr-markdown h1,
|
| 1432 |
+
.gradio-container .gr-markdown h2,
|
| 1433 |
+
.gradio-container .gr-markdown h3,
|
| 1434 |
+
.gradio-container .gr-markdown h4,
|
| 1435 |
+
.gradio-container .gr-markdown h5,
|
| 1436 |
+
.gradio-container .gr-markdown h6 {
|
| 1437 |
+
color: #1a202c !important;
|
| 1438 |
+
}
|
| 1439 |
+
|
| 1440 |
+
.gradio-container .gr-markdown p,
|
| 1441 |
+
.gradio-container .gr-markdown li,
|
| 1442 |
+
.gradio-container .gr-markdown span,
|
| 1443 |
+
.gradio-container .gr-markdown div {
|
| 1444 |
+
color: #1a202c !important;
|
| 1445 |
+
}
|
| 1446 |
+
|
| 1447 |
+
/* Chat output visibility */
|
| 1448 |
+
.gradio-container .chatbot .message p,
|
| 1449 |
+
.gradio-container .chatbot .message div,
|
| 1450 |
+
.gradio-container .chatbot .message span {
|
| 1451 |
+
color: #1a202c !important;
|
| 1452 |
+
}
|
| 1453 |
+
|
| 1454 |
/* Premium Button Design */
|
| 1455 |
.gradio-container .btn {
|
| 1456 |
border-radius: 16px !important;
|