/* ==========================================================
 * mega-menu.scss
 * Description
 *
 * Author: Yann Gouffon, yann@antistatique.net
 * Date:   2014-04-30 15:34:07
 *
 * Copyright 2014 Federal Chancellery of Switzerland
 * Licensed under MIT
 =========================================================== */

.yamm {
  display: block;
  min-height: 0;
  .no-ie & {
    z-index: 20;
  }
  .yamm-content {padding: 5px 20px 20px 20px !important;}
  .dropdown {margin-left: 0;}
  .dropdown-menu {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: 0 0 6px fade-out($black, 0.7);
    .ie8 &{
      border: 1px solid $silver;
      border-top: none;
    }
    li {display: block;}
  }
  .dropdown-backdrop {
    display: none;
  }
  .no-ie &.nav-open {
    z-index: 9999;
  }
}

.yamm-close-bottom {
  position: absolute;
  bottom: 0;
  width: 100px;
  left: 50%;
  margin-left: -50px;
  background: $smoke;
  border-top: 1px solid $silver !important;
  border-left: 1px solid $silver;
  border-right: 1px solid $silver;
  text-align: center;
  color: $coal;
  &:hover {
    color: $venetian-red;
    text-decoration: none;
  }
  .nav-page-list & {
    width: 100px;
  }
}

// fix to display links correctly in main nav dropdown on hover
.nav-main.yamm .nav .dropdown-menu li:hover a {
  padding-bottom: auto !important;
  border-top: auto !important;
}