css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              // 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")
    .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
            
          
!
            
              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
  
            
          
!
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.
Loading ..................

Console