Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="js-head-menu" class="nav-head">
    <div class="nav-head__wrap">
        <div class="nav-head__inner">
            <!-- if you're gonna be non-semantic, be non-semantic... -->
            <div id="js-trigger" class="nav-head__trigger">
                <span></span><span></span><span></span>
            </div>
            <nav class="nav-head__main">
                <ul id="menu-main" class="menu">
                    <li><a href="javascript:void(0);">Team</a></li>
                    <li class="menu-item-has-children"><a href="javascript:void(0);">Properties</a>
                        <ul class="sub-menu">
                            <li><a href="javascript:void(0);">For Lease</a></li>
                            <li><a href="javascript:void(0);">For Sale</a></li>
                        </ul>
                    </li>
                    <li class="menu-item-has-children"><a href="javascript:void(0);">Services</a>
                        <ul class="sub-menu">
                            <li><a href="javascript:void(0);">Office Brokerage</a></li>
                            <li><a href="javascript:void(0);">Industrial Brokerage</a></li>
                            <li><a href="javascript:void(0);">Retail Brokerage</a></li>
                            <li><a href="javascript:void(0);">Multifamily Brokerage</a></li>
                            <li><a href="javascript:void(0);">NNN Brokerage</a></li>
                            <li><a href="javascript:void(0);">Land Infill Brokerage</a></li>
                            <li><a href="javascript:void(0);">Property Management</a></li>
                            <li><a href="javascript:void(0);">Appraisal</a></li>
                        </ul>
                    </li>
                    <li class="menu-item-has-children"><a href="javascript:void(0);">About</a>
                        <ul class="sub-menu">
                            <li><a href="javascript:void(0);">Careers</a></li>
                        </ul>
                    </li>
                    <li class="menu-item-has-children"><a href="javascript:void(0);">Resources</a>
                        <ul class="sub-menu">
                            <li><a href="javascript:void(0);">Deals</a></li>
                            <li><a href="javascript:void(0);">News</a></li>
                            <li><a href="javascript:void(0);">Reports</a></li>
                        </ul>
                    </li>
                    <li><a href="javascript:void(0);">Contact</a></li>
                </ul>
            </nav> <a href="javascript:void(0);" class="nav-head__phone">555.555.5555</a>
            <a href="javascript:void(0);" class="nav-head__logo">
                <span>Pinnacle Real Estate Advisors</span>
            </a>
        </div>
    </div>
</div>

              
            
!

CSS

              
                /*------------------------------------*\
    ::Variables
    ----------------------------------*
    ::Colors
    ::Breakpoints
    ::Layout
    ::Text Styling
\*------------------------------------*/

/*------------------------------------*\
    ::Colors
\*------------------------------------*/

//primary colors / page anchor tags
$color-1:           #0285aa; // e.g. Teal or Nav Text
$color-1-light:     lighten($color-1,20%); // Unused Currently
$color-1-dark:      #084156; // e.g. Dark Teal copyright text
$color-1-darkest:   #161b47; // e.g. Navy Blue Icons or phone number text

//secondary colors / global nav and Local Nav.
$color-2:           #bc8231; // e.g. Orange/Beige or button color
$color-2-light:     lighten($color-2,20%); // Unused Currently
$color-2-dark:      darken($color-2,20%); // Unused Currently

//tertiary colors / secondary global nav and secondary local nav.
$color-3:           #F79021; // Unused Currently
$color-3-light:     lighten($color-3,20%); // Unused Currently
$color-3-dark:      darken($color-3,20%); // Unused Currently

//alert colors
$color-good:        #6ADE72;
$color-bad:         #DE5D5D;
$color-meh:         #EBE857;

/*------------------------------------*\
    ::Breakpoints
\*------------------------------------*/
$galaxy:            1140px;
$solarsystem--big:  1023px; // cater to specific device :-(
$solarsystem:       800px;
$planetary:         500px;

/*------------------------------------*\
    ::Layout
\*------------------------------------*/
$pad:               0.9375rem;
$gap:               $pad;
$gap--baby:         $pad*2.7;
$gap--big:          $pad*3.6;

/*------------------------------------*\
    ::Text Styling
\*------------------------------------*/

//font families
@import url('https://fonts.googleapis.com/css?family=Montserrat');
$fam-body:          "Montserrat", sans-serif;
$fam-heading:       $fam-body;

