Spaces:
Sleeping
Sleeping
| """ | |
| CSS and styling for the CodeReview Bench Leaderboard. | |
| """ | |
| custom_css = """ | |
| .markdown-text { | |
| font-size: 16px !important; | |
| text-align: justify !important; | |
| line-height: 1.0 !important; | |
| margin-top: 10px !important; | |
| margin-bottom: 10px !important; | |
| } | |
| .tab-buttons button.selected { | |
| border-color: #f4f4f5 !important; | |
| background: #3f3f46 !important; | |
| color: #f4f4f5 !important; | |
| } | |
| #citation-button textarea { | |
| font-family: monospace !important; | |
| } | |
| .leaderboard-container { | |
| margin-top: 20px; | |
| } | |
| .category-header { | |
| font-weight: bold; | |
| background-color: #f5f5f5; | |
| padding: 10px; | |
| margin-top: 15px; | |
| border-radius: 5px; | |
| } | |
| .metric-name { | |
| font-weight: bold; | |
| color: #a1a1aa !important; | |
| } | |
| .model-name { | |
| font-weight: bold; | |
| } | |
| .model-link:hover { | |
| text-decoration: underline; | |
| color: #ffffff !important; | |
| } | |
| .version-selector { | |
| margin: 0 !important; | |
| padding: 5px; | |
| border-radius: 5px; | |
| } | |
| .version-selector label { | |
| font-weight: bold; | |
| color: #f4f4f5 !important; | |
| } | |
| .version-selector select { | |
| border-color: #3f3f46 !important; | |
| border-radius: 5px; | |
| } | |
| /* Make sure the version selector is properly aligned with refresh button */ | |
| .version-selector > .block { | |
| padding: 0 !important; | |
| } | |
| .version-selector > .block > .wrap { | |
| position: relative; | |
| top: -5px; | |
| } | |
| /* Force background/border for common layout containers */ | |
| .gradio-row > .block, | |
| .gradio-column > .block, | |
| .form, | |
| .panel { | |
| /* background: #18181b !important; */ /* Removed background override */ | |
| border-color: #27272a80 !important; /* Made border color semi-transparent */ | |
| border-width: 1px !important; /* Ensure border is visible */ | |
| border-style: solid !important; | |
| } | |
| /* Target the specific file upload component area */ | |
| .gradio-file .wrap { | |
| /* background: #18181b !important; */ /* Removed background override */ | |
| border-color: #27272a !important; | |
| } | |
| #refresh-button { | |
| margin-top: 5px !important; | |
| margin-bottom: 5px !important; | |
| } | |
| """ | |