Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <!--
CSS Utility classes (you may remove them from CSS as they don't harm the main functinality of the component):
  
Center an element
<div class="m-x-auto">...</div>

Remove margins from an element
.m-{a,t,r,b,l,x,y}-0
<div class="m-a-0">...</div>

Add 12px margins to an element
.m-{a,t,r,b,l,x,y}
<div class="m-a">...</div>


Remove paddings from an element
.p-{a,t,r,b,l,x,y}-0
<div class="p-a-0">...</div>

Add 12px paddings to an element
.p-{a,t,r,b,l,x,y}
<div class="p-a">...</div>


Text alignment for 'all', 'extra small', 'small', 'medium', and 'large' screen sizes
.text-{left,right,center}
<div class="text-left">...</div>

.text-{xs,sm,md,lg}-{left,right,center}
<div class="text-xs-left">...</div>


Make an element to have 100% width
<div class="w-full" style="background-color: #eee;">...</div>


Some very common text and background colors
.bg-color-{white,black}
.bg-color-{white,black}-secondary
.text-color-{white,black}
<div class="text-color-white bg-color-black">...</div>


Make an element to have curved or rounded edges (border-radius)
<div class="curved">...</div>
<div class="rounded">...</div>
-->

<div class="text-center" style="color: #fff; background-color: #f06292; min-height: 100px; padding: 65px;">
  <h1 style="font-size: 3rem;">WOW</h1>
  <p class="lead" style="font-size: 1.8rem;">
    <strong>Simple Modular Responsive Header and footer</strong> lets you build headers & footers in seconds!
  </p>
</div>

<div style="color: #1a1a1a; background-color: #eee; min-height: 300px; padding: 24px;">
  <!-- Sample #1
  ============================================= -->
  <header class="l24-bar text-color-white bg-color-black p-a">
  
    <!-- Put your brand here -->
    <div class="l24-bar__brand">
      <div style="max-width: 200px;">
        <a href="#">Brand</a>
      </div>
    </div>

    <!-- Put anything that you like it to be collapsed in mobile view here -->
    <div class="l24-bar__collapse" id="collapse-1">
      <nav role="navigation">
        <ul class="l24-list l24-list--visual-collapsible">
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Home</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">About</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Portfolio</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Contact</a></li>
        </ul>
      </nav>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities">
      <ul class="l24-list">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
      </ul>
    </div>

    <!-- Put your toggle button here, the button which toggles the `l24-bar__collapse` element -->
    <div class="l24-bar__toggle">
      <a class="l24-js-toggle l24-link l24-link--effect-alpha" href="#" data-target="#collapse-1"><i class="fa fa-bars fa-fw"></i></a>
    </div>
  
  </header>
  
  <p class="lead text-center">
    Responsive header is <strong>a tiny framework in CSS, and JS</strong> which lets you build collapsible responsive headers in seconds. Just <strong>copy-past</strong> the codes here and replace your own content instead of our dummy content, and you're good to go :)
  </p>
</div>

<div style="color: #eee; background-color: #1a1a1a; min-height: 300px; padding: 24px;">
  <!-- Sample #2
  ============================================= -->
  <header class="l24-bar text-color-black bg-color-white p-a">
  
    <!-- Put your brand here -->
    <div class="l24-bar__brand">
      <div style="max-width: 200px;">
        <a href="#">Brand</a>
      </div>
    </div>

    <!-- Put anything that you like it to be collapsed in mobile view here -->
    <div class="l24-bar__collapse" id="collapse-2">
      <nav role="navigation">
        <ul class="l24-list l24-list--visual-collapsible">
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Home</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">About</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Portfolio</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Contact</a></li>
        </ul>
      </nav>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities">
      <ul class="l24-list">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
      </ul>
    </div>

    <!-- Put your toggle button here, the button which toggles the `l24-bar__collapse` element -->
    <div class="l24-bar__toggle">
      <a class="l24-js-toggle l24-link l24-link--effect-alpha" href="#" data-target="#collapse-2"><i class="fa fa-bars fa-fw"></i></a>
    </div>

  </header>
  
  <p class="lead text-center">
    Compatible with all modern browsers, frameworks, and web environments. Using <strong>Pure HTML5</strong> or a front-end framework such as <strong>Bootstrap</strong>, <strong>MDL</strong>, <strong>Foundation</strong>, or anything else? It doesn't make any difference! You're in good company.
  </p>
  <p class="text-center" style="font-size: 12px; opacity: .6;">IE10, IE11, Firefox, Safari, Opera, Chrome, Edge</p>
</div>

<div style="color: #fff; background-color: #42a5f5; min-height: 300px; padding: 24px;">
  <!-- Sample #3
  ============================================= -->
  <header class="l24-bar text-color-white bg-color-black p-a">
  
    <!-- Put your brand here -->
    <div class="l24-bar__brand">
      <div style="max-width: 200px;">
        <a href="#">Brand</a>
      </div>
    </div>

    <!-- Put anything that you like it to be collapsed in mobile view here -->
    <div class="l24-bar__collapse l24-bar__collapse--state-open" id="collapse-3"> <!-- This collapse is open by default because of the .l24-bar__collapse--state-open CSS class. So we don't need the toggle element and Toggle JavaScript block to open it. -->
      <nav role="navigation">
        <ul class="l24-list l24-list--visual-collapsible">
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Home</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">About</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Portfolio</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Contact</a></li>
        </ul>
      </nav>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities">
      <ul class="l24-list">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
      </ul>
    </div>

  </header>
  
  <p class="lead text-center">
    <strong>Fully responsive!</strong> Just feel free to resize your browser and checkout how responsive the block is. In this example the collapsible content is open by default in mobile view and doesn't need any toggle button to open/close it. Cheers!
  </p>
</div>

<div style="color: #fff; background-color: #26c6da; min-height: 300px; padding: 24px;">
  <!-- Sample #4
  ============================================= -->
  <header class="l24-bar l24-bar--visual-brand-focus text-color-white bg-color-black p-a">
  
    <!-- Put your brand here -->
    <div class="l24-bar__brand text-center">
      <div>
        <a href="#">Brand</a>
      </div>
    </div>

    <!-- Put anything that you like it to be collapsed in mobile view here -->
    <div class="l24-bar__collapse" id="collapse-4">
      <nav role="navigation">
        <ul class="l24-list l24-list--visual-collapsible">
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Home</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">About</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Portfolio</a></li>
          <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Contact</a></li>
        </ul>
      </nav>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities">
      <ul class="l24-list">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
      </ul>
    </div>

    <!-- Put your toggle button here, the button which toggles the `l24-bar__collapse` element -->
    <div class="l24-bar__toggle">
      <a class="l24-js-toggle l24-link l24-link--effect-alpha" href="#" data-target="#collapse-4"><i class="fa fa-bars fa-fw"></i></a>
    </div>

  </header>
  
  <p class="lead text-center">
    <strong>Brand focus!</strong> Simply create a brand focused header which beautifully replaces the brand and collapsible navigation in mobile view.
  </p>
</div>

<div style="color: #fff; background-color: #26a69a; min-height: 300px; padding: 24px;">
  <!-- Sample #5
  ============================================= -->
  <header class="l24-bar l24-bar--visual-brand-focus text-color-black bg-color-white p-a">

    <!-- Put anything that you like it to be collapsed in mobile view here -->
    <div class="l24-bar__collapse" id="collapse-5">
      <div class="m-y">
        <span class="p-y">I will be collapsed!</span>
        <form class="form-inline">
          <div class="input-group">
            <input type="text" class="form-control" placeholder="Search for...">
            <span class="input-group-btn">
              <button class="btn btn-secondary" type="button">Go!</button>
            </span>
          </div>
        </form>
      </div>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities l24-bar__utilities--visual-wide text-left text-sm-right">
      I won't be collapsed!
    </div>

    <!-- Put your toggle button here, the button which toggles the `l24-bar__collapse` element -->
    <div class="l24-bar__toggle">
      <a class="l24-js-toggle l24-link l24-link--effect-alpha" href="#" data-target="#collapse-5"><i class="fa fa-bars fa-fw"></i></a>
    </div>

  </header>
  
  <p class="lead text-center">
    <strong>Collapse any content!</strong> You can use the component's structure for any kind of content. So generally speaking, you're not limited in making headers or footers only, you can simply create any kind of bar. Feel free to resize your browser to see which part is going to be collapsed in mobile view.
  </p>
</div>

<div style="color: #fff; background-color: #66bb6a; min-height: 300px; padding: 24px;">
  <!-- Sample #6
  ============================================= -->
  <footer class="l24-bar l24-bar--visual-footer text-color-white bg-color-black p-a"> <!-- NOTE: Add .l24-bar--pos-fixed-top or .l24-bar--pos-fixed-bottom CSS classes to the block to stick it at top or bottom -->

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities l24-bar__utilities--visual-wide"> <!-- NOTE: .l24-bar__utilities--visual-wide CSS class makes the element to have 100% width but also let next elements sit gently beside them. -->
      Copyrights &copy; All Rights Reserved by <a class="l24-link l24-link--effect-alpha" href="#">Company</a>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities">
      <ul class="l24-list">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
      </ul>
    </div>

  </footer>
  
  <p class="lead text-center m-t">
    <strong>Sticky header or footer!</strong> Simply set a position fix CSS style to the block itself, and it will be fixed (of course this example itself is not fixed! But we've mentioned how to make it fix in HTML comments).
  </p>
</div>

<div style="color: #fff; background-color: #ffa726; min-height: 300px; padding: 24px;">
  <!-- Sample #7
  ============================================= -->
  <footer class="l24-bar l24-bar--visual-footer text-color-white">

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities w-full bg-color-black  m-a-0">
      <div class="container">
        <div class="row m-y">
          <div class="col-sm-8">
            <h4>Simple Modular Responsive Header</h4>
            <p>
              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
            </p>
          </div>
          <div class="col-sm-4">
            <h4>Address</h4>
            <address>
              <strong>Company, Inc.</strong><br>
              12345 Name Street, Suite 900<br>
              San Francisco, CA 94103<br>
              <abbr title="Phone">P:</abbr> (123) 555-2424
            </address>
          </div>
        </div>
      </div>
    </div>

    <!-- Put any utility content here, such as social icons -->
    <div class="l24-bar__utilities w-full bg-color-black-secondary m-a-0">
      <div class="container">
        <div class="row">
          <div class="col-sm-9">
            <p style="margin-top: 14px;">
              Copyrights &copy; All Rights Reserved by <a class="l24-link l24-link--effect-alpha" href="#">Company</a>
            </p>
          </div>

          <div class="col-sm-3 text-left text-sm-right">
            <ul class="l24-list m-y">
              <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
              <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  
  </footer>
  
  <p class="lead text-center m-t">
    <strong>Any content!</strong> As you can see the block can have any content inside of itself, in any layout! In this example we've used the Bootstrap framework grid system to make a nice responsive footer.
  </p>
</div>

<div style="color: #fff; background-color: #ef5350; min-height: 300px; padding: 24px;">
  <!-- Sample #8
  ============================================= -->
  <header class="l24-bar text-color-white p-a curved" style="background-color: #df4340;">
  
  <!-- Put your brand here -->
  <div class="l24-bar__brand">
    <div style="max-width: 200px;">
      <a href="#">Brand</a>
    </div>
  </div>

  <!-- Put anything that you like it to be collapsed in mobile view here -->
  <div class="l24-bar__collapse" id="collapse-8">
    <nav role="navigation">
      <ul class="l24-list l24-list--visual-collapsible">
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Home</a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">About</a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Portfolio</a></li>
        <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#">Contact</a></li>
      </ul>
    </nav>
  </div>

  <!-- Put any utility content here, such as social icons -->
  <div class="l24-bar__utilities">
    <ul class="l24-list">
      <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li>
      <li class="l24-list__item"><a class="l24-link l24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li>
    </ul>
  </div>

  <!-- Put your toggle button here, the button which toggles the `l24-bar__collapse` element -->
  <div class="l24-bar__toggle">
    <a class="l24-js-toggle l24-link l24-link--effect-alpha" href="#" data-target="#collapse-8"><i class="fa fa-bars fa-fw"></i></a>
  </div>
  
</header>
  
  <p class="lead text-center">
    <strong>Any color and feel!</strong> Goal of this component is to let you build responsive header & footer easy and fast. And this is its only goal! So it doesn't force you to use any specific text, background, border, and etc. colors or styles! It just styles the layout for you. The rest is your choice :)
  </p>
</div>

<div class="text-center" style="color: #fff; background-color: #1a1a1a; padding: 100px;">
  <h2>Looking for more?</h2> 
  <p class="lead">
    For a more professional header, footer, navigation, mega menu, and sidebar, I recommend you to checkout the awesome <a class="s24-link" style="color: #66bb6a;" href="https://myflashlabs.github.io/24component-bars/">24component-bars</a> jQuery plugin and CSS framework. It lets you create almost any kind of bar fast and easy. Cheers!
  </p>
  <h4>Like it? Share it!</h4>
  <p class="lead">
    Please share and help us get recognized by more people.
  </p>
</div>
              
            
!

CSS

              
                /*
For a more professional header, footer, navigation, mega menu, and sidebar, 
I recommend you to checkout this awesome jQuery plugin and CSS framework:
https://myflashlabs.github.io/24component-bars/
It lets you create almost any kind of bar fast and easy. Cheers!
*/








////////////////////////////////////////////////////////////////////////////////
/// Custom styles for this preview only, you may not use them in your projects

.pr {
  margin: 0;
  font-family: Arial, sans-serif;
  
  body {
    margin: 0;
  }
}








////////////////////////////////////////////////////////////////////////////////
/// Variables

$l24-color-white:              #eee !default;
$l24-color-black:              #1a1a1a !default;
$l24-color-neutral:            rgba(#ccc, .4) !default;
$l24-color-neutral-secondary:  rgba(#ccc, .2) !default;

$l24-spacer-base:              12px;
$l24-transition-duration:      .3s;
$l24-opacity-disabled:         .4;
  
$l24-screen-xs-min:            480px !default;
$l24-screen-sm-min:            768px !default;
$l24-screen-md-min:            992px !default;
$l24-screen-lg-min:            1200px !default;

$l24-screen-xs-max:            ($l24-screen-sm-min - 1) !default;
$l24-screen-sm-max:            ($l24-screen-md-min - 1) !default;
$l24-screen-md-max:            ($l24-screen-lg-min - 1) !default;








////////////////////////////////////////////////////////////////////////////////
/// Utilities

// NOTE: For more straightforward sizing in CSS, we switch the global
// `box-sizing` value from `content-box` to `border-box`. It can cause problems
// with some third party software. On the rare occasion you need to override it,
// use something like the following:
// .selector-for-some-widget { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; }
*,
*:after,
*:before {
  box-sizing: border-box;
}


.m-a-0                         { margin:        0 !important; }
.m-t-0                         { margin-top:    0 !important; }
.m-r-0                         { margin-right:  0 !important; }
.m-b-0                         { margin-bottom: 0 !important; }
.m-l-0                         { margin-left:   0 !important; }
.m-x-0                         { margin-right:  0 !important; margin-left: 0 !important; }
.m-y-0                         { margin-top:    0 !important; margin-bottom: 0 !important; }

.m-a                           { margin:        $l24-spacer-base !important; }
.m-t                           { margin-top:    $l24-spacer-base !important; }
.m-r                           { margin-right:  $l24-spacer-base !important; }
.m-b                           { margin-bottom: $l24-spacer-base !important; }
.m-l                           { margin-left:   $l24-spacer-base !important; }
.m-x                           { margin-right:  $l24-spacer-base !important; margin-left:   $l24-spacer-base !important; }
.m-y                           { margin-top:    $l24-spacer-base !important; margin-bottom: $l24-spacer-base !important; }
.m-x-auto                      { margin-right: auto !important; margin-left: auto !important; }


.p-a-0                         { padding:        0 !important; }
.p-t-0                         { padding-top:    0 !important; }
.p-r-0                         { padding-right:  0 !important; }
.p-b-0                         { padding-bottom: 0 !important; }
.p-l-0                         { padding-left:   0 !important; }
.p-x-0                         { padding-right:  0 !important; padding-left: 0 !important; }
.p-y-0                         { padding-top:    0 !important; padding-bottom: 0 !important; }

.p-a                           { padding:        $l24-spacer-base !important; }
.p-t                           { padding-top:    $l24-spacer-base !important; }
.p-r                           { padding-right:  $l24-spacer-base !important; }
.p-b                           { padding-bottom: $l24-spacer-base !important; }
.p-l                           { padding-left:   $l24-spacer-base !important; }
.p-x                           { padding-right:  $l24-spacer-base !important; padding-left:   $l24-spacer-base !important; }
.p-y                           { padding-top:    $l24-spacer-base !important; padding-bottom: $l24-spacer-base !important; }


.text-left                     { text-align: left !important; }
.text-right                    { text-align: right !important; }
.text-center                   { text-align: center !important; }

@media (min-width: 480px) {
  .text-xs-left                { text-align: left !important; }
  .text-xs-right               { text-align: right !important; }
  .text-xs-center              { text-align: center !important; }
}

@media (min-width: 768px) {
  .text-sm-left                { text-align: left !important; }
  .text-sm-right               { text-align: right !important; }
  .text-sm-center              { text-align: center !important; }
}

@media (min-width: 992px) {
  .text-md-left                { text-align: left !important; }
  .text-md-right               { text-align: right !important; }
  .text-md-center              { text-align: center !important; }
}

@media (min-width: 1200px) {
  .text-lg-left                { text-align: left !important; }
  .text-lg-right               { text-align: right !important; }
  .text-lg-center              { text-align: center !important; }
}


.w-full                        { width: 100% !important; }
.bg-color-white                { background-color: $l24-color-white !important; }
.bg-color-black                { background-color: $l24-color-black !important; }
.bg-color-white-secondary      { background-color: darken($l24-color-white, 5%) !important; }
.bg-color-black-secondary      { background-color: lighten($l24-color-black, 5%) !important; }
.text-color-white              { color: $l24-color-white !important; }
.text-color-black              { color: $l24-color-black !important; }

.curved                        { border-radius: 4px !important; }
.rounded                       { border-radius: 100px !important; }








////////////////////////////////////////////////////////////////////////////////
/// Bar block

.l24-bar {
  position: relative;
  
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  
  width: 100%;
  min-height: 24px;
  margin-bottom: 24px;
  transition: all $l24-transition-duration;
  transition-timing-function: cubic-bezier(.09, .68, 0, .99);
  z-index: 2000;

  // Clearfix hack.
  &:before,
  &:after {
    content: '';
    display: table;
  }
  &:after {
    clear: both;
  }
}

.l24-bar--pos-fixed-top,
.l24-bar--pos-fixed-bottom {
  position: fixed;
  margin-bottom: 0;
  z-index: 2010;
}

.l24-bar--pos-fixed-top {
  top: 0;
  left: 0;
}

.l24-bar--pos-fixed-bottom {
  bottom: 0;
  left: 0;
}

.l24-bar--visual-footer {
  margin-top: 24px;
  margin-bottom: 0;
}

.l24-bar--visual-brand-focus {
  .l24-bar__brand {
    @media (min-width: $l24-screen-sm-min) {
      flex: 1 1 auto;
    }
  }

  .l24-bar__collapse {
    @media (min-width: $l24-screen-sm-min) {
      order: -1;
      flex: 0 1 auto;
    }
  }
}




// Brand, Collapse, Utilities, and Toggle elements
.l24-bar__brand,
.l24-bar__collapse,
.l24-bar__utilities,
.l24-bar__toggle {
  margin: 4px;
  transition: all $l24-transition-duration;
}




// Utilities element
.l24-bar__utilities--visual-wide {
  // Set grow and shrink to 1, basis to auto so the element can push other flex 
  // items to side and also let them sit beside it if there's enough space.
  flex: 1 1 auto;
}




// Brand element
.l24-bar__brand {
  // So the element can push other flex items to side and also let them sit 
  // beside it if there's enough space.
  flex: 1 1 auto;
  
  font-size: 24px;
  line-height: 1.3333333;
  overflow: hidden;
  
  a {
    display: inline-block;

    &:link,
    &:visited,
    &:hover,
    &:active,
    &:focus {
      color: inherit;
      text-decoration: none;
    }
  }

  img {
    max-width: 100%;
    height: auto;
    vertical-align: initial;
  }
  
  @media (min-width: $l24-screen-sm-min) {
    flex: 0 1 auto; // Reset to defaults
  }
}




// Toggle element
.l24-bar__toggle {
  @media (min-width: $l24-screen-sm-min) {
    display: none;
  }
}




// Collapse element
.l24-bar__collapse {
  // It's hidden by default in small screen. But this property can be modified
  // by the JavaScript toggle block.
  display: none;
  
  // So that the collapse animation via JavaScript toggle block won't jump 
  // because of the margins.
  margin: 0;

  flex: 1 1 100%;
  order: 99;

  transition: padding $l24-transition-duration;

  border-top: 1px solid $l24-color-neutral;

  @media (min-width: $l24-screen-sm-min) {
    // Collapse is ususally the Target block's target, so let's override the 
    // following properties of it that Toggle block defines for it.
    display: block !important;
    height: auto !important;
    
    margin: 4px;

    flex: 2 0 auto;
    order: 0; // Reset order to default

    border-top: 0;
  }

  // Modifier Specific Styles: .no-js, .t24-bar__collapse--state-open
  .no-js &,
  &.l24-bar__collapse--state-open {
    display: block;
  }
  
  // Modifier Specific Styles: .l24-bar--pos-fixed-top, .l24-bar--pos-fixed-bottom
  .l24-bar--pos-fixed-top &,
  .l24-bar--pos-fixed-bottom & {
    max-height: 340px;
    overflow-y: auto;

    @media (max-device-width: $l24-screen-xs-min) and (orientation: landscape) {
      max-height: 200px;
    }

    @media (min-width: $l24-screen-sm-min) {
      overflow-y: visible; // Reset overflow
    }
  }
}








////////////////////////////////////////////////////////////////////////////////
/// List block

.l24-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.l24-list--visual-collapsible {
  @media (max-width: $l24-screen-xs-max) {
    > .l24-list__item {
      display: list-item;
      padding: 0;

      &:hover {
        background-color: $l24-color-neutral-secondary;
      }
    }

    // Block Specific Styles: Link
    .l24-link {
      display: block;
      width: 100%;
      padding: 8px;

      &:hover,
      &:active,
      &:focus {
        opacity: 1;
      }
    }
  }
}




// Item element
.l24-list__item {
  display: inline-block;
  padding: 4px;
  transition: all $l24-transition-duration;

  &:first-child {
    margin: 0;
  }
}








////////////////////////////////////////////////////////////////////////////////
/// Link block

.l24-link {
  &:link,
  &:visited,
  &:hover,
  &:active,
  &:focus {
    color: inherit;
    transition: all $l24-transition-duration;
    text-decoration: none;
  }

  &[disabled] {
    opacity: $l24-opacity-disabled;
    pointer-events: none;
  }
}

.l24-link--effect-alpha {
  &:hover,
  &:active,
  &:focus {
    opacity: .6;
  }
}
              
            
!

JS

              
                $('.l24-js-toggle').on('click.l24toggle', e => {
  e.preventDefault();
  let $target = $( $(e.currentTarget).attr('data-target') );
  $target.animate({height: 'toggle'}, 300);
});
              
            
!
999px

Console