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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


      %h2.title Starter
        <span class="price-value">£9</span><span class="price-billed">/mo</span>

        %li Shared
        %li 512mb ram
        %li 20gb HDD
        %li 200gb bandwidth
          %s Choice of OS
          %s Host multiple sites

      %a.button{ :href => '#' } Order starter
      %h2.title Developer
        <span class="price-value">£18</span><span class="price-billed">/mo</span>

        %li VPS
        %li 4gb ram
        %li 40gb SSD
        %li 1tb bandwidth
        %li Choice of OS
        %li Host multiple sites

      %a.button{ :href => '#' } Order developer
      %h2.title Business
        <span class="price-value">£36</span><span class="price-billed">/mo</span>

        %li Dedicated
        %li 12gb ram
        %li 120gb SSD
        %li 1tb bandwidth
        %li Choice of OS
        %li Host multiple sites

      %a.button{ :href => '#' } Order business



                // Variables: colour
$red: #eb6e5e;
$light-red: #fff3f0;
$green: #4db898;
$light-green: #e1f7ee;
$dark-blue: #1a626e;
$light-blue: #bed8d8;
$light-yellow: #fff6e5;

// Varibles: spacing
$radius: 4px;
$spacing: 12px;

// Fonts
@import ",400,600";

// Background
// 12px is spacing for the embed
.container {
  padding: 10% 12px;
  background-color: $light-green; }

// Container
.boxes {
  display: flex;
  align-items: center;
  max-width: 798px;
  margin: auto; }

// Box
.box {
  position: relative;
  flex: 1;
  font-family: Work Sans, sans-serif;
  border-radius: $radius;
  background-color: #fff;
  color: $dark-blue;
  text-align: center;
    0 2px 2px rgba($green, .4),
    0 2px 12px rgba($green, .4); }

.box-outer {
  padding: $spacing*5 0; }

.box-inner {
  padding: $spacing*6 0;
  margin: 0 -$spacing;
  z-index: 1; }

// Title
.title {
  color: $red;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -.05em;
  margin: 0 0 $spacing*1.5; }

// Price
.price {
  padding: $spacing;
  background-color: $light-yellow;
  color: $green;
  font-weight: 600;
  font-size: 18px; }

.price-value {
  font-size: 24px; }

.price-billed {
  font-variant: small-caps; }

// Package features
.features {
  margin: 0;
  padding: 24px;
  s {
    color: $light-blue; }
  li {
    line-height: 2;
    list-style: none; }
  li:first-child {
    font-weight: 600; } }

// Button
.button {
  display: inline-block;
  background-color: $red;
  color: $light-red;
  padding: $spacing $spacing*2;
  border-radius: $radius;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
  &:focus {
    color: $light-green;
    box-shadow: inset 0 -44px $green; }
  &:active {
    transform: scale(.954545455); } }