Spaces:
Sleeping
Sleeping
File size: 4,370 Bytes
4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 4dd69b3 08c5ce8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | """
Medical Leaderboard CSS Styles
"""
custom_css = """
.markdown-text {
font-size: 16px !important;
}
.tab-buttons button {
font-size: 20px;
}
/* ****************************
MEDICAL THEME LEADERBOARD
**************************** */
.pretty-leaderboard-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: rgba(240, 248, 255, 0.98);
box-shadow: 0 4px 24px 0 rgba(0, 150, 136, 0.15), 0 1.5px 6px 0 rgba(76, 175, 80, 0.08);
margin-bottom: 24px;
border: 1px solid #e1f5fe;
}
.pretty-leaderboard-table thead {
border-radius: 16px 16px 0 0;
overflow: hidden;
background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
}
/* ****************************
STICKY COLUMNS
**************************** */
.pretty-leaderboard-table th:nth-child(1) {
position: sticky;
left: 0;
top: 0;
z-index: 5;
background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
min-width: 60px;
max-width: 60px;
width: 60px;
}
.pretty-leaderboard-table th:nth-child(2) {
position: sticky;
left: 60px;
top: 0;
z-index: 5;
background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
min-width: 220px;
max-width: 400px;
width: 220px;
}
.pretty-leaderboard-table td:nth-child(1) {
position: sticky;
left: 0;
z-index: 4;
background: var(--row-bg) !important;
min-width: 60px;
max-width: 60px;
width: 60px;
}
.pretty-leaderboard-table td:nth-child(2) {
position: sticky;
left: 60px;
z-index: 4;
background: var(--row-bg) !important;
min-width: 220px;
max-width: 400px;
width: 220px;
}
.pretty-leaderboard-table tr {
--row-bg: #ffffff;
}
.pretty-leaderboard-table tr:nth-child(even) {
--row-bg: #f8fbff;
}
.pretty-leaderboard-table tr:hover {
--row-bg: #e8f5e8;
}
.pretty-leaderboard-table th, .pretty-leaderboard-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid #23244a;
font-size: 16px;
}
.pretty-leaderboard-table .score-stars-cell {
min-width: 160px;
width: 160px;
}
.pretty-leaderboard-table th {
background: linear-gradient(135deg, #00695c 0%, #004d40 100%);
color: #ffffff;
font-weight: 800;
letter-spacing: 0.5px;
border-bottom: 2px solid #4caf50;
text-shadow: 0 1px 4px rgba(0,0,0,0.3);
transition: background 0.2s, color 0.2s;
position: sticky;
top: 0;
z-index: 2;
border-radius: 0 !important;
}
.pretty-leaderboard-table th:hover, .pretty-leaderboard-table th:focus {
background: linear-gradient(135deg, #00796b 0%, #00695c 100%);
color: #fff;
}
.pretty-leaderboard-table td {
color: #37474f;
vertical-align: middle;
background: var(--row-bg);
}
.pretty-leaderboard-table tr:last-child td {
border-bottom: none;
}
/* ****************************
SCORE VISUALIZATION (UNUSED)
**************************** */
.score-bar {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}
.score-bar-track {
flex-grow: 1;
height: 10px;
background: rgba(200, 230, 201, 0.4);
border-radius: 5px;
overflow: hidden;
max-width: 220px;
box-shadow: 0 1px 4px 0 rgba(76, 175, 80, 0.15);
}
.score-bar-fill {
height: 100%;
background: linear-gradient(90deg, #66bb6a 0%, #4caf50 100%);
border-radius: 5px;
transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.score-bar-value {
font-family: 'SF Mono', monospace;
font-weight: 600;
color: #455a64;
min-width: 60px;
font-size: 14px;
}
.leaderboard-table-container {
margin-top: 15px;
background: linear-gradient(135deg, #e3e6f3 60%, #f5f6fa 100%);
background-image:
radial-gradient(rgba(255,255,255,0.15) 1.2px, transparent 1.2px),
radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
background-size: 40px 40px, 80px 80px;
background-position: 0 0, 20px 20px;
}
#citation-button span {
font-size: 16px !important;
}
#citation-button textarea {
font-size: 16px !important;
}
#citation-button > label > button {
margin: 6px;
transform: scale(1.3);
}
"""
get_window_url_params = """
function(url_params) {
const params = new URLSearchParams(window.location.search);
url_params = Object.fromEntries(params);
return url_params;
}
"""
|