Skip to content

Commit

Permalink
Restyle Globus button (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcorrea authored Mar 25, 2022
1 parent ad1ae0f commit 1974121
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Binary file added app/assets/images/globus_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions app/assets/stylesheets/modules/downloads.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
}
}
}
}

&__button.lux-button.solid[data-v-b7851b04] {
width: max-content;
float: right;
font-weight: $font-weight-bold;
}
.globus_button {
margin-top: 15px;
background-color: #335a95; /* Globus blue */
width: max-content;
float: right;
}
8 changes: 5 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ def render_globus_download(uri, item_id)
return if uri.nil?
html = <<-HTML
<div id="globus">
<button data-v-b7851b04="" type="button" class="document-downloads__button lux-button solid medium">
#{link_to('Download from Globus', uri, target: '_blank', title: 'opens in a new tab', rel: 'noopener noreferrer', class: 'globus-download-link', data: { item_id: item_id })}
<i class="bi bi-cloud-arrow-down-fill"></i>
<button type="button" class="globus_button lux-button solid medium">
<a href="#{uri}" title="Opens in a new tab" class="globus-download-link"
target="_blank" rel="noopener noreferrer" data-item-id="#{item_id}">
#{image_tag('globus_logo.png', width: '20')} Download from Globus
</a>
</button>
</div>
HTML
Expand Down

0 comments on commit 1974121

Please sign in to comment.