Skip to content

Commit

Permalink
Fixes for the mobile menu (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarrell authored Oct 4, 2023
1 parent d88a8aa commit 5d82005
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion app/assets/stylesheets/unc_custom.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ span.institution_name {

#top-navbar-collapse {
.dropdown-menu {
left: -70px;
margin: 0 -50px;
text-align: center;
}
}

Expand Down Expand Up @@ -1062,6 +1063,19 @@ input#check_all {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
padding-left: 25px;
background: inherit;
margin: 8px -15px 0 -15px;
z-index: 100;

#user_utility_links {
text-align: center;
}
}

#navbarDropdown.dropdown-toggle {
&:focus {
outline: none;
}
}

.navbar-fixed-top {
Expand Down
2 changes: 1 addition & 1 deletion app/views/_masthead.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%# [hyc-override] https://github.com/samvera/hyrax/tree/hyrax-v4.0.0/app/views/_masthead.html.erb %>
<header aria-label="header" class="top-header">
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-between <%= placement_class %>" role="navigation" aria-label="masthead">
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark <%= placement_class %>" role="navigation" aria-label="masthead">
<h1 class="sr-only"><%= application_name %></h1>
<%# [hyc-override] Overriding partial in hyrax gem to make display of logo conditonal %>
<%= render '/logo' unless controller_name == 'homepage' %>
Expand Down
3 changes: 2 additions & 1 deletion app/views/layouts/hyrax.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<%# [hyc-override] Disable turbolinks %>
<%= link_to "Skip to Content", "#skip-to-content", data: { turbolinks: false } %>
</div>
<%= render '/masthead', placement_class: nil %>
<% header_class = controller_name == 'homepage' ? 'justify-content-end' : 'justify-content-between' %>
<%= render '/masthead', placement_class: header_class %>
<%= content_for(:navbar) %>
<%= content_for(:precontainer_content) %>
<%# [hyc-override] Change class to container-fluid %>
Expand Down

0 comments on commit 5d82005

Please sign in to comment.