horizon/openstack_dashboard/static/dashboard/scss/components/_navbar.scss
andrewbogott 1644a0eee4 Add scrolling to the projector selector
Adds a scrollbar to the project selector for larger screens. This isn't
needed for smaller sizes, as it already scrolls.

Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
Change-Id: Ib03eafccd4725af94556286f1f541a9e7cde96e4
Closes-Bug: #1498039
2016-05-20 18:04:07 +00:00

56 lines
1.1 KiB
SCSS

.navbar-brand {
padding: 0 $padding-small-horizontal;
margin: 0;
display: block;
img {
display: inline-block;
max-height: $navbar-height;
vertical-align: middle;
}
}
//Specifity Required
.navbar-header .navbar-brand {
// These allow the vertical centering to work properly
line-height: $navbar-height;
font-size: 0;
}
.topbar {
.navbar {
margin-bottom: 1px;
}
.dropdown-toggle > .fa {
padding-left: $padding-small-vertical;
padding-right: $padding-small-vertical;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}
.context-delimiter {
font-size: $padding-small-vertical;
vertical-align: middle;
padding-right: $padding-small-vertical;
padding-left: $padding-small-vertical;
}
// Scrollbar for the project menu on larger screens
// Not needed for smaller screens, as it is already scrollable
// and can be collapsed to access the settings menu etc.
@media(min-width: $screen-sm-min) {
.context-selection {
max-height: $context-selector-max-height;
overflow-y: scroll;
}
}