add css_html_js.py
Browse files- css_html_js.py +98 -0
css_html_js.py
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
custom_css = """
|
2 |
+
.markdown-text {
|
3 |
+
font-size: 16px !important;
|
4 |
+
}
|
5 |
+
#models-to-add-text {
|
6 |
+
font-size: 18px !important;
|
7 |
+
}
|
8 |
+
#citation-button span {
|
9 |
+
font-size: 16px !important;
|
10 |
+
}
|
11 |
+
#citation-button textarea {
|
12 |
+
font-size: 16px !important;
|
13 |
+
}
|
14 |
+
#citation-button > label > button {
|
15 |
+
margin: 6px;
|
16 |
+
transform: scale(1.3);
|
17 |
+
}
|
18 |
+
#leaderboard-table {
|
19 |
+
margin-top: 15px
|
20 |
+
}
|
21 |
+
#leaderboard-table-lite {
|
22 |
+
margin-top: 15px
|
23 |
+
}
|
24 |
+
#search-bar-table-box > div:first-child {
|
25 |
+
background: none;
|
26 |
+
border: none;
|
27 |
+
}
|
28 |
+
|
29 |
+
#search-bar {
|
30 |
+
padding: 0px;
|
31 |
+
}
|
32 |
+
/* Hides the final AutoEvalColumn */
|
33 |
+
#llm-benchmark-tab-table table td:last-child,
|
34 |
+
#llm-benchmark-tab-table table th:last-child {
|
35 |
+
display: none;
|
36 |
+
}
|
37 |
+
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
38 |
+
table td:first-child,
|
39 |
+
table th:first-child {
|
40 |
+
max-width: 400px;
|
41 |
+
overflow: auto;
|
42 |
+
white-space: nowrap;
|
43 |
+
}
|
44 |
+
.tab-buttons button {
|
45 |
+
font-size: 20px;
|
46 |
+
}
|
47 |
+
#scale-logo {
|
48 |
+
border-style: none !important;
|
49 |
+
box-shadow: none;
|
50 |
+
display: block;
|
51 |
+
margin-left: auto;
|
52 |
+
margin-right: auto;
|
53 |
+
max-width: 600px;
|
54 |
+
}
|
55 |
+
#scale-logo .download {
|
56 |
+
display: none;
|
57 |
+
}
|
58 |
+
#filter_type{
|
59 |
+
border: 0;
|
60 |
+
padding-left: 0;
|
61 |
+
padding-top: 0;
|
62 |
+
}
|
63 |
+
#filter_type label {
|
64 |
+
display: flex;
|
65 |
+
}
|
66 |
+
#filter_type label > span{
|
67 |
+
margin-top: var(--spacing-lg);
|
68 |
+
margin-right: 0.5em;
|
69 |
+
}
|
70 |
+
#filter_type label > .wrap{
|
71 |
+
width: 103px;
|
72 |
+
}
|
73 |
+
#filter_type label > .wrap .wrap-inner{
|
74 |
+
padding: 2px;
|
75 |
+
}
|
76 |
+
#filter_type label > .wrap .wrap-inner input{
|
77 |
+
width: 1px
|
78 |
+
}
|
79 |
+
#filter-columns-type{
|
80 |
+
border:0;
|
81 |
+
padding:0.5;
|
82 |
+
}
|
83 |
+
#filter-columns-size{
|
84 |
+
border:0;
|
85 |
+
padding:0.5;
|
86 |
+
}
|
87 |
+
#box-filter > .form{
|
88 |
+
border: 0
|
89 |
+
}
|
90 |
+
"""
|
91 |
+
|
92 |
+
get_window_url_params = """
|
93 |
+
function(url_params) {
|
94 |
+
const params = new URLSearchParams(window.location.search);
|
95 |
+
url_params = Object.fromEntries(params);
|
96 |
+
return url_params;
|
97 |
+
}
|
98 |
+
"""
|