Smita R Smita commited on
Commit
011f79c
·
unverified ·
1 Parent(s): ad0be25

update styling of links (#77)

Browse files

Co-authored-by: Smita <>

Files changed (3) hide show
  1. about.py +1 -1
  2. content.py +8 -12
  3. ui_components.py +2 -2
about.py CHANGED
@@ -46,7 +46,7 @@ def build_page():
46
  Plus: a large suite of integrated agents and leaderboards with results from extensive evaluation of agents and models.
47
  </p>
48
  <p>
49
- 🔍 Learn more in the AstaBench technical blog post
50
  </p>
51
  """
52
  )
 
46
  Plus: a large suite of integrated agents and leaderboards with results from extensive evaluation of agents and models.
47
  </p>
48
  <p>
49
+ 🔍 Learn more in the <a href="https://allenai.org/blog/astabench" target="_blank" class="primary-link-button">AstaBench technical blog post</a>
50
  </p>
51
  """
52
  )
content.py CHANGED
@@ -318,28 +318,28 @@ nav.svelte-ti537g.svelte-ti537g {
318
  .padding.svelte-phx28p {
319
  padding: 0 !important;
320
  }
321
- .dark .sub-nav-link-button {
322
- color: #0fcb8c !important;
323
- }
324
  .sub-nav-bar-container {
325
  display: flex !important;
326
  flex-wrap: nowrap !important;
327
  align-items: center !important;
328
  gap: 20px !important;
329
  }
330
- .sub-nav-link-button {
 
 
 
331
  background: none;
332
  border: none;
333
  padding: 0;
334
  margin: 0;
335
  font-family: inherit;
336
  font-size: 16px;
337
- color: #F263A6;
338
  text-decoration: none;
339
  cursor: pointer;
340
  white-space: nowrap;
341
  }
342
- .sub-nav-link-button:hover {
343
  text-decoration: underline;
344
  }
345
  .sub-nav-label {
@@ -491,13 +491,9 @@ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
491
  .dark .benchmark-title{
492
  color: var(--color-primary-green);
493
  }
494
- .scroll-up-button {
495
  margin: 20px 0;
496
- text-align: left;
497
- text-decoration: underline;
498
- }
499
- .scroll-up-button:hover {
500
- text-decoration: none;
501
  }
502
  /*------ Submission Page CSS ------*/
503
  #submission-modal .modal-container {
 
318
  .padding.svelte-phx28p {
319
  padding: 0 !important;
320
  }
 
 
 
321
  .sub-nav-bar-container {
322
  display: flex !important;
323
  flex-wrap: nowrap !important;
324
  align-items: center !important;
325
  gap: 20px !important;
326
  }
327
+ .dark .primary-link-button {
328
+ color: var(--color-primary-green);
329
+ }
330
+ .primary-link-button {
331
  background: none;
332
  border: none;
333
  padding: 0;
334
  margin: 0;
335
  font-family: inherit;
336
  font-size: 16px;
337
+ color: var(--color-primary-pink);
338
  text-decoration: none;
339
  cursor: pointer;
340
  white-space: nowrap;
341
  }
342
+ .primary-link-button:hover {
343
  text-decoration: underline;
344
  }
345
  .sub-nav-label {
 
491
  .dark .benchmark-title{
492
  color: var(--color-primary-green);
493
  }
494
+ .benchmark-description {
495
  margin: 20px 0;
496
+ max-width: 800px;
 
 
 
 
497
  }
498
  /*------ Submission Page CSS ------*/
499
  #submission-modal .modal-container {
ui_components.py CHANGED
@@ -649,7 +649,7 @@ def create_benchmark_details_display(
649
  gr.HTML(f'''
650
  <h3 class="benchmark-title" id="{create_gradio_anchor_id(benchmark_name, validation)}">{benchmark_name} Leaderboard</h3>
651
  <div class="benchmark-description">{get_benchmark_description(benchmark_name, validation)}</div>
652
- <button onclick="scroll_to_element('page-content-wrapper')" class="scroll-up-button">Return to the aggregate {category_name} leaderboard</button>
653
  ''')
654
 
655
  # 3. Prepare the data for this specific benchmark's table and plot
@@ -837,7 +837,7 @@ def create_sub_navigation_bar(tag_map: dict, category_name: str, validation: boo
837
  # Note the mix of double and single quotes.
838
  button_str = f"""
839
  <button
840
- class="sub-nav-link-button"
841
  onclick="scroll_to_element('{target_id}')"
842
  >
843
  {name}
 
649
  gr.HTML(f'''
650
  <h3 class="benchmark-title" id="{create_gradio_anchor_id(benchmark_name, validation)}">{benchmark_name} Leaderboard</h3>
651
  <div class="benchmark-description">{get_benchmark_description(benchmark_name, validation)}</div>
652
+ <button onclick="scroll_to_element('page-content-wrapper')" class="primary-link-button">Return to the aggregate {category_name} leaderboard</button>
653
  ''')
654
 
655
  # 3. Prepare the data for this specific benchmark's table and plot
 
837
  # Note the mix of double and single quotes.
838
  button_str = f"""
839
  <button
840
+ class="primary-link-button"
841
  onclick="scroll_to_element('{target_id}')"
842
  >
843
  {name}