scottsuk0306 commited on
Commit
df17e3a
·
1 Parent(s): a222a9a
Files changed (1) hide show
  1. src/assets.py +43 -51
src/assets.py CHANGED
@@ -1,73 +1,65 @@
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
  """
 
1
  custom_css = """
 
 
 
 
 
 
 
 
2
  .gradio-container {
3
  max-width: 95%!important;
4
  }
5
+
6
+ .logo {
7
+ width: 300px;
8
+ height: auto;
9
+ margin: 0 auto;
10
+ max-width: 100%
11
+ object-fit: contain;
12
  }
13
+ .text {
14
  font-size: 16px !important;
15
  }
16
+
17
+ .tabs button {
18
+ font-size: 20px;
19
  }
20
+ .subtabs button {
21
+ font-size: 20px;
 
22
  }
23
+
24
+ .descriptive-text span {
25
+ font-size: 16px !important;
26
  }
27
+
28
+ #control-panel span {
29
+ font-size: 20px !important;
30
  }
31
+ #search-bar span {
32
+ font-size: 16px !important;
33
  }
34
+ #threshold-slider span {
35
+ font-size: 16px !important;
 
 
 
36
  }
37
+ #memory-slider span {
38
+ font-size: 16px !important;
39
  }
40
+ #columns-checkboxes span {
41
+ font-size: 16px !important;
 
42
  }
43
+ #backend-checkboxes span {
44
+ font-size: 16px !important;
45
  }
46
+ #dtype-checkboxes span {
47
+ font-size: 16px !important;
48
  }
49
+ #optimization-checkboxes span {
50
+ font-size: 16px !important;
51
  }
52
+ #quantization-checkboxes span {
53
+ font-size: 16px !important;
 
54
  }
55
+ #kernel-checkboxes span {
56
+ font-size: 16px !important;
 
57
  }
58
+
59
+ #leaderboard-table td:first-child,
60
+ #leaderboard-table th:first-child {
61
+ max-width: 300px;
62
+ overflow: auto;
63
+ white-space: nowrap;
64
  }
65
  """