.navbar-header
) or inside it.
<div id="navbar" class="navbar navbar-default"> <div id="navbar-container" class="navbar-container"> <!-- toggle buttons are here or inside brand container --> <div class="navbar-header pull-left"> <!-- brand text here --> </div><!-- /.navbar-header --> <div class="navbar-buttons navbar-header pull-right "> <ul class="nav ace-nav"> <!-- user buttons such as messages, notifications and user menu --> </ul> </div><!-- /.navbar-buttons --> <nav class="navbar-menu pull-left"> <!-- optional menu & form inside navbar --> </nav><!-- /.navbar-menu --> </div><!-- /.navbar-container --> </div><!-- /.navbar -->
mustache/app/views/layouts/partials/_shared/navbar.mustache
@screen-topbar-down
variable
at assets/css/less/variables.less
and re-compile ace.less
.
.navbar-collapse
class to .navbar
element
.navbar-collapse
and .collapse
class to .navbar-buttons
element
.navbar-collapse
and .collapse
class to .navbar-menu
element
<div id="navbar" class="navbar navbar-default navbar-collapse"> <div id="navbar-container" class="navbar-container"> <div class="navbar-header pull-left"> <!-- brand text here --> </div><!-- /.navbar-header --> <div class="navbar-buttons navbar-header pull-right navbar-collapse collapse"> <ul class="nav ace-nav"> <!-- user buttons such as messages, notifications and user menu --> </ul> </div><!-- /.navbar-buttons --> <nav class="navbar-menu pull-left navbar-collapse collapse"> <!-- optional menu & form inside navbar --> </nav><!-- /.navbar-menu --> </div><!-- /.navbar-container --> </div><!-- /.navbar -->
.navbar-fixed-top
class to .navbar
element.
.container
class to .navbar-container
element.
.h-navbar
class to .navbar
element.
.navbar-header
container and has the following markup:
.navbar-buttons
element, inside a ul.ace-nav
list:
<div class="navbar-buttons navbar-header pull-right"> <ul class="nav ace-nav"> <li class="light-blue"> <a data-toggle="dropdown" class="dropdown-toggle" href="#"> <i class="ace-icon fa fa-tasks"></i> <span class="badge">5</span> </a> <ul class="dropdown-menu dropdown-navbar dropdown-menu-right dropdown-caret dropdown-close"> <li class="dropdown-header"> title text </li> <li> item#1. </li> <li> item#2. </li> <li class="dropdown-footer"> bottom text or link </li> </ul> </li> <li> Another button and dropdown </li> </ul> </div>For an example see :
mustache/app/views/layouts/partials/_shared/navbar/tasks.mustache
mustache/app/views/layouts/partials/_shared/navbar/notifications.mustache
grey
purple
green
light-blue
light-blue2
red
light-green
light-purple
light-orange
light-pink
dark
white-opaque
dark-opaque
transparent
light-10
dark-10
margin-1
margin-2
margin-3
margin-4
no-border
.ace-nav > li
may get a different color.
The color is dynamically changed by switching to one of the above mentioned
color classes using Javascript and is not dependent on that specific skin.
navbar-pink
navbar-grey
navbar-green
.dropdown-content
element.
assets/js/ace/ace.js
is the code to automatically apply scrollbars on .dropdown-content
element.
data-size
attribute:
.tab-pane
you should use a .dropdown-menu
:
.navbar-buttons,.navbar-menu
.
data-toggle
and data-target
attributes,
you can choose to toggle any element, for example toggle only .navbar-buttons
or
both .navbar-buttons,.navbar-menu
<button class="pull-right navbar-toggle navbar-toggle-img collapsed" type="button" data-toggle="collapse" data-target=".navbar-buttons,.navbar-menu"> <span class="sr-only">Toggle user menu</span> <img src="path/to/avatar/user.jpg" alt="Jason's Photo" /> </button>
<button class="pull-right navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-buttons"> <span class="sr-only">Toggle user menu</span> <i class="ace-icon fa fa-user fa-2x white"></i> </button>
mustache/app/views/layouts/partials/_shared/navbar/toggle_buttons.mustache
mustache/app/views/layouts/partials/_shared/navbar/topmenu.mustache
.navbar-menu
container, you should have ul.nav.navbar-nav
element:
.navbar-menu
container, the form should have .navbar-form
class: