Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

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


Auto Save

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.


  - (1..6).each do |i|
    %div{:class => "tri#{i}"}


                @consize: 140px;
@bcolor: lightgray;
  margin: 20px auto;
  position: relative;
  height: @consize;
  width: @consize;
  border: @bcolor 2px solid;
  border-radius: 100%;
  background-image:radial-gradient(circle at center, white 0px, white 6px, transparent 6px, transparent 14px, white 14px, white 26px, transparent 26px, transparent 34px, white 34px, white 46px, transparent 46px, transparent 54px, white 54px, white 64px, transparent 64px, transparent 74px), 
radial-gradient(circle at center, transparent 10px, @bcolor 10px, @bcolor 11px, transparent 11px, transparent 30px, @bcolor 30px, @bcolor 31px, transparent 31px, transparent 50px, @bcolor 50px, @bcolor 51px, transparent 51px, transparent 70px, @bcolor 70px, @bcolor 71px, transparent 71px),
linear-gradient(to right, transparent 50%, @bcolor 50%, transparent 51%),
linear-gradient(30deg, transparent 50%, @bcolor 50%, transparent 51%), 
linear-gradient(-30deg, transparent 50%, @bcolor 50%, transparent 51%);

@hhp : 30px;
@atk : 28px;
@def : 25px;
@spa : 6px;
@spd : 16px;
@spe : 31px;

  border-style: solid;
  border-width: @side1 @side2;
  border-color: transparent transparent @color @color;
  transform: matrix(cos(@ang), sin(@ang), -(cos(@ang)+sqrt(3)*sin(@ang))/2, (sqrt(3)*cos(@ang)-sin(@ang))/2, 0 ,0);
  transform-origin: left bottom;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transition: all .3s;
    border-color: transparent transparent mix(@color,gold,50%) mix(@color,gold,50%);
    filter: drop-shadow(0 0 5px rgba(0,0,0,.2));
    z-index: 5;