8 #structure Structure

This component contains structural elements of a page, such as the header, footer or content areas. You can use the components to seamlessly build a well-designed application.

Source: scss/components/structure/_structure.scss, line 1

8.1 #structure.header Header

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

The header uses a styled version of the Bootstrap navbar.

Use .navbar-fixed to fix the navbar to the top of the screen.

Markup
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><span class="mimacom-logo" title="mimacom"></span></a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">Services</a></li>
        <li><a href="#">Solutions</a></li>
        <li><a href="#">References</a></li>
        <li><a href="#">Insights</a></li>
        <li class="active"><a href="#">Career <span class="sr-only">(current)</span></a></li>
        <li><a href="#">About</a></li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">DE<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">DE</a></li>
            <li><a href="#">EN</a></li>
            <li><a href="#">ES</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
Source: scss/components/structure/_header.scss, line 1

8.4 #structure.sidebar Sidebar

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

This component is omni-present to always provide the user with contact information. In case more information is required or available, an icon may define a dropout that is visible while hovering the icon. The dropout may either be a .sidebar__dropout--text to render arbitrary text or a .sidebar__dropout--icon to show further icons.

Note: Currently, the numer of icons in .sidebar__dropout--icon has to be exactly 3, as there is no general solution available for correctly positioning the icons.

Example

The sidebar has position: fixed;, so look to the right!

Markup
<nav class="sidebar sidebar--fixed headroom--top headroom--not-bottom">
  <div class="sidebar__icon">
    <a href="mailto:info@mimacom.com"><i class="icon-sidebar_mail"></i></a>
  </div>
  <div class="sidebar__icon">
    <i class="icon-sidebar_phone"></i>
    <div class="sidebar__dropout sidebar__dropout--text">
        <h3 class="sidebar__dropout-title">OFFICE BERN</h3>
        <p>Phone: +41 31 329 09 00<br>
           Fax: +41 31 329 09 01</p>
        <p class="sidebar__dropout-title">Service Desk</p>
        <p>Phone: +41 31 329 09 02</p>
        <a href="#!" class="link link--outline">Alle Standorte anzeigen</a>
    </div>
  </div>
  <div class="sidebar__icon">
    <a href="https://blog.mimacom.com"><i class="icon-sidebar_blog"></i></a>
  </div>
  <div class="sidebar__icon">
    <i class="icon-sidebar_social"></i>
    <div class="sidebar__dropout sidebar__dropout--icons">
      <a href="#!" class="sidebar__dropout-icon"><i class="icon-sidebar_social_twitter"></i></a>
      <a href="#!" class="sidebar__dropout-icon"><i class="icon-sidebar_social_linkedin"></i></a>
      <a href="#!" class="sidebar__dropout-icon"><i class="icon-sidebar_social_instagram"></i></a>
    </div>
  </div>
</nav>
<p class="kss-description">The sidebar has <code>position: fixed;</code>, so look to the right!</p>
Source: scss/components/structure/_structure.scss, line 21