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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                link(rel='stylesheet', href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css')
script(src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js')
script(src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js')

style.
  @import url(https://fonts.googleapis.com/css?family=Roboto:300,100,900);body{font-family:'Roboto';padding-top:100px}
    
//- Fixed navbar
nav#navbar-one.navbar.navbar-inverse.navbar-fixed-top
  .container
    .navbar-header
      button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#navbar', aria-expanded='false', aria-controls='navbar')
        span.sr-only Toggle navigation
        span.icon-bar
        span.icon-bar
        span.icon-bar
      a.navbar-brand(href='#') Navbar Primary

    #navbar.navbar-collapse.collapse
      ul.nav.navbar-nav
        li.active: a(href='#') Home
        li: a(href='#about') About
        li: a(href='#contact') Contact
        li.dropdown
          a.dropdown-toggle(href='#', data-toggle='dropdown', role='button', aria-haspopup='true', aria-expanded='false') Dropdown 
            span.caret
          ul.dropdown-menu
            li: a(href='#') Action
            li: a(href='#') Another action
            li: a(href='#') Something else here
            li.divider(role='separator')
            li.dropdown-header Nav header
            li: a(href='#') Separated link
            li: a(href='#') One more separated link
      ul.nav.navbar-nav.navbar-right
        li: a(href='#') Default
        li.active: a(href='#') Fixed top

// second fixed navbar
nav#navbar-two.navbar.navbar-default.navbar-fixed-top.navbar-secondary(role='navigation')
  .container
    .navbar-header
      button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#navbar-two--links')
        span.sr-only Toggle navigation
        span.icon-bar
        span.icon-bar
        span.icon-bar
      a.navbar-brand(href='#') Navbar Secondary

    #navbar-two--links.navbar-collapse.collapse
      ul.nav.navbar-nav.navbar-right
        li.active: a(href='#') Dashboard
        li.navbar-text Some text
        li.dropdown
          a.dropdown-toggle(href='#', data-toggle='dropdown') Dropdown1 
            span.caret
          ul.dropdown-menu(role='menu')
            li: a(href='#') link
            li: a(href='#') link2    
            li.divider
            li: a(href='#') link3
        li.dropdown
          a.dropdown-toggle(href='#', data-toggle='dropdown') Dropdown
            span.caret
          ul.dropdown-menu(role='menu')
            li: a(href='#') kuus
            li: a(href='#') example
        li: a(href='#') ciao
        li: a(href='#') ancora

//.jumbotron.text-center
//  .container
//    h1 Secondary Bootstrap Navbar
//    p html and scss
              
            
!

CSS

              
                // default bootstrap variables
$grid-float-breakpoint: 768px;
$grid-gutter-width: 30px;
$navbar-height: 50px;
$zindex-navbar-fixed: 1030;

// module variables
$navbar_secondary--height: 50px !default;
$navbar_secondary--z-index: $zindex-navbar-fixed - 1;
$navbar_secondary--padding-uncollapsed: 0; // $grid-gutter-width / 2 0;

.navbar-secondary {
  min-height: $navbar_secondary--height;

  &.navbar-fixed-top {
    z-index: $navbar_secondary--z-index;
    top: $navbar-height;
  }

  @media (min-width: $grid-float-breakpoint) {
    padding: $navbar_secondary--padding-uncollapsed;

    .navbar-collapse {
      padding-right: 0;
      padding-left: 0;
    }
  }

  // .navbar-nav > li > a {
  //   padding-top: 12px;
  //   padding-bottom: 12px;
  // }

  // .navbar-toggle {
  //   margin-top: $navbar_secondary--padding-uncollapsed / 3.5;
  //   margin-bottom: $navbar_secondary--padding-uncollapsed / 3.5;
  // }
}

              
            
!

JS

              
                
              
            
!
999px

Console