123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="header">    
  <div class="container">
  <h1>Breadcrumbs Demo</h1>
    <nav id="nav">
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Investments</a></li>
        <li><a href="#">Loans</a></li>
        <li><a href="#">Contact</a></li>
      </ul>
    </nav>
  </div>
</div>

<div id="section-title" class="section-title">Mutual Funds</div>

<ol id="sitemap" class="breadcrumb nav">
  <li><a href="#?1">Home</a></li>
  <li><a href="#?2">About</a></li>
  <li class="active"><a href="#?3">Investments</a>

    <!-- breadcrumb trail -->
    <ol>
      <li class="active"><a href="#?4">Stocks</a>

        <ol>
          <li><a href="#?5">Performance</a></li>
          <!-- no link on current page -->
          <li class="current">Expert Analysis</li>
          <li><a href="#?6">History</a></li>
        </ol>

      </li><!-- .active -->
      <li><a href="#?7">Mutual Funds</a>
        <ol>
          <li><a href="#?8">Performance</a></li>
          <li><a href="#?9">Fund Comparison</a></li>
          <li><a href="#?10">History</a></li>
        </ol>
      </li>
      <li><a href="#?11">ETFs</a>
        <ol>
          <li><a href="#?12">Performance</a></li>
          <li><a href="#?13">Fund Comparison</a></li>
          <li><a href="#?14">History</a></li>
        </ol>
      </li>
    </ol>

  </li>
  <li><a href="#?15">Loans</a></li>
  <li><a href="#?16">Contact</a></li>    
  
</ol><!-- .breadcrumb -->

<div class="content">
  <div class="container">
    <h2>Instructions</h2>
    <p>Drag the right edge of the window or frame towards the left until you see the "Trigram for Heaven" ☰ character appear in the upper right-hand corner. Click it to show the menu.</p>
    <p>&nbsp;</p>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing 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>
    <p>Nulla efficitur pharetra leo. In convallis lobortis nisl, ut pretium purus aliquam eget. Maecenas vestibulum venenatis eros, a volutpat mi malesuada eu. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. </p>
  </div>
</div>

<p>&nbsp;</p>
<hr size="3" noshade color="black">

<p>If you find this demo useful, please consider <a href="https://paypal.me/RobertGravelle/1" target="_blank">donating $1 dollar</a> for a coffee or purchasing one of my songs from <a href="https://ax.itunes.apple.com/WebObjects/MZSearch.woa/wa/search?term=rob%20gravelle" target="_blank">iTunes.com</a> or <a href="http://www.amazon.com/s/ref=ntt_srch_drd_B001ES9TTK?ie=UTF8&field-keywords=Rob%20Gravelle&index=digital-music&search-type=ss" target="_blank">Amazon.com</a> for only 0.99 cents each. </p>
<p>Rob uses and recommends <a href="http://www.mochahost.com/2425.html" target="_blank">MochaHost</a>, which provides Web Hosting for as low as $1.95 per month, as well as unlimited emails and disk space!</p>
            
          
!
            
              @import "compass/css3";

//body {
//  padding:2em;
//}
body {
    background: #6699ff;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
.header {
  //  z-index: 2;
 // position: fixed;
//  width: 100%;
  height: 60px;
  line-height: 60px;
  background: #222;
  color: white;
//  background:#eee;
//  margin-bottom:1em;
//  padding:1em 0;
 // font-size:3em;
//  color:#bbb;
 // text-align:center;
//  margin-bottom:0;
}
.header h1 {
    /* position: absolute; */
    top: 0px;
    /* left: 0; */
    margin: 0px;
    text-transform: uppercase;
    font-size: 1.2em;
}
.container {
  position: relative;
  margin: 0 auto;
  width: 94%;
  max-width: 1100px;
  font-family: helvetica, sans-serif;
}
#nav {
  position: absolute;
  right: 0;
  top: -15px;
  height: 0px;
}
#nav ul li {
  float: left;
  list-style: none;
}
#nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0 10px;
}

