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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                .wrapper
  .row.bg.animated.fadeInDown
    .medium-5.column
      h1.title the martian
      span.sub-left
        | Action, Adventure, Sci-fi
      span.sub-right
        | 2015
      .break
      p.content
        | During a manned mission to Mars, Astronaut Mark Watney is presumed dead after a fierce storm and left behind by his crew. With only meager supplies, he must draw upon his ingenuity, wit and spirit to subsist and find a way to signal to Earth that he is alive.
    .medium-7.column.text-right
      .button
        span.fa.fa-play
        | play trailer
        
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Maven+Pro');

@import url('https://fonts.googleapis.com/css?family=Orbitron');

title = Orbitron
light = #E2E3E6
font = Maven Pro
thin = 300

.wrapper
  background url('http://www.wallpaperhi.com/thumbnails/detail/20131220/abstract%20minimalistic%20placebo%20gaussian%20blur%20blurred_www.wallpaperhi.com_81.jpg')
  background-repeat no-repeat
  background-size 350%
  height 100%

.bg
  position: relative;
  top: 6%;
  transform: translateY(-10%);
  background url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/324479/martian.jpg)
  background-repeat no-repeat
  background-position center-center
  background-size cover
  height auto
  padding 2.5em
  filter saturate(1) blur(.35px)
  z-index 5
  transition all 500ms ease-in-out
  
.title
  font-family title
  font-size 2.75em
  margin-top 20%
  text-transform uppercase
  
.sub-right
  float right
  position relative
  right .5em
  
.break
  margin 7% 0 5% 0
  height: 1px
  width 100%
  background light
  
.content
  margin 0 0 20% 0

.button-holder
  position relative
  top 30vh
  left 20vh

.fa-play
  margin-right .75em
  
.button
  background #E2494B
  font-family font
  font-weight 300
  text-transform uppercase
  border-radius 3px
  transition all 300ms ease-in-out
  padding 16px
  top 10em
  
  &:hover, &:focus
    background #cc3b3b
  
// globals / utilities

h1, h2, h3, h4, h5, h6, p, .sub-left, .sub-right
  color light
  font-family font
  
.sub-left, .sub-right
  font-family title
  font-size .90em
  position relative
  top -.5em
  
p, .sub-left, .sub-right
  font-weight thin
  letter-spacing 1px

              
            
!

JS

              
                
              
            
!
999px

Console