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


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


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.


  input.input(name='tabs', type='radio', id='tab-1', checked)
  label.label(for='tab-1') Orange
    h1 Orange
    p The orange (specifically, the sweet orange) is the fruit of the citrus species Citrus × sinensis in the family Rutaceae
    p The fruit of the Citrus × sinensis is considered a sweet orange, whereas the fruit of the Citrus × aurantium is considered a bitter orange. The sweet orange reproduces asexually (apomixis through nucellar embryony); varieties of sweet orange arise through mutations.

  input.input(name='tabs', type='radio', id='tab-2')
  label.label(for='tab-2') Tangerine
    h1 Tangerine
    p The tangerine (Citrus tangerina) is an orange-colored citrus fruit that is closely related to, or possibly a type of, mandarin orange (Citrus reticulata).
    p The name was first used for fruit coming from Tangier, Morocco, described as a mandarin variety. Under the Tanaka classification system, Citrus tangerina is considered a separate species.
  input.input(name='tabs', type='radio', id='tab-3')
  label.label(for='tab-3') Clemantine
    h1 Clemantine
    p A clementine (Citrus ×clementina) is a hybrid between a mandarin orange and a sweet orange, so named in 1902. The exterior is a deep orange colour with a smooth, glossy appearance. Clementines can be separated into 7 to 14 segments. Similarly to tangerines, they tend to be easy to peel.


                $color--white = #FFFFFF
$color--black = #000000
$color--primary = #2AA1C0

  box-sizing border-box

  display flex
  justify-content center
  padding 10px
  background shade($color--white, 6%)
  font-family 'Source Sans Pro', sans-serif
  color tint($color--black, 20%)

  @media (min-width 600px)
    padding 60px 10px
  margin 0
  font-family 'Bree Serif', serif
  font-size 36px
  margin-top 20px
  margin-bottom 0
  padding 0
  font-size 20px
  line-height 1.5
  display flex
  flex-wrap wrap
  max-width 700px
  background shade($color--white, 10%)
  box-shadow 0 48px 80px -32px rgba(0, 0, 0, 0.3)
  position absolute
  opacity 0
  width 100%
  padding 20px 30px
  background shade($color--white, 10%)
  cursor pointer
  font-weight bold
  font-size 18px
  color tint($color--black, 50%)
  transition background 0.1s, color 0.1s
    background shade($color--white, 15%)

    background shade($color--white, 20%)

  .input:focus + &
    box-shadow inset 0px 0px 0px 3px $color--primary
    z-index 1

  .input:checked + &
    background $color--white
    color $color--black
  @media (min-width 600px)
    width auto
  display none
  padding 20px 30px 30px
  background $color--white
  @media (min-width 600px)
    order 99    
  .input:checked + .label + &
    display block