julianfresco / broen

A starter theme for admin dashboards in front-end frameworks. Demo:
https://julianfresco.github.io/broen
0 stars 0 forks source link

Fix mobile nav open and collapsed states #14

Closed julianfresco closed 8 years ago

julianfresco commented 8 years ago

There are some issues with the mobile nav:

Suggested fix (broen.css):


/* Mobile look */
@media (max-width: 767px) {
  .broen-nav-container {
    position: static;
    height: auto;
    width: auto;
    transition: opacity .2s, max-height .2s, z-index .2s;
    opacity: 0;
    max-height: 0;
    opacity: 1;
    max-height: 1200px;
    z-index: auto;
  }

  .broen-nav-container.nav-mobile-collapsed {
    opacity: 0;
    max-height: 0;
    z-index: -1;
  }

  .broen-navbar.navbar-mobile-open,
  .navbar-mobile-open .broen-nav,
  .navbar-mobile-open .broen-nav-item,
  .navbar-mobile-open .nav-item-container {
    max-height: initial;
    display: block;
  }

  .broen-navbar,
  .broen-nav,
  .broen-nav-item,
  .nav-item-container {
    max-height: 0;
    display: none;
  }

  #toggle-expand,
  #toggle-compress {
    display: none;
  }

  .broen-navbar {
    border-top: none;
  }
}