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.

            
              <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>
            
          
!
            
              @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;
}
            
          
!
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