forked from e621ng/e621ng
[Home] Add the navbar to the homepage (#842)
This commit is contained in:
parent
0eb02c6728
commit
1480cfb42f
@ -326,3 +326,10 @@ nav.navigation, body.nav-toggled nav.navigation {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Tweak for the secondary menu on desktop
|
||||
body.c-static.a-home {
|
||||
@include window-larger-than(800px) {
|
||||
menu.nav-secondary { background: transparent; }
|
||||
}
|
||||
}
|
||||
|
@ -10,11 +10,7 @@
|
||||
<menu class="nav-offset"></menu>
|
||||
|
||||
<menu class="nav-secondary <%= "empty" unless content_for(:secondary_links) %>">
|
||||
<% if content_for(:secondary_links) %>
|
||||
<%= yield :secondary_links %>
|
||||
<% else %>
|
||||
<%= subnav_link_to "Height Placeholder", "" %>
|
||||
<% end %>
|
||||
</menu>
|
||||
|
||||
<menu class="nav-controls">
|
||||
|
@ -5,6 +5,8 @@
|
||||
</head>
|
||||
<%= tag.body **body_attributes(CurrentUser.user) do %>
|
||||
<%= render "layouts/theme_include" %>
|
||||
<%= render "layouts/nav" %>
|
||||
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<%= render "static/guest_warning" %>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user