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.

            
              <link href='https://fonts.googleapis.com/css?family=Open+Sans:800' rel='stylesheet' type='text/css'> 

<h1>Flat(ish) Design</h1>

<p>(A work in progress)</p>

<h2>Buttons:</h2>
  
<ul>
  <li><button>Click Me</button></li>
  <li><button class='primary'>Primary</button></li>
  <li><button class='info'>Info</button></li>
  <li><button class='success'>Success</button></li>
  <li><button class='warning'>Warning</button></li>
  <li><button class='danger'>Danger</button></li>
</ul>
  
<h2>Inputs:</h2>
<input></input>
            
          
!
            
              @import compass

body
  font-size: 18px
  line-height: 1.5
  font-family: 'Open Sans', sans-serif
  text-transform: uppercase
  color: #111
  background: #ddd
  margin: 2em
  
h1
  font-size: 3em
  line-height: 1
  sup
    font-size: .5em
    text-transform: none
    position: relative
    top: -1em
  
h2
  font-size: 2em
  
ul
  li
    display: inline
    line-height: 2.5

// buttons
    
button
  font-family: 'Open Sans', sans-serif
  text-transform: uppercase
  font-size: 1em
  border: 3px solid
  padding: .25em .75em
  background: #eee
  @include box-shadow(1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px)
  position: relative
  &:hover
    background: #ddd
  &:active
    @include box-shadow(0px 0px 0px 0px)
    top: 5px
    left: 5px
    
.primary
  color: steelblue
  &:hover
    background: lightblue
  
.info
  color: teal
  &:hover
    background: mediumaquamarine
  
.success
  color: green
  &:hover
    background: palegreen
  
.warning
  color: goldenrod
  &:hover
    background: cornsilk
  
.danger
  color: firebrick
  &:hover
    background: lightcoral
  
// inputs
input
  font-family: 'Open Sans', sans-serif
  text-transform: uppercase
  font-size: 1em
  border: 3px solid
  padding: .25em .25em
  @include box-shadow(inset 1px 1px 0px 0px #eee, inset 2px 2px 0px 0px #eee, inset 3px 3px 0px 0px #eee, inset 4px 4px 0px 0px #eee, inset 5px 5px 0px 0px #eee)
            
          
!
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