Skip to content

Commit

Permalink
Modified navigation-bar (#11053)
Browse files Browse the repository at this point in the history
* GIT CHECKOUT

* Improved responsiveness

* third commit
  • Loading branch information
simransia authored May 7, 2022
1 parent 3af1d77 commit 4089a4a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions app/views/layouts/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</div>
</li>

<li class="nav-item dropdown" style="min-width:80px;">
<li class="nav-item dropdown about" style="min-width:80px;">
<div class="nav-link" data-toggle="dropdown" onclick="location.href='#'">
<!-- <a > -->
<%= t('layout._header.about.about_title') %>
Expand All @@ -94,10 +94,10 @@
</div>
</li>

<li class="nav-item d-sm-none d-lg-inline" style="padding:0 10px;">
<li class="nav-item d-md-none d-lg-inline store" style="padding:0 10px;">
<a class="nav-link btn btn-outline-secondary" target="_blank" href="//store.publiclab.org"><%= t('layout._header.store') %></a>
</li>
<li class="nav-item d-sm-none d-lg-inline" style="padding:0 10px;">
<li class="nav-item d-md-none d-lg-inline donate" style="padding:0 10px;">
<a class="nav-link btn btn-outline-secondary" href="/donate"><%= t('layout._header.donate') %></a>
</li>

Expand Down Expand Up @@ -259,7 +259,22 @@
overflow-y: auto;
-webkit-overflow-scrolling:touch;
}
.store{
margin-bottom:5px;
}
}
@media (min-width:768px){
.about{
margin-left:-25px;
}
.store{
width:90px;
}
.donate{
width:90px;
}
}

</style>

<%= render :partial => "map/mapDependencies" %>
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ en:
spectral_workbench: "Spectral Workbench"
code_community: "Code Community"
about:
about_title: "About us"
about_title: "About Us"
stories: "Stories"
blog: "Blog"
about_public_lab: "About Public Lab"
Expand Down

0 comments on commit 4089a4a

Please sign in to comment.