ul, ol {
  padding:0;
}
// Classic: https://csswizardry.com/2011/09/the-nav-abstraction/
.nav{
    list-style:none;
    margin-left:0;
}
    .nav > li,
        .nav > li > a{
            display:inline-block;
           *display:inline;
            zoom:1;
    }



// The stuff for the ol' breadcrumbs
.breadcrumb {
  
  ol, li, a {
    display:block;
    float:left;
  }
  
  &:after {
    content:"";
    display:block;
    clear:both;
  }
  
  li {
    display:inline-block;
  }
  
  a, 
  .current {
    padding:.5em;
  }
  a {
    text-decoration:none;
  }
  
}

// Desktop first! 
.section-title {
  display:none;
}
.breadcrumb a:after {
  content: " »";
}

// Don't show the whole sitemap, just the active trail
.breadcrumb > li {
  display:none;

  &:first-child, // Home button exception
  &.active, 
  &.current {
    display:inline-block;
  }
    
  li { // active section siblings
      display:none;
      
      &.active,
      &.current {
        display:block;
        //padding: .5em;
      }
    } // li 
} // sitemap > li 
@media (min-width:48em) { // 768px
  .breadcrumb {
    display:block !important;
  }
}

// Mobile
@media (max-width:47.938em) { // 767px
  .header .container {
    width: 100%;
  }
  .header h1 {
    padding-left: 3%;
  }
  #nav {
    width: 100%;
    top: 60px;
  }
  #nav:before {
    content: '\2630';
    display: block;
    position: absolute;
    right: 3%;
    top: -50px;
    line-height: 40px;
    font-size: 1.4em;
    cursor: pointer;
  }
  #nav ul {
    background: #222;
    width: 100%;
    margin: 0px;
  }
  #nav ul li {
    float: none;
  }
  #nav ul li a {
    padding: 10px 3%;
    line-height: 20px;
    border-top: 1px solid #333;
  }
  #nav ul {
    transition: 350ms;
    -moz-transition: 350ms;
    -webkit-transition: 350ms;
    transform: perspective(600) rotate3d(0, 0, 0, 0);
    -moz-transform: perspective(600) rotate3d(0, 0, 0, 0);
    -webkit-transform: perspective(600) rotate3d(1, 0, 0, -90deg);
    transform-origin: 50% 0;
    -moz-transform-origin: 50% 0;
    -webkit-transform-origin: 50% 0;
  }
  #nav.open ul {
    transform: translateY(0px);
    -moz-transform: translateY(0px);
    -webkit-transform: perspective(600) rotate3d(0, 0, 0, 0);
  }
  
  .section-title {
    display:block;
    padding:1em;
    background:#666;
    color:white;
    cursor:pointer;
    margin-top:0;
    
    &:hover {
      background:lightgray;
      color: black;
    }
    
    &:before {
      content:"▾ ";
    }
    &.open:before {
      content: "▴ ";
    }
  } // .section-title

  .breadcrumb {
    padding:1em;
    margin:0;
    background: #e8e8e8;
    border:1px solid #eee;
    border-top:0;
    // Uncomment this to make the ol' dropdown go on top of the content. 
    //position:absolute;
    
    display:none;
    
    ol, li, a {
      float:none;
    }
    .current:before {
        content:"▸ ";        
    }
    
    li {
      display:block;
      float:none;
    }
    a:after {
      content: "";
    } // a

 
     > li {  
      &:first-child,
      &.active, 
      &.current {
        display:block;
      }
    
      li { 
        padding-left:1em;
        display: block;
      }
    } // > li 
  }// .breadcrumb
}







            
          
!
            
              $('#section-title').click(function() {
  $('#sitemap').slideToggle();
  $(this).toggleClass('open');
});

$('#nav').click(function() {
  $(this).toggleClass('open');
});


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console