Skip to content

Commit

Permalink
[Navbar] Made the navbar spacing universal, also properly sized the l…
Browse files Browse the repository at this point in the history
…oading icon
  • Loading branch information
panda01 committed Feb 11, 2016
1 parent bcb4a0f commit 5259b63
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/plugins/kibana/public/dashboard/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
navbar[name="dashboard-options"] {
padding-bottom: 0;
}
navbar[name="dashboard-search"] {
padding-bottom: 10px;
}
}

dashboard-grid {
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/kibana/public/discover/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
navbar[name="discover-options"] {
padding-bottom: 0;
}
navbar[name="discover-search"] {
padding-bottom: 10px;
}
}

.discover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@
padding-bottom: 0;
}

navbar[name="visualize-search"] {
padding-bottom: 6px;
}

&-actions {
margin-left: auto;
Expand Down
7 changes: 6 additions & 1 deletion src/ui/public/styles/navbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ navbar {
max-height: @navbar-collapse-max-height;
margin-bottom: @navbar-margin-bottom;
// top and bottom padding are normally calcuated and stored in @navbar-padding-vertical, but flexbox
padding: 0 @navbar-padding-horizontal;
padding: 0 @navbar-padding-horizontal 6px @navbar-padding-horizontal;
color: @navbar-default-color;
background-color: @navbar-default-bg;
border: none;
Expand All @@ -20,6 +20,11 @@ navbar {
padding-right: @navbar-padding-horizontal;
}

.navbar-text {
margin-top: 6px;
margin-bottom: 6px;
}

// the "brand" that is displayed, usually on the left of the navbar
> .name {
align-self: center;
Expand Down

0 comments on commit 5259b63

Please sign in to comment.