// --------------------------------------------------------- // Site navigation core // // The main layout for the website navigation, for both mobile // and desktop devices. // ----------------------------------------------------------- $enable-animations: true; // Fix overflow problems .nav-container { overflow: visible; position: absolute; height: 100px; top: 0; left: 0; width: 100%; } #nav ul.menu-items { position: relative; z-index: 9999; &:after { content: '\00a0'; display: block; height: 0; font: 0/0 serif; clear: both; visibility: hidden; overflow: hidden; } ul, li { display: block; list-style: none; margin: 0; padding: 0; line-height: normal; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(#000, 0); } li, a { position: relative; } a { &.disabled { cursor: not-allowed; } } > li { > h1, > h2, > h3, > h4, > h5, > h6 { margin: 0; padding: 0; } } } // Hide by default if no animations enabled @if $enable-animations == false { @media only screen and (min-width: $responsivenav) { #nav ul.menu-items ul { display: none; } } } // Disable animations on IE10 + IE11 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { @media only screen and (min-width: $responsivenav) { #nav ul.menu-items ul { display: none; } } } @media only screen and (max-width: $responsivenav) { body.js #nav ul.menu-items ul { display: none; } } #nav ul ul { margin-top: 0; margin-left: 25px; ul { margin-left: 25px; } } @if $enable-animations == false { @media only screen and (min-width: $responsivenav) { body.js #nav ul .sub-menu.toggled-on { display: block; } } } // Disable animations on IE10 + IE11 @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { @media only screen and (min-width: $responsivenav) { body.js #nav ul .sub-menu.toggled-on { display: block; } } } @media only screen and (max-width: $responsivenav) { body.js #nav ul .sub-menu.toggled-on { display: block; } } .dropdown-toggle:after, .dropdown-toggle.toggled-on:after, #nav-toggle:before, #nav-toggle.toggled-on:before { speak: none; } .dropdown-toggle:after, .dropdown-toggle.toggled-on:after { font-size: 1.3rem; } body.no-js #nav-toggle { display: none; }