Got an annoying link in my navbar that just wont separate from the others. When signing in to my web-app the header includes 2 links that wont separate when in screen viewing mode (mobile viewing is just fine). The links are My Dashboard and Sign Out (when signed in); and Sign In and Sign Up (when not signed in):
.navbar {
border-radius:0;
font-family: "Helvetica Neue", Helvetica;
font-weight: 200;
box-shadow: 0px 1px 3px #2a2a2a;
background: image_url('dark_wood.png');
}
.navbar a{
font-size: 300%;
}
.navbar-header {
padding-top: 25px;
height: 85px;
}
.navbar-dark a.navbar-brand {
font-family: "Helvetica Neue", Helvetica;
font-weight: 100;
font-size: 400%;
color:white;
}
<nav class="navbar navbar-dark bg-inverse">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="true" aria-label="Toggle navigation">
<i class="fa fa-bars fa-2x" aria-hidden="true"></i>
</button>
</div>
<div class="collapse navbar-toggleable-md" id="navbarResponsive">
<a class="navbar-brand" href="<%= root_path %>">Flixter</a>
<ul class="nav navbar-nav">
<li class="nav-item">
<%= link_to 'See All Courses', courses_path %>
</li>
</ul>
<ul class="nav navbar-nav">
<% if user_signed_in? %>
<li class="nav-item">
<%= link_to 'My Dashboard', dashboard_path %>
</li>
<li class="nav-item">
<%= link_to 'Sign out', destroy_user_session_path, method: :delete %>
</li>
<% else %>
<li class="nav-item">
<%= link_to 'Sign in', new_user_session_path, class: 'nav-link' %>
</li>
<li class="nav-item">
<%= link_to 'Sign up', new_user_registration_path, class: 'nav-link' %>
</li>
<% end %>
</ul>
</div>
</nav>
Here is my repo in case you need.
} – peterbehere Feb 27 '17 at 20:39