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 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


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.


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.




                @import compass

=speech-bubble($arrow-direction: bottom, $arrow-pos: 50%, $height: 60px, $width: 60px, $padding: 0, $arrow-width: 12px, $arrow-length: 12px, $color: #aaa, $bgcolor: #333, $border-radius: 4px, $content: '', $bg-img: '', $bg-size: auto, $stab: 8px, $positioned: false, $size: 'medium')

  $arrow-v: ''
  $arrow-h: ''
  $offset-direction: ''
  $offset-body: ''

  @if $arrow-direction == left or $arrow-direction == right
    $arrow-v: transparent
    $arrow-h: $bgcolor
    $offset-direction: top
    $offset-body: $height / 2
    $arrow-v: $bgcolor
    $arrow-h: transparent
    $offset-direction: left
    $offset-body: $width / 2

    position: relative

  &::before, &::after
    position: absolute
    content: $content
    #{opposite-position($arrow-direction)}: $stab - $height - $arrow-length
    #{$offset-direction}: 50%
    margin-#{$offset-direction}: -$offset-body
    width: $width
    height: $height
    line-height: $height
    padding: $padding
    color: $color
    background: if($bg-img != "", $bgcolor $bg-img, $bgcolor)
    background-position: center center
    background-size: $bg-size
    background-repeat: no-repeat
    border-radius: $border-radius
    text-align: center
    font-size: $size
    content: ''
    #{opposite-position($arrow-direction)}: $stab - $arrow-length
    #{$offset-direction}: 50%
    margin-#{$offset-direction}: - $arrow-width
    border-style: solid
    border-width: $arrow-length $arrow-width
    border-#{$arrow-direction}-width: 0
    border-color: $arrow-v $arrow-h
    display: block
  position: absolute
  top: 50%
  left: 50%
  margin: -45px
  height: 90px
  width: 90px
  background: blue
  border-radius: 12px
  +speech-bubble($content: '☻', $positioned: true, $color: yellow, $size: 36px, $bgcolor: #ff8800)