cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              @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)
Loading ..................