Skip to content

Commit

Permalink
Better margins for all screen widths
Browse files Browse the repository at this point in the history
  • Loading branch information
HHassig committed Oct 29, 2024
1 parent 8cdbede commit 04fd2b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/packs/stylesheets/decidim/decidim_application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
.brand-bar {
padding-top: 0.2rem !important;
padding-bottom: 0.2rem !important;
display: flex;
flex-direction: row;
justify-content: space-between;
width: auto;
}

.bcn-cat-link > a {
Expand All @@ -102,7 +106,7 @@
text-decoration: underline;
}

body > div.layout-container > header > div.main-bar.brand-bar > div.bcn-logo > a > span {
body > div.layout-container > header > div.brand-bar > div.bcn-logo > a > span {
display: none;
}

Expand All @@ -124,7 +128,7 @@ body > div.layout-container > header > div.main-bar.brand-bar > div.bcn-logo > a

@media screen and (max-width: 768px) {
.brand-bar {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
// grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/decidim/header/_main.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="main-bar brand-bar">
<div class="brand-bar home__section">
<div class="bcn-cat-link">
<a href="https://www.barcelona.cat/ca" class="bcnbrand-main-link" title="Barcelona" data-ga="barcelona.cat">www.barcelona.cat</a>
</div>
Expand Down

0 comments on commit 04fd2b7

Please sign in to comment.