123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

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

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

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

    .box.box-inner
      %h2.title Developer
      .price
        <span class="price-value">£18</span><span class="price-billed">/mo</span>

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

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

    .box.box-outer
      %h2.title Business
      .price
        <span class="price-value">£36</span><span class="price-billed">/mo</span>

      %ul.features
        %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 "https://fonts.googleapis.com/css?family=Work+Sans:300,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;
  box-shadow:
    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;
  
  &:hover,
  &:focus {
    color: $light-green;
    box-shadow: inset 0 -44px $green; }
  
  &:active {
    transform: scale(.954545455); } }


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console