Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                // Keanu Reeves never looked so good :-)

// Inspired by this magazine layout:
// https://s-media-cache-ak0.pinimg.com/564x/2e/f7/8d/2ef78d1f44a6ade085bb38810104435a.jpg



.page-wrapper
  aside
    h1 Keanu Reeves
    p.flourish ~
    p.bio Lorem ipsum dolor sit amet, consectetur adipisicing elit. A delectus molestias dolores cupiditate consectetur esse earum magnam, voluptatem quas dolorem libero facilis sit, obcaecati harum corrupti doloribus voluptas ducimus quasi. Pariatur quam, adipisci fugit! Temporibus ratione quia dignissimos quidem eos atque, accusantium consequuntur, quisquam quos maiores ad unde doloremque accusamus.

  article
    .author
      p Text &ndash;
      p <span>Lorem Ipsum</span>
    .photographer
      p Photo &ndash;
      p <span>Lorem Ipsum</span>
    .image
      //img(src="http://wallpaperlayer.com/img/2015/7/actor-wallpaper-4072-4293-hd-wallpapers.jpg")
      img(src="https://wallpapercave.com/wp/6sq4Hhj.jpg")
    .text
      p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae harum, accusantium aliquid quia dolores error, fugit placeat ratione amet non nostrum necessitatibus soluta earum ipsum voluptate neque corporis asperiores modi. Placeat unde, autem voluptatibus sed repellendus consequuntur quia temporibus. Repellat sunt officia repudiandae amet quisquam saepe, qui impedit quibusdam beatae.

      p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae harum, accusantium aliquid quia dolores error, fugit placeat ratione amet non nostrum necessitatibus soluta earum ipsum voluptate neque corporis asperiores modi. Placeat unde, autem voluptatibus sed repellendus consequuntur quia temporibus. Repellat sunt officia repudiandae amet quisquam saepe, qui impedit quibusdam beatae.

      p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae harum, accusantium aliquid quia dolores error, fugit placeat ratione amet non nostrum necessitatibus soluta earum ipsum voluptate neque corporis asperiores modi. Placeat unde, autem voluptatibus sed repellendus consequuntur quia temporibus. Repellat sunt officia repudiandae amet quisquam saepe, qui impedit quibusdam beatae.
      
  
footer
              
            
!

CSS

              
                body
  margin: 0
  font-family: 'Cormorant Garamond', serif
  font-size: 18px
  
.page-wrapper
  display: block
  width: 100%
 
@media (min-width: 700px)
  .page-wrapper
    display: flex
    
   
aside
  background:
    color: #222
  color: white
  display: flex
  flex-direction: column
  justify-content: center
  align-items: center
  padding: 20px 0 40px
  
@media (min-width: 700px)
  aside
    background:
      color: #222
    color: white
    display: flex
    flex-direction: column
    justify-content: center
    align-items: center
    height: 100vh
    position: fixed
    top: 0
    left: 0
    width: 50%
    flex: 0 0 50%
    padding: 0

h1,
.flourish
  font-size: 6vw
  margin: 10px 0
  font-family: 'Oxygen', sans-serif
  text-align: center
 
@media (min-width: 700px)
  h1,
  .flourish
    font-size: 4.5vw
    margin: 20px 0
    padding: 0 20px

h1 
  letter-spacing: 10px
  text-transform: uppercase

.flourish
  font-weight: bold

.bio
  margin: 0 20px
  text-align: center
  line-height: 1.5
  font-style: italic

@media (min-width: 1100px)
  .bio
    margin: 0 100px
    text-align: center
    line-height: 1.7
    font-size: 1.2em
  
article
  // flex: 0 0 50%
  margin: 0
  // padding-top: 30px
  
@media (min-width: 700px)
  article
    flex: 0 0 50%
    margin-left: 50%
    padding-top: 30px
    
.author,
.photographer
  text-transform: uppercase
  font-size: .7em
  letter-spacing: 1px
  color: #777
  padding: 0 20px
  margin: 0
  font-family: 'Oxygen', sans-serif

  & span
    color: rgba(black, 0.4)
    text-transform: capitalize

@media (min-width: 700px)
  .author,
  .photographer
    padding: 0 60px

.image
  img
    width: 100%
    margin: 20px 0

.text
  columns: 2
  column-width: 250px
  column-gap: 2em
  padding: 0 20px
  text-align: justify

  p:first-child
    margin-top: 0
  
    &:first-letter
      float: left
      color: red
      font-size: 4em
      line-height: 35px
      padding: 19px 10px 10px 0

@media (min-width: 1100px)
  .text
    padding: 0 60px
   
footer
  height: 40px
  
              
            
!

JS

              
                
              
            
!
999px

Console