Create css_html.py
Browse files- src/css_html.py +78 -0
src/css_html.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
custom_css = """
|
| 2 |
+
#changelog-text {
|
| 3 |
+
font-size: 16px !important;
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
#changelog-text h2 {
|
| 7 |
+
font-size: 18px !important;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.markdown-text {
|
| 11 |
+
font-size: 16px !important;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
#models-to-add-text {
|
| 15 |
+
font-size: 18px !important;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
#citation-button span {
|
| 19 |
+
font-size: 16px !important;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
#citation-button textarea {
|
| 23 |
+
font-size: 16px !important;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
#citation-button > label > button {
|
| 27 |
+
margin: 6px;
|
| 28 |
+
transform: scale(1.3);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
#leaderboard-table {
|
| 32 |
+
margin-top: 15px
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
#leaderboard-table-lite {
|
| 36 |
+
margin-top: 15px
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
#search-bar-table-box > div:first-child {
|
| 40 |
+
background: none;
|
| 41 |
+
border: none;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
#search-bar {
|
| 45 |
+
padding: 0px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/* Hides the final AutoEvalColumn */
|
| 49 |
+
#llm-benchmark-tab-table table td:last-child,
|
| 50 |
+
#llm-benchmark-tab-table table th:last-child {
|
| 51 |
+
display: none;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
| 55 |
+
table td:first-child,
|
| 56 |
+
table th:first-child {
|
| 57 |
+
max-width: 400px;
|
| 58 |
+
overflow: auto;
|
| 59 |
+
white-space: nowrap;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.tab-buttons button {
|
| 63 |
+
font-size: 20px;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
#scale-logo {
|
| 67 |
+
border-style: none !important;
|
| 68 |
+
box-shadow: none;
|
| 69 |
+
display: block;
|
| 70 |
+
margin-left: auto;
|
| 71 |
+
margin-right: auto;
|
| 72 |
+
max-width: 600px;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
#scale-logo .download {
|
| 76 |
+
display: none;
|
| 77 |
+
}
|
| 78 |
+
"""
|