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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                .container
  .content
    #accordion.panel-group(role='tablist' aria-multiselectable='true')
      .panel.panel-default
        #headingOne.panel-heading(role='tab')
          h4.panel-title
            a(role="button" data-toggle="collapse"
            data-parent="#accordion" href="#collapseOne"
            aria-expanded="true" aria-controls="collapseOne") Question #1
              i.pull-right.fa.fa-plus
        #collapseOne.panel-collapse.collapse.in(role='tabpanel' aria-labelledby='headingOne')
          .panel-body
            p Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

      .panel.panel-default
        #headingTwo.panel-heading(role='tab')
          h4.panel-title
            a.collapsed(role="button" data-toggle="collapse"
            data-parent="#accordion" href="#collapseTwo"
            aria-expanded="false" aria-controls="collapseTwo") Question #2
              i.pull-right.fa.fa-plus
        #collapseTwo.panel-collapse.collapse(role='tabpanel' aria-labelledby='headingTwo')
          .panel-body
            p Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
            
      .panel.panel-default
        #headingThree.panel-heading(role='tab')
          h4.panel-title
            a.collapsed(role="button" data-toggle="collapse"
            data-parent="#accordion" href="#collapseThree"
            aria-expanded="false" aria-controls="collapseThree") Question #3
              i.pull-right.fa.fa-plus
        #collapseThree.panel-collapse.collapse(role='tabpanel' aria-labelledby='headingThree')
          .panel-body
            p Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
              
            
!

CSS

              
                body
  background: #e0e0e0
  padding: 15px 0

.content
  background: #fff
  border-radius: 3px
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075), 0 2px 4px rgba(0, 0, 0, 0.0375)
  padding: 30px

.panel-group
  margin-bottom: 0
  
  .panel
    border-radius: 0
    box-shadow: none
    
    .panel-heading
      padding: 0
      
      h4 a
        background: #f8f8f8
        display: block
        font-size: 12px
        font-weight: bold
        padding: 15px
        text-decoration: none
        transition: 0.15s all ease-in-out
        
        &:hover, &:not(.collapsed)
          background: #fff
          transition: 0.15s all ease-in-out
        
        &:not(.collapsed) i:before
          content: "\f068"
        
        i
          color: #999
        
    .panel-body
      padding-top: 0
    
    .panel-heading+.panel-collapse>.list-group,
    .panel-heading+.panel-collapse>.panel-body
      border-top: none
    
    + .panel
      border-top: none
      margin-top: 0
              
            
!

JS

              
                
              
            
!
999px

Console