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.

              <div class="panel">
  <button type="button" class="button">Hello world!</button>

<div class="panel green-panel">
  <button type="button" class="button">Hello world!</button>

<div class="panel orange-panel">
  <button type="button" class="button">Hello world!</button>
              @import "compass/css3";

@import 'compass';

@mixin alpha-attribute($attribute, $color, $background: white) {
  $percent: alpha($color) * 100%;
  $opaque: opacify($color, 1);
  $solid-color: mix($opaque, $background, $percent);
  @if ($percent < 100%) { #{$attribute}: $solid-color; }
  #{$attribute}: $color;

@mixin color-button($text, $color, $background: white) {
  @include alpha-attribute('background', $color, $background);
  border: 1px solid;
  @include alpha-attribute('border-color', rgba(black, 0.7), $background);
  @include alpha-attribute('color', $text, $background);
  @include box-shadow(rgba(white, 0.2) 0 1px 0 inset);
  &:focus, &:hover {
    @include alpha-attribute('background', transparentize($color, 0.2), $background);
    @include alpha-attribute('color', opacify($text, 1), $background);
  &:focus {
    outline: none;
  &:active {
    @include alpha-attribute('background', opacify($color, 0.1), $background);
    @include box-shadow(none);

.button {
  @include appearance(none);
  font-family: sans-serif;
  font-size: 14px;
  padding: 0.4em 1em 0.5em;
  -webkit-font-smoothing: antialiased;
  @include color-button(rgba(white, 0.8), rgba(black, 0.5));
  cursor: pointer;

.panel {
  @include box-sizing(border-box);
  width: 220px;
  padding: 50px;
  text-align: center;
  margin: 15px;
  background: gray;
  float: left;
  .button { @include color-button(rgba(white, 0.8), rgba(black, 0.5), gray); }

.green-panel {
  background: #393;
  .button { @include color-button(rgba(white, 0.8), rgba(black, 0.5), #393); }

.orange-panel {
  background: #f73;
  .button { @include color-button(rgba(white, 0.8), rgba(black, 0.5), #f73); }
Loading ..................