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="panel panel-default">
  <div class="panel-body">
    <!-- Single button -->
    <div class="btn-group pull-right top-head-dropdown">
      <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        Notification <span class="caret"></span>
      </button>
      <ul class="dropdown-menu dropdown-menu-right">
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">You have <b>3 new themes</b> trending</div>
            <div class="top-text-light">15 minutes ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">New asset recommendations in <b>Gaming Laptop</b></div>
            <div class="top-text-light">2 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">New asset recommendations in <b>5 themes</b></div>
            <div class="top-text-light">4 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">Assets specifications modified in themes</div>
            <div class="top-text-light">4 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">We crawled <b>www.dell.com</b> successfully</div>
            <div class="top-text-light">5 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">Next crawl scheduled on <b>10 Oct 2016</b></div>
            <div class="top-text-light">6 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">You have an update for <b>www.dell.com</b></div>
            <div class="top-text-light">7 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading"><b>"Gaming Laptop"</b> is now trending</div>
            <div class="top-text-light">7 hours ago</div>
          </a> 
        </li>
        <li>
          <a href="#" class="top-text-block">
            <div class="top-text-heading">New asset recommendations in <b>Gaming Laptop</b></div>
            <div class="top-text-light">7 hours ago</div>
          </a> 
        </li>
       <li>
        <div class="loader-topbar"></div>
       </li>
      </ul>
    </div>
  </div>
</div>

            
          
!
            
              .top-text-block{
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: 400;
  line-height: 1.42857143;
  color: #333;
  white-space: inherit !important;
  border-bottom:1px solid #f4f4f4;
  position:relative;
  &:hover {
        &:before {
        content: '';
        width: 4px;
        background: #f05a1a;
        left: 0;
        top: 0;
        bottom: 0;
        position: absolute;
    }
  }
  &.unread {
    background:#ffc;
    
    // &:hover {
    //   background:#ffd;
    // }
  }
  
  .top-text-light {
    // color:#ccc;
    color: #999;
    font-size: 0.8em;
  }
}   

.top-head-dropdown {
  .dropdown-menu {
   width: 350px;
    height:300px;
    overflow:auto;
  }
  
  li:last-child{
    .top-text-block {
      border-bottom:0;
    }
  }
}
.topbar-align-center {
  text-align: center;
}
.loader-topbar {
  margin: 5px auto;
  border: 3px solid #ddd;
  border-radius: 50%;
  border-top: 3px solid #666;
  width: 22px;
  height: 22px;
  -webkit-animation: spin-topbar 1s linear infinite;
  animation: spin-topbar 1s linear infinite;
}

@-webkit-keyframes spin-topbar {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin-topbar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
            
          
!
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