Update
Browse files- src/assets.py +54 -42
src/assets.py
CHANGED
|
@@ -1,61 +1,73 @@
|
|
| 1 |
custom_css = """
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
}
|
| 9 |
-
.text {
|
| 10 |
-
font-size: 16px !important;
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
.tabs button {
|
| 14 |
-
font-size: 20px;
|
| 15 |
}
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
}
|
| 19 |
-
|
| 20 |
-
.
|
| 21 |
font-size: 16px !important;
|
| 22 |
}
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
font-size: 20px !important;
|
| 26 |
}
|
| 27 |
-
#
|
| 28 |
font-size: 16px !important;
|
| 29 |
}
|
| 30 |
-
#
|
| 31 |
font-size: 16px !important;
|
| 32 |
}
|
| 33 |
-
#
|
| 34 |
-
|
|
|
|
| 35 |
}
|
| 36 |
-
#
|
| 37 |
-
|
|
|
|
| 38 |
}
|
| 39 |
-
#
|
| 40 |
-
|
| 41 |
}
|
| 42 |
-
|
| 43 |
-
font-size:
|
| 44 |
}
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
-
#
|
| 49 |
-
|
| 50 |
}
|
| 51 |
-
#
|
| 52 |
-
|
|
|
|
| 53 |
}
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
}
|
| 61 |
"""
|
|
|
|
| 1 |
custom_css = """
|
| 2 |
+
/* Limit the width of the first AutoEvalColumn so that names don't expand too much */
|
| 3 |
+
table td:first-child,
|
| 4 |
+
table th:first-child {
|
| 5 |
+
max-width: 400px;
|
| 6 |
+
overflow: auto;
|
| 7 |
+
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
+
/* Full width space */
|
| 10 |
+
.gradio-container {
|
| 11 |
+
max-width: 95%!important;
|
| 12 |
}
|
| 13 |
+
/* Text style and margins */
|
| 14 |
+
.markdown-text {
|
| 15 |
font-size: 16px !important;
|
| 16 |
}
|
| 17 |
+
#models-to-add-text {
|
| 18 |
+
font-size: 18px !important;
|
|
|
|
| 19 |
}
|
| 20 |
+
#citation-button span {
|
| 21 |
font-size: 16px !important;
|
| 22 |
}
|
| 23 |
+
#citation-button textarea {
|
| 24 |
font-size: 16px !important;
|
| 25 |
}
|
| 26 |
+
#citation-button > label > button {
|
| 27 |
+
margin: 6px;
|
| 28 |
+
transform: scale(1.3);
|
| 29 |
}
|
| 30 |
+
#search-bar-table-box > div:first-child {
|
| 31 |
+
background: none;
|
| 32 |
+
border: none;
|
| 33 |
}
|
| 34 |
+
#search-bar {
|
| 35 |
+
padding: 0px;
|
| 36 |
}
|
| 37 |
+
.tab-buttons button {
|
| 38 |
+
font-size: 20px;
|
| 39 |
}
|
| 40 |
+
/* Filters style */
|
| 41 |
+
#filter_type{
|
| 42 |
+
border: 0;
|
| 43 |
+
padding-left: 0;
|
| 44 |
+
padding-top: 0;
|
| 45 |
}
|
| 46 |
+
#filter_type label {
|
| 47 |
+
display: flex;
|
| 48 |
}
|
| 49 |
+
#filter_type label > span{
|
| 50 |
+
margin-top: var(--spacing-lg);
|
| 51 |
+
margin-right: 0.5em;
|
| 52 |
}
|
| 53 |
+
#filter_type label > .wrap{
|
| 54 |
+
width: 103px;
|
| 55 |
+
}
|
| 56 |
+
#filter_type label > .wrap .wrap-inner{
|
| 57 |
+
padding: 2px;
|
| 58 |
+
}
|
| 59 |
+
#filter_type label > .wrap .wrap-inner input{
|
| 60 |
+
width: 1px
|
| 61 |
+
}
|
| 62 |
+
#filter-columns-type{
|
| 63 |
+
border:0;
|
| 64 |
+
padding:0.5;
|
| 65 |
+
}
|
| 66 |
+
#filter-columns-size{
|
| 67 |
+
border:0;
|
| 68 |
+
padding:0.5;
|
| 69 |
+
}
|
| 70 |
+
#box-filter > .form{
|
| 71 |
+
border: 0
|
| 72 |
}
|
| 73 |
"""
|