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:
Javi Martín
2023-01-27 21:57:51 +01:00
parent 3e5039d72c
commit 70161720a0
5 changed files with 17 additions and 27 deletions

View File

@@ -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;

View File

@@ -25,13 +25,10 @@
display: inline-block;
}
.top-bar-right {
> ul {
.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-"] {

View File

@@ -29,10 +29,8 @@
<% if show_account_menu? %>
<div id="responsive_menu">
<div class="top-bar-right">
<%= render Layout::AccountMenuComponent.new(user) %>
</div>
</div>
<% end %>
</div>
</div>

View File

@@ -25,7 +25,6 @@
</h1>
<div id="responsive-menu">
<div class="top-bar-right">
<%= render Layout::AccountMenuComponent.new(current_user) %>
<div class="show-for-small-only">
@@ -36,7 +35,6 @@
</div>
</div>
</div>
</div>
<div id="navigation_bar" class="subnavigation">
<div class="hide-for-small-only">

View File

@@ -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:)