-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fixes header color change and footer height
This commit: - adds in the classes to the header that allowed for custom colorization and refined the responsive layout - Removes some of the padding in the footer to make it more compact in mobile view to account for the height of the body being set in Hyrax which assumes a footer height of 118px Ref: - notch8/palni_palci_knapsack#142
- Loading branch information
Showing
3 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
app/views/themes/institutional_repository/_masthead.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<% # OVERRIDE: Hyrax v5.0.0rc2 - added the search bar and removed the /login and locale nav menu and moved to the /controls partial for theming %> | ||
<header aria-label="header" class="top-header"> | ||
<nav id="masthead" class="navbar-dark bg-dark institutional-repository-nav container-fluid py-2<%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark institutional-repository-nav container-fluid d-block py-2<%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<div class="row align-items-center"> | ||
<div class="col-lg-6 col-md-5 col-sm-12"> | ||
<div class="row justify-content-start"> | ||
<div class="ml-2"><%= render '/logo' %> | ||
<span class="institutional-repository-application-name"><%= application_name %></span> | ||
</div> | ||
<div class="row align-items-center justify-content-end"> | ||
<div class="col-12 col-md-6 pb-2 pb-md-0"> | ||
<div class="row align-items-center justify-content-start"> | ||
<div class="ml-2"><%= render '/logo' %></div> | ||
<div class="institutional-repository-application-name col-10 text-center text-md-left"> | ||
<span><%= application_name %></span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-sm-10 col-md-6"> | ||
<div class="col-lg-6 col-md-7 col-sm-12"> | ||
<%= render partial: 'catalog/search_form' %> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<%= render '/controls' %> |