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.


                .ui.segment(ng-app='speechBubbles', ng-controller='mainCtrl') CSS speech bubbles the Semantic UI way'variant in variants') {{variant}} variant'pointer in pointers')
      h3.ui.header {{pointer}} pointer
        .row(ng-repeat='(direction,positions) in directions')
          .column(ng-repeat='position in positions')
              | .speech .{{variant}} .{{pointer}} .pointed .{{position}} .{{direction}}



                @import "nib"
  padding 5em

  position relative
  margin 1em
  padding 1.5em
  background-color white
  color black
  z-index 2
  &:before, &.pointed.down:before
    content ''
    position absolute
    bottom -1em
    border-style solid
    border-width 1em 1em 0
    border-color white transparent
    z-index -1
      right 50%
      transform translateX(50%)
      left 1em
      right 1em
        bottom auto
        top -1em
        border-width 0 1em 1em

    &.left, &.right
      &::before, &.high::before
        bottom auto
        border-color transparent white
        bottom 50%
        transform translateY(50%)
        bottom 1em

      left -1em
      border-width 1em 1em 1em 0
      border-color transparent white

      right -1em
      border-width 1em 0 1em 1em

    border-radius 1em

    border-radius 50%
      &.down, &.up
          border 1.5em solid transparent
          border-radius 50%
          box-shadow 1em 0 0 0 white

          box-shadow -1em 0 0 0 white
      &.left, &.right
          border 1.5em solid transparent
          border-radius 50%
          box-shadow 0 1em 0 0 white

          box-shadow 0 -1em 0 0 white



                angular.module('speechBubbles', [])

.controller('mainCtrl', function ($scope) {
  $scope.variants = [
  $scope.pointers = [
  $scope.directions = {
    'down': ['near', 'center', 'far'],
    'up': ['near', 'center', 'far'],
    'left': ['high', 'middle', 'low'],
    'right': ['high', 'middle', 'low']