Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

HTML

              
                <div class="wrap">
  <header>
    <h1 class="article-title">Code <span class="amper">& </span>Design</h1>
    <h2 class="author">by Hans Engebretsen</h2>
  </header>
  <div class="content">
  <p>Pitchfork consectetur American Apparel squid selvage, pariatur delectus YOLO post-ironic asymmetrical disrupt irony Austin 3 wolf moon. PBR&B Wes Anderson Intelligentsia Williamsburg, proident food truck master cleanse deserunt irony non ethical in messenger bag distillery. Whatever duis fap four loko XOXO synth, aute kale chips blog ugh aesthetic meh. Ullamco lo-fi vero, kogi organic forage tattooed mixtape pariatur kale chips Pinterest drinking vinegar biodiesel. Anim Tumblr esse YOLO. Sint Pitchfork jean shorts YOLO. Cardigan sed literally trust fund fugiat cliche ea, labore paleo id.</p>

<p>XOXO bicycle rights wayfarers, quinoa mlkshk elit Etsy fap. Sapiente aliqua trust fund PBR&B butcher. Vinyl bespoke consequat banh mi. Tofu polaroid biodiesel nulla, stumptown PBR&B Marfa. Roof party Thundercats sint Marfa 8-bit incididunt. Tote bag consectetur Portland fixie, commodo street art vegan ad officia sunt occupy banjo. Dreamcatcher exercitation asymmetrical enim, bitters nesciunt cillum hella beard deserunt next level assumenda aesthetic.</p>
  <p>Salvia locavore wolf Vice, Tonx lomo farm-to-table selfies duis seitan keytar chillwave selvage chambray in. Aliqua laborum hella ad shabby chic quis. Messenger bag bitters magna skateboard 90's. Chia banh mi meh, before they sold out authentic swag forage next level cred lo-fi quinoa you probably haven't heard of them. Next level lomo excepteur Brooklyn, YOLO culpa iPhone fingerstache retro food truck accusamus direct trade roof party. Stumptown id odio, 90's cillum shabby chic Williamsburg dreamcatcher. Assumenda Pinterest wayfarers, odio Shoreditch narwhal aute aliquip biodiesel consectetur meggings Bushwick occaecat reprehenderit High Life.</p>
    </div>

</div>
              
            
!

CSS

              
                @import "compass/css3";

$black: #494b50;
$grey: #62646a;
$light-grey: rgba($grey, 0.8);
$red: #b52d2e;
$cream: #faf4eb;
$light-red: lighten($red, 40%);
$light-dark-red: darken($red, 13%);
$dark-red: desaturate($red, 13%);

$blue: #1b68b2;
$light-blue: lighten($blue, 40%);
$light-dark-blue: darken($blue, 13%);
$dark-blue: desaturate($blue, 13%);

@import url(https://fonts.googleapis.com/css?family=Arbutus+Slab);

body {
    color: $grey;
    font-family: 'Arbutus Slab', serif;
    background-color: $cream;
}

h1 {
    color: $blue;
    text-align: center;
  
    font-size: 4.4em;
    line-height: .6em;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin-bottom: .2em;
    margin-top: 2rem;
    padding-bottom: 0;
    text-shadow: 
      0 -2px 0 $light-blue, 
      0 2px 0 $light-dark-blue, 
      1px 0px 0 $dark-blue, 
      3px 3px 0px rgba(0, 0, 0, 0.1), 
      -3px 4px 0px rgba(0, 0, 0, 0.1), 
      2px -2px 0px rgba(0, 0, 0, 0.1), 
      0 1px 3px rgba(0, 0, 0, 0.2), 
      0 3px 5px rgba(0, 0, 0, 0.2), 
      0 5px 10px rgba(0, 0, 0, 0.2), 
      0 10px 10px rgba(0, 0, 0, 0.2), 
      0 20px 20px rgba(0, 0, 0, 0.1), 
      -150px 580px 0 rgba($blue, 0.06);
    @include rotate(0deg);
    span.amper {
        display: block;
        color: $red;
        font-size: 1.1em;
        text-shadow: 
          0 -2px 0 $light-red, 
          0 2px 0 $light-dark-red, 
          1px 0px 0 $dark-red, 
          3px 3px 0px rgba(0, 0, 0, 0.1), 
          -3px 4px 0px rgba(0, 0, 0, 0.1), 
          2px -2px 0px rgba(0, 0, 0, 0.1), 
          0 1px 3px rgba(0, 0, 0, 0.2), 
          0 3px 5px rgba(0, 0, 0, 0.2), 
          0 5px 10px rgba(0, 0, 0, 0.2), 
          0 10px 10px rgba(0, 0, 0, 0.2), 
          0 20px 20px rgba(0, 0, 0, 0.1), 
          -150px 580px 0 rgba($red, 0.06);
    }
}
.author {
    font-family: caslon, 'adobe Caslon pro', garamond, 'adobe garamond', serif;
    font-style: italic;
    font-size: 1.25em;
    color: $black;
    text-align: center;
    margin-bottom: 1.5rem;
}
.wrap {
    width: 500px;
    margin: 0 auto;
}

header {
    margin-top: 10%;
    &:after {
        content: "";
        width: 20%;
        height: 4px;
        display: block;
        background-color: $light-grey;
        margin: 0 auto;
        @include border-radius(4px);
    }
    &:before {
        @extend header:after;
    }
}
.content {
    margin-top: 2.5rem;
}
p {
    margin-top: .4em;
    font-size: .78em;
}
              
            
!

JS

              
                
              
            
!
999px

Console