Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HYC-1793 - Another round of style fixes (hyrax-4) #1031

Merged
merged 9 commits into from
Oct 19, 2023
Prev Previous commit
Next Next commit
Fix sizing and spacing of the featured works section
  • Loading branch information
bbpennel committed Oct 16, 2023
commit 359ebbea2e38ccbddc835398c30c5dcbd867f831
7 changes: 2 additions & 5 deletions app/assets/stylesheets/unc_custom.css.scss
Original file line number Diff line number Diff line change
@@ -312,6 +312,8 @@ span.institution_name {
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
margin-bottom: 25px;
margin-top: 25px;

height: 200px;

@@ -330,11 +332,6 @@ span.institution_name {
margin-bottom: 50px;
}

div {
margin-bottom: 25px;
margin-top: 25px;
}

.featured-item-title {
margin-top: 15px;
}
2 changes: 1 addition & 1 deletion app/views/hyrax/homepage/_featured_fields.html.erb
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<%# [hyc-override] Restructured to display thumbnail on top of title, and removed other fields %>
<div>
<%= link_to [main_app, featured] do %>
<%= render_thumbnail_tag(featured, {width: 90, alt: "#{featured.title.first.to_s} #{ t('hyrax.homepage.admin_sets.thumbnail')}" }, {suppress_link: true})%>
<%= render_thumbnail_tag(featured, {alt: "#{featured.title.first.to_s} #{ t('hyrax.homepage.admin_sets.thumbnail')}" }, {suppress_link: true})%>
<% end %>
<div class="featured-item-title">
<span class="sr-only"><%= t('hyrax.homepage.featured_works.document.title_label') %></span>
2 changes: 1 addition & 1 deletion app/views/hyrax/homepage/_home_content.html.erb
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
<div id="unc-featured" class="row text-center large-screen">
<h2 class="col-12">Featured Deposits</h2>
<%= render 'featured_works' %>
<div class="col-12">
<div class="col-12 mt-5">
<p class="text-center">Interested in seeing more? <%= link_to "Explore the repository &rarr;".html_safe,
main_app.search_catalog_path %></p>
</div>