akhaliq HF staff commited on
Commit
44c7222
·
verified ·
1 Parent(s): 99f6b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -125,7 +125,7 @@ body {
125
  position: relative;
126
  }
127
  button, .button {
128
- background-color: #4a4a4a;
129
  color: white;
130
  border: none;
131
  padding: 0.5rem 1rem;
@@ -136,7 +136,15 @@ button, .button {
136
  line-height: 1.25rem;
137
  }
138
  button:hover, .button:hover {
139
- background-color: #2d2d2d;
 
 
 
 
 
 
 
 
140
  }
141
  .no-papers {
142
  text-align: center;
@@ -208,7 +216,7 @@ with demo:
208
  paper_list = gr.HTML(elem_classes=["paper-list"])
209
 
210
  demo.load(initialize_app, outputs=[paper_list, page_info])
211
- refresh_button = gr.Button("↻", variant="primary") # Refresh button kept here
212
  refresh_button.click(refresh_papers, outputs=[paper_list, page_info])
213
  prev_button.click(paper_manager.prev_page, outputs=[paper_list, page_info])
214
  next_button.click(paper_manager.next_page, outputs=[paper_list, page_info])
 
125
  position: relative;
126
  }
127
  button, .button {
128
+ background-color: #4caf50; /* Modern green color */
129
  color: white;
130
  border: none;
131
  padding: 0.5rem 1rem;
 
136
  line-height: 1.25rem;
137
  }
138
  button:hover, .button:hover {
139
+ background-color: #388e3c; /* Darker green on hover */
140
+ }
141
+ button.refresh-btn {
142
+ padding: 0.5rem; /* Smaller padding for refresh button */
143
+ font-size: 1rem;
144
+ background-color: #2196f3; /* Blue color for refresh button */
145
+ }
146
+ button.refresh-btn:hover {
147
+ background-color: #1976d2; /* Darker blue on hover */
148
  }
149
  .no-papers {
150
  text-align: center;
 
216
  paper_list = gr.HTML(elem_classes=["paper-list"])
217
 
218
  demo.load(initialize_app, outputs=[paper_list, page_info])
219
+ refresh_button = gr.Button("↻", variant="primary", elem_classes=["refresh-btn"]) # Refresh button styled and resized
220
  refresh_button.click(refresh_papers, outputs=[paper_list, page_info])
221
  prev_button.click(paper_manager.prev_page, outputs=[paper_list, page_info])
222
  next_button.click(paper_manager.next_page, outputs=[paper_list, page_info])