Remove usage of the top-bar-title class

This class was only there in order to use Foundation's styles, but
the amount of styles we were using was equal to the amount of
styles we were overwriting.
This commit is contained in:
Javi Martín
2023-01-27 21:00:57 +01:00
parent d0fcc9022f
commit 3e5039d72c
3 changed files with 11 additions and 7 deletions

View File

@@ -550,6 +550,10 @@ body > header,
.top-bar { .top-bar {
@include background-with-text-contrast($main-header, [main-header, brand]); @include background-with-text-contrast($main-header, [main-header, brand]);
h1 {
line-height: $line-height;
}
} }
} }
@@ -563,12 +567,13 @@ body > header,
.top-bar { .top-bar {
background-color: inherit; background-color: inherit;
padding: 0; padding-left: 0;
padding-right: 0;
@include breakpoint(medium) { @include breakpoint(medium) {
justify-content: flex-start; justify-content: flex-start;
.top-bar-title { h1 {
flex-grow: 1; flex-grow: 1;
} }
} }
@@ -577,9 +582,8 @@ body > header,
background: none; background: none;
} }
.top-bar-title { h1 {
line-height: $line-height; margin-bottom: 0;
margin-right: 0;
a img { a img {
height: rem-calc(48); height: rem-calc(48);

View File

@@ -16,6 +16,7 @@
.top-bar { .top-bar {
height: auto; height: auto;
padding-bottom: 0;
padding-top: $line-height / 2; padding-top: $line-height / 2;
@include breakpoint(small only) { @include breakpoint(small only) {
@@ -52,7 +53,6 @@
h1 { h1 {
margin-top: $line-height / 2; margin-top: $line-height / 2;
margin-bottom: 0;
@include breakpoint(medium) { @include breakpoint(medium) {
margin-top: 0; margin-top: 0;

View File

@@ -18,7 +18,7 @@
</button> </button>
</span> </span>
<h1 class="top-bar-title"> <h1>
<%= link_to root_path, accesskey: "0" do %> <%= link_to root_path, accesskey: "0" do %>
<%= image_tag(image_path_for("logo_header.png"), alt: setting["org_name"]) %> <%= image_tag(image_path_for("logo_header.png"), alt: setting["org_name"]) %>
<% end %> <% end %>