Skip to content

Commit

Permalink
corrected spacing for open knowledge brasil link on topbar
Browse files Browse the repository at this point in the history
  • Loading branch information
basicavisual committed Jan 10, 2024
1 parent 5e40d12 commit 72daf7a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
18 changes: 17 additions & 1 deletion app/packs/stylesheets/okbr/_nav.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#okbr-link {
margin: auto 1rem;
flex: 2 0 auto;
align-self: center;
}

.org-logo {
flex: 2 0 auto;
}
.navbar {
background-color: white;
color: black;
Expand Down Expand Up @@ -61,6 +65,7 @@
}
#okbr-link {
margin: 1.2rem 0 0;
align-self: flex-start;
}

.okbr-search {
Expand All @@ -75,3 +80,14 @@
border-right: 0px;
}
}

@media all and (max-width: 820px) {
.topbar > div.logo-wrapper {
flex-direction: column;
}

#okbr-link {
margin: 1.2rem 0 0;
align-self: flex-start;
}
}
9 changes: 6 additions & 3 deletions app/views/layouts/decidim/_wrapper.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ end
<% end %>
<div class="row column topbar">
<div class="logo-wrapper">
<%= render partial: "layouts/decidim/logo", locals: { organization: current_organization } %>
<div class="org-logo">
<%= render partial: "layouts/decidim/logo", locals: { organization: current_organization } %>
</div>
<div id="okbr-link">
<%= link_to "open knowledge brasil", "https://ok.org.br/", target: "_blank", rel: "nofollow" %>
</div>
</div>
</div>
</div>

<%= render partial: "layouts/decidim/topbar_search" %>
<%= render partial: "layouts/decidim/language_chooser" %>
<div class="hide-for-medium topbar__menu">
Expand Down

0 comments on commit 72daf7a

Please sign in to comment.