# Header
Cirrus makes designing the perfect header extremely simple. It is designed to be as flexible and responsive as a header menu could be with automatic element hiding for different screen sizes as well as support for dropdown menus. The basic outline for the header menu can be seen below.
<div class="header header-fixed unselectable header-animated">
<div class="header-brand">
<div class="nav-item no-hover">
<a><h6 class="title">Logo</h6></a>
</div>
<div class="nav-item nav-btn" id="header-btn">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="header-nav" id="header-menu">
<div class="nav-left">
<div class="nav-item text-center">
<a href="#">
<span class="icon">
<i class="fab fa-wrapper fa-github" aria-hidden="true"></i>
</span>
</a>
</div>
<div class="nav-item text-center">
<a href="#">
<span class="icon">
<i class="fab fa-wrapper fa-slack" aria-hidden="true"></i>
</span>
</a>
</div>
<div class="nav-item text-center">
<a href="#">
<span class="icon">
<i class="fab fa-wrapper fa-twitter" aria-hidden="true"></i>
</span>
</a>
</div>
<div class="nav-item has-sub toggle-hover" id="dropdown">
<a class="nav-dropdown-link">Animated</a>
<ul class="dropdown-menu dropdown-animated" role="menu">
<li role="menu-item"><a href="#">First Item</a></li>
<li role="menu-item"><a href="#">Second Item</a></li>
<li role="menu-item"><a href="#">Third Item</a></li>
</ul>
</div>
</div>
<div class="nav-right">
<div class="nav-item active">
<a href="#">Active</a>
</div>
<div class="nav-item">
<a href="#">Link 1</a>
</div>
<div class="nav-item has-sub" id="dropdown">
<a class="nav-dropdown-link">Click Me</a>
<ul class="dropdown-menu" role="menu">
<li role="menu-item"><a href="#">First Item</a></li>
<li role="menu-item"><a href="#">Second Item</a></li>
<li role="menu-item"><a href="#">Third Item</a></li>
<li class="dropdown-menu-divider"></li>
<li role="menu-item"><a href="#">Fourth Item</a></li>
</ul>
</div>
</div>
</div>
</div>
Header Outline
header
will serve as the parent container for the header component.-
header-brand
is the left most container of theheader
with the website logo always showing. Extra links can be added here if needed. -
header-nav
is designed for adding links, dropdown menus, and other components. The components are hidden for tablets and phones and are rendered in a main dropdown menu that can be accessed by the hamburger button.-
nav-left
is the left most container of theheader-nav
that will display components like links, buttons, etc on the left side of the screen and the top part of the menu on touch enabled devices.-
nav-item
serves as the main container for all components of anynav-*
container. Slight padding is added into the control. Adding thehas-sub
class indicates that the item has a dropdown menu.-
nav-dropdown-link
specifies that the link inside thenav-item
is associated to an adjacentdropdown-menu
. -
dropdown-menu
is the dropdown menu (ul
) itself that can containli
or any other elements.-
dropdown-menu-divider
is a divider used to separatedropdown-menu
components.
-
-
-
-
-