Spaces:
Running
on
Zero
Running
on
Zero
Upload styles.py
Browse files
styles.py
CHANGED
@@ -85,11 +85,17 @@ def get_css_styles():
|
|
85 |
border-radius: 4px;
|
86 |
height: 12px;
|
87 |
}
|
|
|
|
|
|
|
|
|
88 |
.progress-bar {
|
89 |
background-color: #f5f5f5;
|
90 |
border-radius: 4px;
|
91 |
overflow: hidden;
|
92 |
position: relative;
|
|
|
|
|
93 |
}
|
94 |
.score-item {
|
95 |
margin: 10px 0;
|
@@ -435,28 +441,46 @@ def get_css_styles():
|
|
435 |
cursor: help;
|
436 |
}
|
437 |
.tooltip .tooltip-icon {
|
438 |
-
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
}
|
441 |
.tooltip .tooltip-text {
|
442 |
visibility: hidden;
|
443 |
-
width:
|
444 |
background-color: rgba(44, 62, 80, 0.95);
|
445 |
color: white;
|
446 |
text-align: left;
|
447 |
border-radius: 8px;
|
448 |
-
padding:
|
449 |
position: absolute;
|
450 |
-
z-index:
|
451 |
-
bottom:
|
452 |
left: 50%;
|
453 |
transform: translateX(-50%);
|
454 |
opacity: 0;
|
455 |
transition: all 0.3s ease;
|
456 |
font-size: 14px;
|
457 |
-
line-height: 1.
|
458 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
459 |
-
border: 1px solid rgba(255, 255, 255, 0.1)
|
|
|
460 |
margin-bottom: 10px;
|
461 |
}
|
462 |
.tooltip.tooltip-left .tooltip-text {
|
@@ -494,9 +518,9 @@ def get_css_styles():
|
|
494 |
content: "";
|
495 |
position: absolute;
|
496 |
top: 100%;
|
497 |
-
left:
|
498 |
-
|
499 |
-
border-width:
|
500 |
border-style: solid;
|
501 |
border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
|
502 |
}
|
@@ -511,16 +535,6 @@ def get_css_styles():
|
|
511 |
visibility: visible;
|
512 |
opacity: 1;
|
513 |
}
|
514 |
-
.tooltip .tooltip-text::after {
|
515 |
-
content: "";
|
516 |
-
position: absolute;
|
517 |
-
top: 100%;
|
518 |
-
left: 50%;
|
519 |
-
transform: translateX(-50%);
|
520 |
-
border-width: 8px;
|
521 |
-
border-style: solid;
|
522 |
-
border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
|
523 |
-
}
|
524 |
.uncertainty-mode .tooltip .tooltip-text {
|
525 |
position: absolute;
|
526 |
left: 100%;
|
@@ -570,11 +584,18 @@ def get_css_styles():
|
|
570 |
border-radius: 6px;
|
571 |
overflow: hidden;
|
572 |
margin: 8px 0;
|
|
|
|
|
573 |
}
|
574 |
.progress {
|
575 |
height: 100%;
|
576 |
border-radius: 6px;
|
577 |
transition: width 0.6s ease;
|
|
|
|
|
|
|
|
|
|
|
578 |
}
|
579 |
.percentage {
|
580 |
float: right;
|
|
|
85 |
border-radius: 4px;
|
86 |
height: 12px;
|
87 |
}
|
88 |
+
/* Ensure 100% progress bars fill completely */
|
89 |
+
.progress[style*="100%"] {
|
90 |
+
width: 100% !important;
|
91 |
+
}
|
92 |
.progress-bar {
|
93 |
background-color: #f5f5f5;
|
94 |
border-radius: 4px;
|
95 |
overflow: hidden;
|
96 |
position: relative;
|
97 |
+
width: 100%;
|
98 |
+
height: 12px;
|
99 |
}
|
100 |
.score-item {
|
101 |
margin: 10px 0;
|
|
|
441 |
cursor: help;
|
442 |
}
|
443 |
.tooltip .tooltip-icon {
|
444 |
+
display: inline-block;
|
445 |
+
width: 18px;
|
446 |
+
height: 18px;
|
447 |
+
background: linear-gradient(135deg, #64748b, #475569);
|
448 |
+
color: white;
|
449 |
+
border-radius: 50%;
|
450 |
+
text-align: center;
|
451 |
+
line-height: 18px;
|
452 |
+
font-size: 12px;
|
453 |
+
font-weight: bold;
|
454 |
+
margin-left: 8px;
|
455 |
+
cursor: help;
|
456 |
+
box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3);
|
457 |
+
transition: all 0.2s ease;
|
458 |
+
}
|
459 |
+
.tooltip .tooltip-icon:hover {
|
460 |
+
background: linear-gradient(135deg, #475569, #334155);
|
461 |
+
transform: scale(1.1);
|
462 |
+
box-shadow: 0 3px 6px rgba(100, 116, 139, 0.4);
|
463 |
}
|
464 |
.tooltip .tooltip-text {
|
465 |
visibility: hidden;
|
466 |
+
width: 280px;
|
467 |
background-color: rgba(44, 62, 80, 0.95);
|
468 |
color: white;
|
469 |
text-align: left;
|
470 |
border-radius: 8px;
|
471 |
+
padding: 12px 15px;
|
472 |
position: absolute;
|
473 |
+
z-index: 1000;
|
474 |
+
bottom: calc(100% + 15px);
|
475 |
left: 50%;
|
476 |
transform: translateX(-50%);
|
477 |
opacity: 0;
|
478 |
transition: all 0.3s ease;
|
479 |
font-size: 14px;
|
480 |
+
line-height: 1.4;
|
481 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
482 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
483 |
+
white-space: normal;
|
484 |
margin-bottom: 10px;
|
485 |
}
|
486 |
.tooltip.tooltip-left .tooltip-text {
|
|
|
518 |
content: "";
|
519 |
position: absolute;
|
520 |
top: 100%;
|
521 |
+
left: 50%;
|
522 |
+
transform: translateX(-50%);
|
523 |
+
border-width: 8px;
|
524 |
border-style: solid;
|
525 |
border-color: rgba(44, 62, 80, 0.95) transparent transparent transparent;
|
526 |
}
|
|
|
535 |
visibility: visible;
|
536 |
opacity: 1;
|
537 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
.uncertainty-mode .tooltip .tooltip-text {
|
539 |
position: absolute;
|
540 |
left: 100%;
|
|
|
584 |
border-radius: 6px;
|
585 |
overflow: hidden;
|
586 |
margin: 8px 0;
|
587 |
+
width: 100%;
|
588 |
+
position: relative;
|
589 |
}
|
590 |
.progress {
|
591 |
height: 100%;
|
592 |
border-radius: 6px;
|
593 |
transition: width 0.6s ease;
|
594 |
+
min-width: 0;
|
595 |
+
}
|
596 |
+
.progress[style*="width: 100%"] {
|
597 |
+
width: 100% !important;
|
598 |
+
border-radius: 6px;
|
599 |
}
|
600 |
.percentage {
|
601 |
float: right;
|