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 {
|
.submenu {
|
||||||
border-bottom: 1px solid $border;
|
border-bottom: 1px solid $border;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
|||||||
@@ -25,13 +25,10 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-bar-right {
|
.account-menu {
|
||||||
|
|
||||||
> ul {
|
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.submenu {
|
.submenu {
|
||||||
position: initial;
|
position: initial;
|
||||||
@@ -40,6 +37,11 @@
|
|||||||
a {
|
a {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-active {
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[class^="icon-"] {
|
[class^="icon-"] {
|
||||||
|
|||||||
@@ -29,10 +29,8 @@
|
|||||||
|
|
||||||
<% if show_account_menu? %>
|
<% if show_account_menu? %>
|
||||||
<div id="responsive_menu">
|
<div id="responsive_menu">
|
||||||
<div class="top-bar-right">
|
|
||||||
<%= render Layout::AccountMenuComponent.new(user) %>
|
<%= render Layout::AccountMenuComponent.new(user) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div id="responsive-menu">
|
<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="show-for-small-only">
|
||||||
@@ -36,7 +35,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="navigation_bar" class="subnavigation">
|
<div id="navigation_bar" class="subnavigation">
|
||||||
<div class="hide-for-small-only">
|
<div class="hide-for-small-only">
|
||||||
|
|||||||
@@ -75,11 +75,11 @@ module Users
|
|||||||
end
|
end
|
||||||
|
|
||||||
def expect_to_be_signed_in
|
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
|
end
|
||||||
|
|
||||||
def expect_not_to_be_signed_in
|
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
|
end
|
||||||
|
|
||||||
def do_login_for(user, management:)
|
def do_login_for(user, management:)
|
||||||
|
|||||||
Reference in New Issue
Block a user