/*------------------------------------*\
    ::Mixins
    ----------------------------------*
    ::Nav Selectors
    ::Nav
    ::Media Queries
\*------------------------------------*/

/*------------------------------------*\
    ::Nav Selectors
\*------------------------------------*/
//Usage:
// Just copy and paste all of the following
// into an appropriate container and
// breakpoint, like:
//
// .main-nav {
//     @include bp($solarsystem){
//         @include nav-all-li {}
//         @include nav-all-a {}
//         @include nav-primary-ul {}
//         @include nav-primary-li {}
//         @include nav-primary-a {}
//         @include nav-secondary-ul {}
//         @include nav-secondary-li {}
//         @include nav-secondary-a {}
//     }
// }
//
// then add styles within the curly braces
// of any appropriate selector. Just leave
// the rest of the selectors in the
// stylesheet, but leave them empty so
// they're available if needed later; since
// there's nothing in them, they won't output
// anything or lead to bloat.

@mixin nav-all-li() {
    & li {
        @content;
    }
}
@mixin nav-all-a() {
    & a {
        @content;
    }
}
@mixin nav-primary-ul() {
    & > ul {
        @content;
    }
}
@mixin nav-primary-li() {
    @include nav-primary-ul(){
        & > li {
            @content;
        }
    }
}
@mixin nav-primary-a() {
    @include nav-primary-li(){
        & > a {
            @content;
        }
    }
}
@mixin nav-secondary-ul() {
    @include nav-primary-li(){
        & > ul {
            @content;
        }
    }
}
@mixin nav-secondary-li() {
    @include nav-secondary-ul(){
        & > li {
            @content;
        }
    }
}
@mixin nav-secondary-a() {
    @include nav-secondary-li(){
        & > a {
            @content;
        }
    }
}

/*------------------------------------*\
    ::Navigation
\*------------------------------------*/
// NOTE modified for Pinnacle: some things commented out
//
// Use this mixin to add basic nav styling.
// Just add the following code within your styles:
//
//
//      @include nav(
//          $type: 'nested',            //nav type: dropdown or nested
//          $nav-container: '.nav',     //& by default
//          $fade: .3s,                 //fade speed for dropdown (take out for no animation)
//          $easy-hover: 50px,          //amount of invisible overflow for dropdown (take out to not use)
//          $easy-hover-top: 0          //set top easy-hover value (you can also set $easy-hover-right, -bottom, and -left separately)
//      );
//
// or to just use the defaults inside any parent element, simply
//
//      .nav {
//          @include nav();
//      }

@mixin nav(
    $type: 'nested',
    $nav-container: '&',
    $fade: false,
    $easy-hover: false,
    $easy-hover-top: false,
    $easy-hover-right: false,
    $easy-hover-bottom: false,
    $easy-hover-left: false
){
    @if $type == dropdown {
        #{$nav-container} {
            position: relative;
            z-index: 10;
            ul {
                // li {
                //     display: block;
                //     float: left;
                //     list-style: none;
                // }
                ul {
                    visibility: hidden;
                    padding: 0;
                    @if $fade {
                        transition-property: #{opacity, visibility, background-color};
                        transition-duration: #{$fade, 0s};
                        transition-delay: #{0s, $fade};
                    }
                    @if $easy-hover {
                        &:after {
                            content: "";
                            position: absolute;
                            @if $easy-hover-top {
                                top: -1 * $easy-hover-top;
                            } @else {
                                top: -1 * $easy-hover;
                            }
                            @if $easy-hover-bottom {
                                bottom:  -1 * $easy-hover-bottom;
                            } @else {
                                bottom:  -1 * $easy-hover;
                            }
                            @if $easy-hover-left {
                                left:  -1 * $easy-hover-left;
                            } @else {
                                left:  -1 * $easy-hover;
                            }
                            @if $easy-hover-right {
                                right:  -1 * $easy-hover-right;
                            } @else {
                                right:  -1 * $easy-hover;
                            }
                            background-color: #000;
                            opacity: 0;
                            z-index: -1;
                        }
                    }
                }
            }
            //local nav
            li {
                ul {
                    display: block;
                    position: absolute;
                    opacity: 0;
                }
                &:hover {
                    ul {
                        opacity: 1;
                        visibility: visible;
                        @if $fade {
                            transition-delay: 0s, 0s;
                        }
                    }
                }
            }
        }
    }
    @if $type == 'nested' {
        #{$nav-container} {
            li {
                float: left;
                list-style: none;
                ul {
                    padding: 0;
                }
                li {
                    clear: both;
                }
                a {
                    display: block;
                }
            }
            //global nav
            ul {
                //local nav
                ul {
                    padding:0;
                    li {
                        float: left;
                        clear: both;
                    }
                }
            }
        }
    }
}

