This part of the documentation will show you how to use the built in top navbar of ChocolateCSS.
The flyout navbar is a modern navbar design.
<!-- Navbar base -->
<div class="flyout-navbar navbar-grey">
<!-- Nav toggler for mobile design -->
<button class="navbar-toggler"></button>
<!-- List of items -->
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>The outer div requires at least two classes. The first one is the flyout-navbar class. It defines the type of the navbar.
Furthermore you need a theme for the navbar. There are three:
navbar-lightnavbar-greynavbar-dark
They are defining the look of the navbar. Try them out yourself.
If you want to have an responsive navbar, you obviously need some type of navbar extender.
<button class="navbar-toggler"></button>The navbar-toggler defines the design and functionallity of the navbar toggler.
NOTE: You need too use the latest navbar-toggler.js script. It`s usage is descriped in the scripts documentation.
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>The ul tag contains all nav items. The nav items are made with an li tag. Inside you can put everything you want.
NOTE: You may use some of your own css to make your nav content fit correctly. The li tag is only optimized for texts.
You can use different nav sizes.
navbar-fullnavbar-halfnavbar-60navbar-smallnavbar-shown
You can play arround with them youself!