Skip to content

Commit

Permalink
adjust header nav links so they are all aligned on the base line (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored Dec 7, 2016
1 parent 401d9af commit 34d0dd9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
4 changes: 4 additions & 0 deletions superset/assets/stylesheets/less/cosmo/bootswatch.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
background: transparent;
}

.navbar-nav > li > a {
padding-top: 18px;
}

// Buttons ====================================================================

.btn-default:hover {
Expand Down
12 changes: 8 additions & 4 deletions superset/templates/appbuilder/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@
{% include 'appbuilder/navbar_menu.html' %}
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="https://github.com/airbnb/superset" title="Superset's Github">
<i class="fa fa-github fa-lg"></i></a>
<li>
<a href="https://github.com/airbnb/superset" title="Superset's Github">
<i class="fa fa-github"></i> &nbsp;
</a>
</li>
<li><a href="http://airbnb.io/superset" title="Documentation">
<i class="fa fa-book fa-lg"></i> </a>
<li>
<a href="http://airbnb.io/superset" title="Documentation">
<i class="fa fa-book"></i> &nbsp;
</a>
</li>
{% include 'appbuilder/navbar_right.html' %}
</ul>
Expand Down
9 changes: 7 additions & 2 deletions superset/templates/appbuilder/navbar_right.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@

{% if not current_user.is_anonymous() %}
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" title="{{g.user.get_full_name()}}" href="#">
<span class="fa fa-user fa-lg" title=""></span><b class="caret"></b>
<a
class="dropdown-toggle"
data-toggle="dropdown"
title="{{g.user.get_full_name()}}"
href="javascript:void(0)"
>
<i class="fa fa-user"></i>&nbsp;<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="{{appbuilder.get_url_for_userinfo}}"><span class="fa fa-fw fa-user"></span>{{_("Profile")}}</a></li>
Expand Down

0 comments on commit 34d0dd9

Please sign in to comment.