Behnamm commited on
Commit
7f989ba
1 Parent(s): a2c0bbc

Update src/display/css_html_js.py

Browse files
Files changed (1) hide show
  1. src/display/css_html_js.py +48 -52
src/display/css_html_js.py CHANGED
@@ -1,68 +1,44 @@
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
- #filter_type{
66
  border: 0;
67
  padding-left: 0;
68
  padding-top: 0;
@@ -70,29 +46,49 @@ table th:first-child {
70
  #filter_type label {
71
  display: flex;
72
  }
73
- #filter_type label > span{
74
  margin-top: var(--spacing-lg);
75
  margin-right: 0.5em;
76
  }
77
- #filter_type label > .wrap{
78
  width: 103px;
79
  }
80
- #filter_type label > .wrap .wrap-inner{
81
  padding: 2px;
82
  }
83
- #filter_type label > .wrap .wrap-inner input{
84
- width: 1px
 
 
 
 
 
 
 
 
 
 
 
85
  }
86
- #filter-columns-type{
87
- border:0;
88
- padding:0.5;
 
89
  }
90
- #filter-columns-size{
91
- border:0;
92
- padding:0.5;
 
93
  }
94
- #box-filter > .form{
95
- border: 0
 
 
 
 
 
 
 
96
  }
97
  """
98
 
@@ -102,4 +98,4 @@ get_window_url_params = """
102
  url_params = Object.fromEntries(params);
103
  return url_params;
104
  }
105
- """
 
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;
 
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
+ /* Header styles */
74
+ #header-title {
75
+ text-align: left;
76
+ display: inline-block;
77
  }
78
+ #header-row {
79
+ display: flex;
80
+ justify-content: space-between;
81
+ align-items: center;
82
  }
83
+ #header-row .gradio-html {
84
+ flex-grow: 1;
85
+ }
86
+ #oauth-button {
87
+ height: auto;
88
+ min-width: max-content;
89
+ white-space: nowrap;
90
+ padding: 10px 20px;
91
+ border-radius: 4px;
92
  }
93
  """
94
 
 
98
  url_params = Object.fromEntries(params);
99
  return url_params;
100
  }
101
+ """