Remove usages of the top-bar-right class
This is one of Foundation's classes that only applies when its
parent element is a flex container, which isn't the case here since
commit dcec003d0.
This commit is contained in:
@@ -669,14 +669,6 @@ body > header,
|
||||
}
|
||||
}
|
||||
|
||||
.top-bar-right {
|
||||
|
||||
.is-active {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.submenu {
|
||||
border-bottom: 1px solid $border;
|
||||
clear: both;
|
||||
|
||||
@@ -25,13 +25,10 @@
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.top-bar-right {
|
||||
|
||||
> ul {
|
||||
border-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.account-menu {
|
||||
border-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
|
||||
.submenu {
|
||||
position: initial;
|
||||
@@ -40,6 +37,11 @@
|
||||
a {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.is-active {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
[class^="icon-"] {
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
|
||||
<% if show_account_menu? %>
|
||||
<div id="responsive_menu">
|
||||
<div class="top-bar-right">
|
||||
<%= render Layout::AccountMenuComponent.new(user) %>
|
||||
</div>
|
||||
<%= render Layout::AccountMenuComponent.new(user) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -25,14 +25,12 @@
|
||||
</h1>
|
||||
|
||||
<div id="responsive-menu">
|
||||
<div class="top-bar-right">
|
||||
<%= render Layout::AccountMenuComponent.new(current_user) %>
|
||||
<%= render Layout::AccountMenuComponent.new(current_user) %>
|
||||
|
||||
<div class="show-for-small-only">
|
||||
<div class="subnavigation subnavigation-with-top-links">
|
||||
<%= render Layout::SubnavigationComponent.new %>
|
||||
<%= render "shared/top_links" %>
|
||||
</div>
|
||||
<div class="show-for-small-only">
|
||||
<div class="subnavigation subnavigation-with-top-links">
|
||||
<%= render Layout::SubnavigationComponent.new %>
|
||||
<%= render "shared/top_links" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -75,11 +75,11 @@ module Users
|
||||
end
|
||||
|
||||
def expect_to_be_signed_in
|
||||
expect(find(".top-bar-right")).to have_content "My account"
|
||||
expect(find("#responsive-menu")).to have_content "My account"
|
||||
end
|
||||
|
||||
def expect_not_to_be_signed_in
|
||||
expect(find(".top-bar-right")).not_to have_content "My account"
|
||||
expect(find("#responsive-menu")).not_to have_content "My account"
|
||||
end
|
||||
|
||||
def do_login_for(user, management:)
|
||||
|
||||
Reference in New Issue
Block a user