rivapereira123 commited on
Commit
e4c3ab9
·
verified ·
1 Parent(s): 624779f

Update ui/components.py

Browse files
Files changed (1) hide show
  1. ui/components.py +46 -1
ui/components.py CHANGED
@@ -463,7 +463,52 @@ def get_custom_css():
463
  color: #a0a0a0;
464
  }
465
  }
466
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
467
 
468
  """
469
  return css
 
463
  color: #a0a0a0;
464
  }
465
  }
466
+
467
+
468
+ .quiz-result-output {
469
+ border: 1px solid #ccc;
470
+ background: #f9f9f9;
471
+ padding: 1rem;
472
+ border-radius: 10px;
473
+ margin-top: 1rem;
474
+ font-size: 1.05rem;
475
+ line-height: 1.6;
476
+ }
477
+
478
+ /* Quiz question blocks */
479
+ .gr-markdown {
480
+ margin-bottom: 0.5rem;
481
+ font-size: 1.1rem;
482
+ }
483
+
484
+ /* Radio buttons */
485
+ .gr-radio {
486
+ margin-bottom: 1.5rem;
487
+ }
488
+
489
+ /* Submit button spacing */
490
+ button {
491
+ margin-top: 1rem;
492
+ }
493
+
494
+ /* Result highlights */
495
+ .quiz-result-output strong {
496
+ color: #333;
497
+ }
498
+ .quiz-result-output .correct {
499
+ color: green;
500
+ font-weight: bold;
501
+ }
502
+ .quiz-result-output .incorrect {
503
+ color: red;
504
+ font-weight: bold;
505
+ }
506
+
507
+ /* Quiz summary at the top */
508
+ .quiz-result-output h2, .quiz-result-output h3 {
509
+ margin-top: 1rem;
510
+ color: #1e40af;
511
+ }
512
 
513
  """
514
  return css