cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <article>
  <p class="type">article type | 10.31.2015</p>
  <h1>I'm a Title</h1>
  <p>Consequatur ullam, voluptatum incidunt neque porro numquam doloremque vel inventore distinctio laudantium harum illo quam nulla dolor alias iure impedit. <a href="#">Accusamus</a>. Consequatur, a, ullam, voluptatum incidunt neque porro numquam doloremque vel inventore distinctio laudantium harum illo quam nulla dolor alias iure impedit! Accusamus.</p>
  <small>even more smoll text</small>
  <hr>
  
  <h1>Heading 1</h1>
  <h2>Heading 2</h2>
  <h3>Heading 3</h3>
  <h4>Heading 4</h4>
  <h5>Heading 5</h5>
  <hr>
  
  <h2>Lists</h2>
  <h4>Unordered List</h4>
  <ul>
    <li>list item</li>
    <li>list item</li>
    <li><a href="#">link list item</a></li>
  </ul>
  <h4>Ordered List</h4>
  <ol>
    <li>list item</li>
    <li>list item</li>
    <li>list item</li>
  </ol>
  <hr>
  
  <h2>Blockquote</h2>
  <blockquote>Consequatur, a, ullam, voluptatum incidunt neque porro numquam doloremque vel inventore distinctio laudantium harum illo quam nulla dolor alias iure impedit! Accusamus.</blockquote>
  <hr>
  
  <h2>Code Block</h2>
  <pre><code>code code code code code code code code code code code code code code code code
code code code
code code</code></pre>
  <p>Regular words and then a <code>code</code> thing.</p>
  <hr>
</article>
            
          
!
            
              $darkest-grey: #202325;
$dark-grey: #31383C;
$light-grey: #616B70;
$lightest-grey: #A6ADB2;
$blue: #28AEDE;
$green: #23D6A3;

$base-spacing: 1em;
$small-spacing: 1em / 2;
$large-spacing: 1em * 2;

$base-font-family: 'Source Code Pro', 'Courier', mono;
$header-font-family: 'Montserrat', Arial, sans-serif;

$base-border-radius: 4px;

body {
  background-color: $dark-grey;
  color: $lightest-grey;
  font-family: $base-font-family;
  font-size: 1em;
  line-height: 1.25em;
}

a {
  color: $blue;
  text-decoration: none;
  border-bottom: 1px solid $blue;
  &:hover, &:active, &:focus {
    color: $green;
    border-bottom-color: $green;
  }
}

article {
  width: 500px;
  margin: 20px auto;
}

.type {
  margin-bottom: $large-spacing;
}

h1,h2,h3,h4,h5,h6 { 
  font-family: $header-font-family;
  margin-bottom: $base-spacing;
  color: $green;
}

h1 { font-size: 2.25em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.25em; }
h4 { font-size: 0.875em; }
h5 {
  font-size: 0.775em;
  text-transform: uppercase;
}

p {
  font-size: 0.875rem;
  margin-bottom: $base-spacing;
}

small {
  font-size: 0.775em;
}

ul {
  font-size: 0.875rem;
  margin-bottom: $base-spacing;
  li {
    &:before {
      content: "\2022";
      margin-right: $small-spacing;
      color: $blue;
    }
  }
}

ol {
  font-size: 0.875rem;
  margin-bottom: $base-spacing;  
  counter-reset: li;
  
  li {
    counter-increment: li;
    &:before {
      content: counter(li) '. ';
      color: $blue;
    }
  }
}

blockquote {
  font-size: 0.875rem;
  margin-bottom: $base-spacing;
  padding-left: $base-spacing;
  //color: $light-grey;
  border-left: 3px solid $light-grey;
}

hr {
  margin: $large-spacing 0;
  border: 1px solid $light-grey;
}

/*pre, code {
  background-color: $darkest-grey;
  color: $light-grey;
  border-radius: $base-border-radius;
}

code {
  padding: 3px 6px;
}

pre {
  display: block;
  overflow: scroll;
  padding: $small-spacing;
  margin-bottom: $base-spacing;
}*/
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console