Spaces:
Running
Running
Deploy Space: update src
Browse files- src/display/css_html_js.py +220 -4
src/display/css_html_js.py
CHANGED
|
@@ -70,22 +70,238 @@ custom_css = """
|
|
| 70 |
letter-spacing: 0.04em;
|
| 71 |
font-weight: 700;
|
| 72 |
}
|
| 73 |
-
.dataframe
|
|
|
|
|
|
|
|
|
|
| 74 |
border-radius: 8px !important;
|
| 75 |
overflow: hidden !important;
|
| 76 |
border: 1px solid var(--bench-line) !important;
|
| 77 |
}
|
| 78 |
-
.dataframe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
font-size: 14px !important;
|
| 80 |
}
|
| 81 |
-
.dataframe th
|
|
|
|
| 82 |
background: #eef2f7 !important;
|
| 83 |
color: var(--bench-ink) !important;
|
| 84 |
font-weight: 750 !important;
|
| 85 |
}
|
| 86 |
-
.dataframe td
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
color: #263244 !important;
|
| 88 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
.domain-heading {
|
| 90 |
margin-top: 1.75rem;
|
| 91 |
margin-bottom: 0.5rem;
|
|
|
|
| 70 |
letter-spacing: 0.04em;
|
| 71 |
font-weight: 700;
|
| 72 |
}
|
| 73 |
+
.dataframe,
|
| 74 |
+
.leaderboard-dataframe {
|
| 75 |
+
--leaderboard-model-column-width: 280px;
|
| 76 |
+
--cell-width-0: var(--leaderboard-model-column-width) !important;
|
| 77 |
border-radius: 8px !important;
|
| 78 |
overflow: hidden !important;
|
| 79 |
border: 1px solid var(--bench-line) !important;
|
| 80 |
}
|
| 81 |
+
.rank-leaderboard-dataframe {
|
| 82 |
+
--leaderboard-model-column-width: 460px;
|
| 83 |
+
--leaderboard-rank-table-min-width: 1720px;
|
| 84 |
+
--cell-width-0: 460px !important;
|
| 85 |
+
}
|
| 86 |
+
.dataframe table,
|
| 87 |
+
.leaderboard-dataframe table {
|
| 88 |
+
table-layout: fixed !important;
|
| 89 |
+
min-width: 100% !important;
|
| 90 |
font-size: 14px !important;
|
| 91 |
}
|
| 92 |
+
.dataframe th,
|
| 93 |
+
.leaderboard-dataframe th {
|
| 94 |
background: #eef2f7 !important;
|
| 95 |
color: var(--bench-ink) !important;
|
| 96 |
font-weight: 750 !important;
|
| 97 |
}
|
| 98 |
+
.dataframe td,
|
| 99 |
+
.leaderboard-dataframe td {
|
| 100 |
+
color: #263244 !important;
|
| 101 |
+
overflow: hidden !important;
|
| 102 |
+
}
|
| 103 |
+
.dataframe th:first-child,
|
| 104 |
+
.dataframe td:first-child,
|
| 105 |
+
.leaderboard-dataframe th:first-child,
|
| 106 |
+
.leaderboard-dataframe td:first-child {
|
| 107 |
+
width: var(--leaderboard-model-column-width) !important;
|
| 108 |
+
min-width: var(--leaderboard-model-column-width) !important;
|
| 109 |
+
max-width: var(--leaderboard-model-column-width) !important;
|
| 110 |
+
overflow-x: auto !important;
|
| 111 |
+
overflow-y: hidden !important;
|
| 112 |
+
white-space: nowrap !important;
|
| 113 |
+
scrollbar-width: thin;
|
| 114 |
+
}
|
| 115 |
+
.dataframe th:first-child > div,
|
| 116 |
+
.dataframe td:first-child > div,
|
| 117 |
+
.leaderboard-dataframe th:first-child > div,
|
| 118 |
+
.leaderboard-dataframe td:first-child > div,
|
| 119 |
+
.leaderboard-dataframe [role="columnheader"]:first-child > div,
|
| 120 |
+
.leaderboard-dataframe [role="gridcell"]:first-child > div {
|
| 121 |
+
display: block !important;
|
| 122 |
+
width: 100% !important;
|
| 123 |
+
max-width: 100% !important;
|
| 124 |
+
min-width: 0 !important;
|
| 125 |
+
overflow-x: auto !important;
|
| 126 |
+
overflow-y: hidden !important;
|
| 127 |
+
white-space: nowrap !important;
|
| 128 |
+
}
|
| 129 |
+
.leaderboard-dataframe .table-wrap,
|
| 130 |
+
.leaderboard-dataframe .table-wrap table,
|
| 131 |
+
.leaderboard-dataframe .table-wrap thead,
|
| 132 |
+
.leaderboard-dataframe .table-wrap tbody,
|
| 133 |
+
.leaderboard-dataframe .table-wrap tr {
|
| 134 |
+
--cell-width-0: var(--leaderboard-model-column-width) !important;
|
| 135 |
+
max-width: 100% !important;
|
| 136 |
+
}
|
| 137 |
+
.rank-leaderboard-dataframe .table-wrap {
|
| 138 |
+
--cell-width-0: 460px !important;
|
| 139 |
+
overflow-x: auto !important;
|
| 140 |
+
}
|
| 141 |
+
.rank-leaderboard-dataframe .table-wrap > table,
|
| 142 |
+
.rank-leaderboard-dataframe .table-wrap > table.fixed-layout,
|
| 143 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table,
|
| 144 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table thead,
|
| 145 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table tbody,
|
| 146 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table tfoot {
|
| 147 |
+
min-width: var(--leaderboard-rank-table-min-width) !important;
|
| 148 |
+
width: var(--leaderboard-rank-table-min-width) !important;
|
| 149 |
+
}
|
| 150 |
+
.rank-leaderboard-dataframe .table-wrap > table th:first-child,
|
| 151 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table th:first-child,
|
| 152 |
+
.rank-leaderboard-dataframe svelte-virtual-table-viewport table.table td:first-child {
|
| 153 |
+
width: 460px !important;
|
| 154 |
+
min-width: 460px !important;
|
| 155 |
+
max-width: 460px !important;
|
| 156 |
+
}
|
| 157 |
+
.rank-leaderboard-dataframe .leaderboard-model-cell {
|
| 158 |
+
display: block !important;
|
| 159 |
+
width: 100% !important;
|
| 160 |
+
max-width: 100% !important;
|
| 161 |
+
min-width: 0 !important;
|
| 162 |
+
box-sizing: border-box !important;
|
| 163 |
+
overflow-x: auto !important;
|
| 164 |
+
overflow-y: hidden !important;
|
| 165 |
+
white-space: nowrap !important;
|
| 166 |
+
text-overflow: clip !important;
|
| 167 |
+
scrollbar-width: thin;
|
| 168 |
+
}
|
| 169 |
+
.rank-leaderboard-dataframe .leaderboard-model-cell::-webkit-scrollbar {
|
| 170 |
+
height: 6px;
|
| 171 |
+
}
|
| 172 |
+
.rank-html-output,
|
| 173 |
+
.domain-rank-html {
|
| 174 |
+
border-radius: 8px !important;
|
| 175 |
+
overflow: hidden !important;
|
| 176 |
+
border: 1px solid var(--bench-line) !important;
|
| 177 |
+
}
|
| 178 |
+
.rank-table-scroll,
|
| 179 |
+
.domain-rank-table-scroll {
|
| 180 |
+
width: 100% !important;
|
| 181 |
+
max-width: 100% !important;
|
| 182 |
+
overflow-x: auto !important;
|
| 183 |
+
overflow-y: hidden !important;
|
| 184 |
+
scrollbar-width: thin;
|
| 185 |
+
}
|
| 186 |
+
.rank-table-scroll::-webkit-scrollbar,
|
| 187 |
+
.rank-fixed-window::-webkit-scrollbar,
|
| 188 |
+
.domain-rank-table-scroll::-webkit-scrollbar,
|
| 189 |
+
.domain-rank-model-window::-webkit-scrollbar {
|
| 190 |
+
height: 6px;
|
| 191 |
+
}
|
| 192 |
+
.rank-html-table,
|
| 193 |
+
.domain-rank-table {
|
| 194 |
+
width: 100% !important;
|
| 195 |
+
min-width: 1800px !important;
|
| 196 |
+
table-layout: fixed !important;
|
| 197 |
+
border-collapse: separate !important;
|
| 198 |
+
border-spacing: 0 !important;
|
| 199 |
+
font-family: var(--font-mono) !important;
|
| 200 |
+
font-size: 14px !important;
|
| 201 |
+
line-height: var(--line-md) !important;
|
| 202 |
color: #263244 !important;
|
| 203 |
}
|
| 204 |
+
.rank-html-table th,
|
| 205 |
+
.rank-html-table td,
|
| 206 |
+
.domain-rank-table th,
|
| 207 |
+
.domain-rank-table td {
|
| 208 |
+
padding: 12px 14px !important;
|
| 209 |
+
border-left: 1px solid var(--bench-line) !important;
|
| 210 |
+
box-sizing: border-box !important;
|
| 211 |
+
overflow: hidden !important;
|
| 212 |
+
white-space: nowrap !important;
|
| 213 |
+
text-align: left !important;
|
| 214 |
+
font-weight: 700 !important;
|
| 215 |
+
}
|
| 216 |
+
.rank-html-table th:first-child,
|
| 217 |
+
.rank-html-table td:first-child,
|
| 218 |
+
.domain-rank-table th:first-child,
|
| 219 |
+
.domain-rank-table td:first-child {
|
| 220 |
+
border-left: 0 !important;
|
| 221 |
+
}
|
| 222 |
+
.rank-html-table th,
|
| 223 |
+
.domain-rank-table th {
|
| 224 |
+
background: #eef2f7 !important;
|
| 225 |
+
color: var(--bench-ink) !important;
|
| 226 |
+
font-weight: 750 !important;
|
| 227 |
+
}
|
| 228 |
+
.rank-html-table tbody tr:nth-child(odd),
|
| 229 |
+
.domain-rank-table tbody tr:nth-child(odd) {
|
| 230 |
+
background: #f8fafc !important;
|
| 231 |
+
}
|
| 232 |
+
.rank-html-table tbody tr:nth-child(even),
|
| 233 |
+
.domain-rank-table tbody tr:nth-child(even) {
|
| 234 |
+
background: #ffffff !important;
|
| 235 |
+
}
|
| 236 |
+
.rank-html-table .rank-fixed-column,
|
| 237 |
+
.domain-rank-table .domain-rank-model-column {
|
| 238 |
+
width: auto !important;
|
| 239 |
+
min-width: 0 !important;
|
| 240 |
+
max-width: none !important;
|
| 241 |
+
}
|
| 242 |
+
.rank-fixed-window,
|
| 243 |
+
.domain-rank-model-window {
|
| 244 |
+
display: block !important;
|
| 245 |
+
width: 100% !important;
|
| 246 |
+
max-width: 100% !important;
|
| 247 |
+
overflow-x: auto !important;
|
| 248 |
+
overflow-y: hidden !important;
|
| 249 |
+
white-space: nowrap !important;
|
| 250 |
+
text-overflow: clip !important;
|
| 251 |
+
box-sizing: border-box !important;
|
| 252 |
+
scrollbar-width: thin;
|
| 253 |
+
}
|
| 254 |
+
.leaderboard-dataframe .table-wrap .cell-wrap {
|
| 255 |
+
min-width: 0 !important;
|
| 256 |
+
max-width: 100% !important;
|
| 257 |
+
overflow: hidden !important;
|
| 258 |
+
}
|
| 259 |
+
.leaderboard-dataframe .table-wrap th:first-child .cell-wrap,
|
| 260 |
+
.leaderboard-dataframe .table-wrap td:first-child .cell-wrap {
|
| 261 |
+
width: var(--leaderboard-model-column-width) !important;
|
| 262 |
+
max-width: var(--leaderboard-model-column-width) !important;
|
| 263 |
+
min-width: 0 !important;
|
| 264 |
+
overflow-x: auto !important;
|
| 265 |
+
overflow-y: hidden !important;
|
| 266 |
+
}
|
| 267 |
+
.leaderboard-dataframe .table-wrap th:first-child .cell-wrap > span,
|
| 268 |
+
.leaderboard-dataframe .table-wrap td:first-child .cell-wrap > span {
|
| 269 |
+
display: block !important;
|
| 270 |
+
flex: 1 1 auto !important;
|
| 271 |
+
min-width: 0 !important;
|
| 272 |
+
max-width: 100% !important;
|
| 273 |
+
overflow-x: auto !important;
|
| 274 |
+
overflow-y: hidden !important;
|
| 275 |
+
white-space: nowrap !important;
|
| 276 |
+
text-overflow: clip !important;
|
| 277 |
+
}
|
| 278 |
+
.leaderboard-dataframe .table-wrap th:first-child .cell-wrap > span::-webkit-scrollbar,
|
| 279 |
+
.leaderboard-dataframe .table-wrap td:first-child .cell-wrap > span::-webkit-scrollbar {
|
| 280 |
+
height: 6px;
|
| 281 |
+
}
|
| 282 |
+
.leaderboard-dataframe [role="columnheader"]:first-child,
|
| 283 |
+
.leaderboard-dataframe [role="gridcell"]:first-child {
|
| 284 |
+
width: var(--leaderboard-model-column-width) !important;
|
| 285 |
+
min-width: var(--leaderboard-model-column-width) !important;
|
| 286 |
+
max-width: var(--leaderboard-model-column-width) !important;
|
| 287 |
+
overflow-x: auto !important;
|
| 288 |
+
overflow-y: hidden !important;
|
| 289 |
+
white-space: nowrap !important;
|
| 290 |
+
}
|
| 291 |
+
.dataframe th:first-child::-webkit-scrollbar,
|
| 292 |
+
.dataframe td:first-child::-webkit-scrollbar,
|
| 293 |
+
.dataframe th:first-child > div::-webkit-scrollbar,
|
| 294 |
+
.dataframe td:first-child > div::-webkit-scrollbar,
|
| 295 |
+
.leaderboard-dataframe th:first-child::-webkit-scrollbar,
|
| 296 |
+
.leaderboard-dataframe td:first-child::-webkit-scrollbar,
|
| 297 |
+
.leaderboard-dataframe th:first-child > div::-webkit-scrollbar,
|
| 298 |
+
.leaderboard-dataframe td:first-child > div::-webkit-scrollbar,
|
| 299 |
+
.leaderboard-dataframe [role="columnheader"]:first-child::-webkit-scrollbar,
|
| 300 |
+
.leaderboard-dataframe [role="gridcell"]:first-child::-webkit-scrollbar,
|
| 301 |
+
.leaderboard-dataframe [role="columnheader"]:first-child > div::-webkit-scrollbar,
|
| 302 |
+
.leaderboard-dataframe [role="gridcell"]:first-child > div::-webkit-scrollbar {
|
| 303 |
+
height: 6px;
|
| 304 |
+
}
|
| 305 |
.domain-heading {
|
| 306 |
margin-top: 1.75rem;
|
| 307 |
margin-bottom: 0.5rem;
|