/*------------------------------------*\
    ::Media Queries
\*------------------------------------*/
//Usage:
// @include bp($max: 600px){ body { background:#000 } }
// @include bp($min: 600px){ body { background:#fff } }
// @include bp($min: 600px, $max: 600px){ body { background:#000 } }
// @include bp($planetary){ body { background:#fff } }

@mixin bp($media: false, $min: false, $max: false) {
    @if $media {
        @media only screen and (max-width: $media) { @content; }
    }
    @else if $min and $max {
        @media only screen and (min-width: $min) and (max-width: $max) { @content; }
    }
    @else if $min {
        @media only screen and (min-width: $min) { @content; }
    }
    @else if $max {
        @media only screen and (max-width: $max) { @content; }
    }

}

/*------------------------------------*\
    ::Nav Trigger (Hamburger)
    ----------------------------------*
    modified from:
    http://codepen.io/matt-chadbourne/pen/OyWEwN
\*------------------------------------*/
.nav-head__trigger {
    $trig-size: 3rem;
    position: absolute;
    top: 2.4rem;
    right: $gap;
    width: $trig-size;
    height: $trig-size;
    @include bp($planetary){
        top: 2.1rem;
    }
    span {
        display: block;
        position: absolute;
        background-color: $color-1;
        margin-top: -7%; // half height
        height: 14%;
        width: 100%;
        transition: 300ms;
        &:nth-child(1) {
            transform: translateY(.8rem);
        }
        &:nth-child(2) {
            transform: translateY($trig-size/2);
        }
        &:nth-child(3) {
            transform: translateY($trig-size - .8rem);
        }
    }

    // active state
    &.active {
        span {
            &:nth-child(1) {
                transform: translateY($trig-size/2) rotate(135deg);
            }
            &:nth-child(2) {
                transform: translateY($trig-size/2) rotate(45deg);
            }
            &:nth-child(3) {
                transform: translateY($trig-size/2) rotate(-135deg);
            }
        }
    }
}

/*------------------------------------*\
    ::Nav in the Header: Phone
\*------------------------------------*/
@include bp($planetary){
    $nav-height: 5.8em;// height of the nav
    .nav-head__logo {
        top: 3.8em;
        font-size: .65em;
    }
    .nav-head__main {
        height: $nav-height;

        /*------------------------------------*\
            ::Global <li> Containers
        \*------------------------------------*/
        @include nav-all-li {}

        /*------------------------------------*\
            ::Global <a> Links
        \*------------------------------------*/
        @include nav-all-a {}

        /*------------------------------------*\
            ::Primary <ul> that Wraps Nav
        \*------------------------------------*/
        @include nav-primary-ul {
            top: $nav-height;
        }

        /*------------------------------------*\
            ::First-Level <li> Containers
        \*------------------------------------*/
        @include nav-primary-li {}

        /*------------------------------------*\
            ::Primary <a> Links Only
        \*------------------------------------*/
        @include nav-primary-a {}

        /*------------------------------------*\
            ::Drupdown <ul> Containers
        \*------------------------------------*/
        @include nav-secondary-ul {}

        /*------------------------------------*\
            ::Secondary <li> Containers Only
        \*------------------------------------*/
        @include nav-secondary-li {}

        /*------------------------------------*\
            ::Secondary <a> Links Only
        \*------------------------------------*/
        @include nav-secondary-a {}
    }
}

