update
Browse files- src/display/css_html_js.py +77 -46
src/display/css_html_js.py
CHANGED
@@ -1,105 +1,136 @@
|
|
1 |
-
custom_css = """
|
2 |
-
|
3 |
-
.markdown-text {
|
4 |
font-size: 16px !important;
|
5 |
}
|
6 |
|
7 |
-
#models-to-add-text {
|
8 |
font-size: 18px !important;
|
9 |
}
|
10 |
|
11 |
-
#citation-button span {
|
12 |
font-size: 16px !important;
|
13 |
}
|
14 |
|
15 |
-
#citation-button textarea {
|
16 |
font-size: 16px !important;
|
17 |
}
|
18 |
|
19 |
-
#citation-button > label > button {
|
20 |
-
margin: 6px;
|
21 |
transform: scale(1.3);
|
22 |
}
|
23 |
|
24 |
-
#leaderboard-table {
|
25 |
margin-top: 15px
|
26 |
}
|
27 |
|
28 |
-
#leaderboard-table-lite {
|
29 |
margin-top: 15px
|
30 |
}
|
31 |
|
32 |
-
#search-bar-table-box > div:first-child {
|
33 |
-
background: none;
|
34 |
border: none;
|
35 |
}
|
36 |
-
|
37 |
-
#search-bar {
|
38 |
padding: 0px;
|
39 |
}
|
40 |
|
41 |
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
42 |
table td:first-child,
|
43 |
-
table th:first-child {
|
44 |
-
max-width: 400px;
|
45 |
-
overflow: auto;
|
46 |
white-space: nowrap;
|
47 |
}
|
48 |
|
49 |
-
.tab-buttons button {
|
50 |
font-size: 20px;
|
51 |
}
|
52 |
|
53 |
-
#scale-logo {
|
54 |
-
border-style: none !important;
|
55 |
-
box-shadow: none;
|
56 |
-
display: block;
|
57 |
-
margin-left: auto;
|
58 |
-
margin-right: auto;
|
59 |
max-width: 600px;
|
60 |
}
|
61 |
|
62 |
-
#scale-logo .download {
|
63 |
display: none;
|
64 |
}
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
68 |
padding-top: 0;
|
69 |
}
|
70 |
-
|
|
|
71 |
display: flex;
|
72 |
}
|
73 |
-
|
74 |
-
|
|
|
75 |
margin-right: 0.5em;
|
76 |
}
|
77 |
-
|
|
|
78 |
width: 103px;
|
79 |
}
|
80 |
-
|
|
|
81 |
padding: 2px;
|
82 |
}
|
83 |
-
|
|
|
84 |
width: 1px
|
85 |
}
|
86 |
-
|
87 |
-
|
|
|
88 |
padding:0.5;
|
89 |
}
|
90 |
-
|
91 |
-
|
|
|
92 |
padding:0.5;
|
93 |
}
|
94 |
-
|
|
|
95 |
border: 0
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
"""
|
98 |
|
99 |
-
get_window_url_params = """
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
1 |
+
custom_css = """.markdown-text {
|
|
|
|
|
2 |
font-size: 16px !important;
|
3 |
}
|
4 |
|
5 |
+
#models-to-add-text {
|
6 |
font-size: 18px !important;
|
7 |
}
|
8 |
|
9 |
+
#citation-button span {
|
10 |
font-size: 16px !important;
|
11 |
}
|
12 |
|
13 |
+
#citation-button textarea {
|
14 |
font-size: 16px !important;
|
15 |
}
|
16 |
|
17 |
+
#citation-button > label > button {
|
18 |
+
margin: 6px;
|
19 |
transform: scale(1.3);
|
20 |
}
|
21 |
|
22 |
+
#leaderboard-table {
|
23 |
margin-top: 15px
|
24 |
}
|
25 |
|
26 |
+
#leaderboard-table-lite {
|
27 |
margin-top: 15px
|
28 |
}
|
29 |
|
30 |
+
#search-bar-table-box > div:first-child {
|
31 |
+
background: none;
|
32 |
border: none;
|
33 |
}
|
34 |
+
|
35 |
+
#search-bar {
|
36 |
padding: 0px;
|
37 |
}
|
38 |
|
39 |
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
40 |
table td:first-child,
|
41 |
+
table th:first-child {
|
42 |
+
max-width: 400px;
|
43 |
+
overflow: auto;
|
44 |
white-space: nowrap;
|
45 |
}
|
46 |
|
47 |
+
.tab-buttons button {
|
48 |
font-size: 20px;
|
49 |
}
|
50 |
|
51 |
+
#scale-logo {
|
52 |
+
border-style: none !important;
|
53 |
+
box-shadow: none;
|
54 |
+
display: block;
|
55 |
+
margin-left: auto;
|
56 |
+
margin-right: auto;
|
57 |
max-width: 600px;
|
58 |
}
|
59 |
|
60 |
+
#scale-logo .download {
|
61 |
display: none;
|
62 |
}
|
63 |
+
|
64 |
+
#filter_type{
|
65 |
+
border: 0;
|
66 |
+
padding-left: 0;
|
67 |
padding-top: 0;
|
68 |
}
|
69 |
+
|
70 |
+
#filter_type label {
|
71 |
display: flex;
|
72 |
}
|
73 |
+
|
74 |
+
#filter_type label > span{
|
75 |
+
margin-top: var(--spacing-lg);
|
76 |
margin-right: 0.5em;
|
77 |
}
|
78 |
+
|
79 |
+
#filter_type label > .wrap{
|
80 |
width: 103px;
|
81 |
}
|
82 |
+
|
83 |
+
#filter_type label > .wrap .wrap-inner{
|
84 |
padding: 2px;
|
85 |
}
|
86 |
+
|
87 |
+
#filter_type label > .wrap .wrap-inner input{
|
88 |
width: 1px
|
89 |
}
|
90 |
+
|
91 |
+
#filter-columns-type{
|
92 |
+
border:0;
|
93 |
padding:0.5;
|
94 |
}
|
95 |
+
|
96 |
+
#filter-columns-size{
|
97 |
+
border:0;
|
98 |
padding:0.5;
|
99 |
}
|
100 |
+
|
101 |
+
#box-filter > .form{
|
102 |
border: 0
|
103 |
}
|
104 |
+
|
105 |
+
/* New Column Selection Improvements */
|
106 |
+
.select-columns-container {
|
107 |
+
max-height: 300px;
|
108 |
+
overflow-y: auto;
|
109 |
+
display: grid;
|
110 |
+
grid-template-columns: repeat(4, 1fr);
|
111 |
+
gap: 5px;
|
112 |
+
}
|
113 |
+
|
114 |
+
.select-columns-container label {
|
115 |
+
font-size: 0.9em;
|
116 |
+
padding: 2px;
|
117 |
+
margin: 0;
|
118 |
+
}
|
119 |
+
|
120 |
+
.column-categories {
|
121 |
+
margin-bottom: 10px;
|
122 |
+
}
|
123 |
+
|
124 |
+
/* Ensure accordion is properly styled */
|
125 |
+
.accordion {
|
126 |
+
margin-bottom: 15px;
|
127 |
+
}
|
128 |
"""
|
129 |
|
130 |
+
get_window_url_params = """
|
131 |
+
function(url_params) {
|
132 |
+
const params = new URLSearchParams(window.location.search);
|
133 |
+
url_params = Object.fromEntries(params);
|
134 |
+
return url_params;
|
135 |
+
}
|
136 |
+
"""
|