/*------------------------------------*\
    ::Nav in the Header: Tablet
\*------------------------------------*/
@include bp($solarsystem--big){
    $nav-height: 6.25em;// height of the nav
    .nav-head {
        background-color: #fff;
    }
    .nav-head__inner {
        max-width: 80%;
        @include bp($solarsystem){
            max-width: 100%;
        }
    }
    .nav-head__logo {
        top: 1.2em;
    }
    .nav-head__phone {
        top: .5em;
        right: .5em;
    }
    .nav-head__main {
        height: $nav-height;

        /*------------------------------------*\
            ::Global <li> Containers
        \*------------------------------------*/
        @include nav-all-li {}

        /*------------------------------------*\
            ::Global <a> Links
        \*------------------------------------*/
        @include nav-all-a {
            letter-spacing: .025em;
        }

        /*------------------------------------*\
            ::Primary <ul> that Wraps Nav
        \*------------------------------------*/
        @include nav-primary-ul {
            overflow-y: scroll;
            position: fixed;
            top: $nav-height;
            left: 0;
            right: 0;
            bottom: 100%;
            padding-top: 1em;
            background-color: $color-1-dark;
            text-align: right;
            opacity: 0;
            box-shadow: 0 .8em .5em -.5em $color-1-darkest inset;
            transition: bottom 1ms 301ms, opacity 300ms;
        }

        /*------------------------------------*\
            ::First-Level <li> Containers
        \*------------------------------------*/
        @include nav-primary-li {
            position: relative;
            padding-right: 4.2em;
            box-shadow: 0 -.6em .8em -.5em $color-1-dark inset;
            &.active {
                ul {
                    max-height: 25.5em;
                    opacity: 1;
                    transition: max-height 300ms ease-in, opacity 300ms 301ms;
                }
            }
            &.menu-item-has-children {
                &:after {
                    content: "+";
                    position: absolute;
                    top: .25em;
                    right: 1em;
                    color: $color-2;
                    font-size: 2em;
                }
            }
        }

        /*------------------------------------*\
            ::Primary <a> Links Only
        \*------------------------------------*/
        @include nav-primary-a {
            display: block;
            color: #fff;
            font-size: 1.8em;
            text-transform: uppercase;
            padding: .35em 0;
        }

        /*------------------------------------*\
            ::Drupdown <ul> Containers
        \*------------------------------------*/
        @include nav-secondary-ul {
            margin: .6em 0;
            overflow: hidden;
            max-height: 0;
            margin: 0;
            opacity: 0;
            transition: max-height 300ms 301ms ease-out, opacity 300ms;
            transtion: 0ms;
        }

        /*------------------------------------*\
            ::Secondary <li> Containers Only
        \*------------------------------------*/
        @include nav-secondary-li {}

        /*------------------------------------*\
            ::Secondary <a> Links Only
        \*------------------------------------*/
        @include nav-secondary-a {
            display: inline-block;
            color: $color-2;
            font-weight: 100;
            padding: .6em 0;
        }
    }

    /*------------------------------------*\
        ::When Triggered
    \*------------------------------------*/
    .nav-head__trigger {
        &.active {
            & + .nav-head__main {
                @include nav-primary-ul {
                    bottom: 0;
                    opacity: 1;
                    transition: bottom 1ms 1ms, opacity 300ms 2ms;
                }
            }
        }
    }

}

/*------------------------------------*\
    ::Nav in the Header: Desktop and +
\*------------------------------------*/
@include bp($min: $solarsystem--big + 1){
    $nav-height: 7.95em;// height of the nav
    .nav-head {
        &:after {
            content: "";
            display: block;
            float: right;
            height: 3em;
        }
    }
    .nav-head__wrap {
        background-color: rgba(#fff, .9);
    }
    .nav-head__trigger {
        display: none; // we don't serve their kind here
    }
    .nav-head__main {
        @include nav(
            $type: 'dropdown',  //nav type: dropdown or nested
            $easy-hover: 50px,  //amount of invisible overflow for dropdown (take out to not use)
            $fade: 300ms,       //fade speed for dropdown (take out for no animation)
            $easy-hover-top: 0  //set top easy-hover value (you can also set $easy-hover-right, -bottom, and -left separately)
        );

        /*------------------------------------*\
            ::Global <li> Containers
        \*------------------------------------*/
        @include nav-all-li {
            &.current-menu-item {
                & > a {
                    pointer-events: none;
                }
            }
        }

        /*------------------------------------*\
            ::Global <a> Links
        \*------------------------------------*/
        @include nav-all-a {}

        /*------------------------------------*\
            ::Primary <ul> that Wraps Nav
        \*------------------------------------*/
        @include nav-primary-ul {
            padding: 0 $gap;
            margin: 0;
            text-align: right;
        }

        /*------------------------------------*\
            ::First-Level <li> Containers
        \*------------------------------------*/
        @include nav-primary-li {
            display: inline-block;
            padding: 0 1.5em;
            &:last-child {
                padding-right: 0;
                & > a {
                    padding-right: 0;
                }
                ul {
                    &:after {
                        right: 0;
                    }
                }
            }
            &.current-menu-item {
                a {
                    &:before,
                    &:after {
                        border-color: $color-2;
                    }
                    &:before {
                        top: 2.5em;
                    }
                    &:after {
                        top: 5em;
                    }
                }
            }
        }

        /*------------------------------------*\
            ::Primary <a> Links Only
        \*------------------------------------*/
        @include nav-primary-a {
            position: relative;
            text-transform: uppercase;
            font-weight: bold;
            display: block;
            padding: 3.2em 0 2.6em;
            font-size: 1.1em;
            letter-spacing: .03em;
            color: $color-1;
            &:before,
            &:after {
                content: "";
                border-bottom: 2px solid transparent;
                position: absolute;
                top: 3em;
                left: 0;
                right: 0;
                transition: 300ms;
                transform:translate3d(0,0,0); // fixes safari flicker bug
            }
            &:after {
                top: 4.4em;
            }
            &:hover {
                &:before,
                &:after {
                    border-color: $color-2;
                }
                &:before {
                    top: 2.5em;
                }
                &:after {
                    top: 5em;
                }
            }
        }

        /*------------------------------------*\
            ::Drupdown <ul> Containers
        \*------------------------------------*/
        @include nav-secondary-ul {
            min-width: 9em;
            margin-left: -1em;
            background-color: $color-1-dark;
            text-align: left;
            border-bottom: 3px solid $color-2;
        }

        /*------------------------------------*\
            ::Secondary <li> Containers Only
        \*------------------------------------*/
        @include nav-secondary-li {
            padding: 0;
            &:first-child {
                a {
                    padding-top: .35em*2;
                }
            }
            &:last-child {
                a {
                    padding-bottom: .35em*2;
                }
            }
            &.current-menu-item {
                a {
                    color: $color-1;
                }
            }
        }

        /*------------------------------------*\
            ::Secondary <a> Links Only
        \*------------------------------------*/
        @include nav-secondary-a {
            display: block;
            padding: .35em 1em .35em;
            font-weight: 100;
            font-size: 1.1em;
            letter-spacing: .03em;
            color: #fff;
            white-space: nowrap;
            &:hover {
                color: $color-1;
            }
        }

        /*------------------------------------*\
            ::Global <li> Containers
        \*------------------------------------*/
        @include nav-all-li {
            &:before {
                display: none;
            }
        }

        /*------------------------------------*\
            ::Global <a> Links
        \*------------------------------------*/
        @include nav-all-a {}

        /*------------------------------------*\
            ::Primary <ul> that Wraps Nav
        \*------------------------------------*/
        @include nav-primary-ul {
            text-align: right;
        }

        /*------------------------------------*\
            ::First-Level <li> Containers
        \*------------------------------------*/
        @include nav-primary-li {
            display: inline-block;
            padding: 0 1.2em;
            &:last-child {
                padding-right: 0;
                & > a {
                    padding-right: 0;
                }
                ul {
                    &:after {
                        right: 0;
                    }
                }
            }
        }

        /*------------------------------------*\
            ::Primary <a> Links Only
        \*------------------------------------*/
        @include nav-primary-a {
            position: relative;
            text-transform: uppercase;
            font-weight: bold;
            display: block;
            padding: 3.2em 0 2.6em;
            font-size: 1.1em;
            letter-spacing: .03em;
            color: $color-1;
            &:before,
            &:after {
                content: "";
                border-bottom: 2px solid transparent;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                top: 3em;
                transition: 300ms;
            }
            &:after {
                top: 4.4em;
            }
            &:hover {
                &:before,
                &:after {
                    border-color: $color-2;
                }
                &:before {
                    top: 2.5em;
                }
                &:after {
                    top: 5em;
                }
            }
        }

        /*------------------------------------*\
            ::Drupdown <ul> Containers
        \*------------------------------------*/
        @include nav-secondary-ul {
            min-width: 9em;
            margin-left: -1em;
            background-color: $color-1-dark;
            text-align: left;
            border-bottom: 3px solid $color-2;
            box-shadow: 0 .5em .5em -.2em rgba(#000, .5) inset;
        }

        /*------------------------------------*\
            ::Secondary <li> Containers Only
        \*------------------------------------*/
        @include nav-secondary-li {
            padding: 0;
            &:first-child {
                a {
                    padding-top: .35em*2;
                }
            }
            &:last-child {
                a {
                    padding-bottom: .35em*2;
                }
            }
        }

        /*------------------------------------*\
            ::Secondary <a> Links Only
        \*------------------------------------*/
        @include nav-secondary-a {
            display: block;
            padding: .35em 1em .35em;
            font-weight: 100;
            font-size: 1.1em;
            letter-spacing: .03em;
            color: #fff;
            white-space: nowrap;
            &:hover {
                color: $color-1;
            }
        }
    }
}

@include bp($min: $solarsystem--big + 1, $max: $galaxy){
    .nav-head {
        font-size: .9em;
    }
}

/*------------------------------------*\
    ::Nav in the Header: Global
\*------------------------------------*/
*, *:before, *:after {
    box-sizing: border-box;
}
body {
    background: teal;
}
a {
    text-decoration: none;
}
.nav-head {
    position: fixed;
    z-index: 1000;
    width: 100%;
    z-index: 500;
    font-family: $fam-body;
}
.nav-head__wrap {
    border-bottom: 3px solid $color-1-dark;
}
.nav-head__inner {
    position: relative;
    max-width: 1200px; // per design
}
.nav-head__phone {
    position: absolute;
    z-index: 10;
    top: $gap;
    right: $gap;
    color: $color-1-dark;
}
.nav-head__logo {
    position: absolute;
    top: 3.4em;
    left: $gap;
    width: 20em;
    height: 3.9em;
    z-index: 10;
    span { // the text (instad of svg logo for demo)
        font-weight: bold;
        font-size: 1.3em;
        color: $color-1;
    }
}
.nav-head__main {
    /*------------------------------------*\
        ::Global <li> Containers
    \*------------------------------------*/
    @include nav-all-li {
        margin: 0;
        list-style: none;
    }

    /*------------------------------------*\
        ::Global <a> Links
    \*------------------------------------*/
    @include nav-all-a {
        text-decoration: none;
        transition: 300ms;
    }

    /*------------------------------------*\
        ::Primary <ul> that Wraps Nav
    \*------------------------------------*/
    @include nav-primary-ul {
        padding: 0 $gap;
        margin: 0;
    }

    /*------------------------------------*\
        ::First-Level <li> Containers
    \*------------------------------------*/
    @include nav-primary-li {}

    /*------------------------------------*\
        ::Primary <a> Links Only
    \*------------------------------------*/
    @include nav-primary-a {}

    /*------------------------------------*\
        ::Drupdown <ul> Containers
    \*------------------------------------*/
    @include nav-secondary-ul {}

    /*------------------------------------*\
        ::Secondary <li> Containers Only
    \*------------------------------------*/
    @include nav-secondary-li {}

    /*------------------------------------*\
        ::Secondary <a> Links Only
    \*------------------------------------*/
    @include nav-secondary-a {}
}

              
            
!

JS

              
                /*------------------------------------*\
        ::Nav
\*------------------------------------*/
jQuery(function($){

    // cache
    var $nav = $('#js-head-menu');
    var $trigger = $('#js-trigger');

    // add click to the trigger
    clickable($trigger);

    // add click to sub nav but not <a>'s inside
    clickable($nav.find('li'), true);

});

/*------------------------------------*\
    ::Clickable
\*------------------------------------*/
var clickable = function($el, stopProp){
    stopProp = stopProp || false;

    // stop link propogation
    if(stopProp){
        $el.find('a').click(function(e){
            e.stopPropagation();
        });
    }

    // expand sub menu
    $el.click(function(){
        $el.not(this).removeClass('active');
        $(this).toggleClass('active');
    });
};
              
            
!
999px

Console