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

              
                <section class="uk-container uk-container-small uk-section uk-section-small">
  <div class="uk-child-width-1-1@s uk-grid-large" uk-grid>
    
    <article class="uk-card">
      <div class="att-top">
        <div class="avatar" style="background-image:url('http://williampansky.com/img/projects/good-lunch/good-face-block.jpg');"></div>
        <div class="info">
          <div class="row-one">
            Landing page
          </div>
          <div class="row-two">
            Goodwill Industries of Dallas, Inc.
          </div>
        </div>
      </div>
      
      <div class="image-container uk-height-medium">
        <div class="image uk-background-cover" style="background-image:url('http://williampansky.com/projects/thelunch.info/demo/images/Goodwill-worn-out-hands-from-working-hard.jpg')">
        </div>
      </div>
      
      <header>
        <p class="tags">
          Case study
        </p>
        <h1 class="title">
          Deploying a standalone landing page site for Goodwill Dallas' annual fundraising event, THE LUNCH, with GoHugo.io
        </h1>
        <p class="author uk-text-meta">http://thelunch.info</p>
      </header>
      
      <div class="body">
        <p>For 2017, I suggested a revamp of how to present the event and guest speaker information to visitors and donors that would match the high level of importance that Goodwill Dallas places on the event. Prior year information was housed in a subpage ...</p>
      </div>
      
      <footer>
        <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
          View project
        </a>
      </footer>
    </article>
    
  </div>
</section>

<!-- <hr class="uk-container uk-container-small" /> -->

<section class="uk-container uk-container-small uk-section uk-section-small">
  <div class="uk-child-width-1-2@s uk-grid-large" uk-grid>
    
    <article class="uk-card">
      <div class="att-top">
        <div class="avatar" style="background-image:url('http://williampansky.com/apple-touch-icon.png');"></div>
        <div class="info">
          <div class="row-one">
            GitHub repo
          </div>
          <div class="row-two">
<!--             <a class="author" href="#"> -->
              William Pansky
<!--             </a> -->
<!--             <time class="timestamp">2d</time> -->
          </div>
        </div>
      </div>
      
      <div class="image-container uk-height-small">
        <div class="image uk-background-cover uk-flex uk-flex-center uk-flex-middle uk-text-center" style="background-image:url('https://www.codeproject.com/KB/applications/1193423/debugging5.png')">
<!--           <p class="uk-padding-small uk-margin-remove">Cover</p> -->
        </div>
      </div>
      
      <header>
        <p class="tags">
          Case study
        </p>
        <h1 class="title">
          Simple boilerplate repo with how I generally organize my project assets; installable via Bower
        </h1>
        <p class="author uk-text-meta">Pansky Boilerplate</p>
      </header>
      
      <div class="body">
        <p>If you're a crazy person and, for some odd reason, want to download and tinker then be my guest. You can install with ...</p>
      </div>
      
      <footer>
        <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
          View project
        </a>
      </footer>
    </article>
    
    <article class="uk-card">
      <div class="att-top">
        <div class="avatar" style="background-image:url('http://williampansky.com/projects/miller.agency/demo/apple-touch-icon.png');"></div>
        <div class="info">
          <div class="row-one">
            Wordpress
          </div>
          <div class="row-two">
<!--             <a class="author" href="#"> -->
              Miller Ad Agency
<!--             </a> -->
<!--             <time class="timestamp">2d</time> -->
          </div>
        </div>
      </div>
      
      <div class="image-container uk-height-small">
        <div class="image uk-background-cover" style="background-image:url('http://williampansky.com/projects/miller.agency/demo/wp-content/uploads/newsletter-2017-01-hero.jpg')">
        </div>
      </div>
      
      <header>
        <p class="tags">
          Interactive demo
        </p>
        <h1 class="title">
          Wordpress website for Dallas full-service advertising agency, Miller Ad Agency
        </h1>
        <p class="author uk-text-meta">http://miller.agency</p>
      </header>
      
      <div class="body">
        <p>For more than 30 years Miller Ad Agency has earned a reputation as experts in advertising. We use our unique approach to marketing and advertising to ...</p>
      </div>
      
      <footer>
        <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
          View project
        </a>
      </footer>
    </article>
    
  </div>
</section>

<section class="uk-section uk-section-small">
  <div class="uk-child-width-1-1@s uk-grid-collapse" uk-grid>
    
    <article class="uk-card uk-inline">
            
      <div class="image-container" uk-height-viewport="offset-bottom: 10;" uk-parallax="viewport:0.35; blur:8,0; opacity:0,1;">
        <div class="image uk-background-cover" style="background-image:url('http://williampansky.com/projects/illusiveapparel.website/demo/wp-content/uploads/2017/06/ilsv-home-hero-woman-holding-staff.jpg')">
        </div>
      </div>
      
      <div class="uk-position-top-right uk-width-1-2@s uk-width-1-3@m uk-padding" uk-parallax="viewport:0.65; y: 100,0">
        <div class="att-top">
          <div class="avatar" style="background-image:url('http://williampansky.com/projects/illusiveapparel.website/demo/wp-content/uploads/2017/06/ilsv-logo-png.png');"></div>
          <div class="info">
            <div class="row-one">
              Wordpress
            </div>
            <div class="row-two">
              Illusive Apparel Worldwide
            </div>
          </div>
        </div>

        <header>
          <p class="tags">
            Interactive demo
          </p>
          <h1 class="title">
            Wordpress website powered by WooCommerce for Dallas apparel boutique
          </h1>
          <p class="author uk-text-meta">http://illusiveapparel.website</p>
        </header>

        <div class="body">
          <p>At Illusive Apparel, our onsite factory gives us an advantage when creating your custom screen printed and dye sublimated garments. Our award-winning graphic artists create fresh ...</p>
        </div>

        <footer>
          <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
            View project
          </a>
        </footer>
      </div>
    </article>
    
  </div>
</section>

<section class="uk-container uk-container-small uk-section uk-section-small">
  <div class="uk-child-width-1-2@s uk-grid-large" uk-grid>
    
    <article class="uk-card">
      <div class="att-top">
        <div class="avatar" style="background-image:url('http://williampansky.com/apple-touch-icon.png');"></div>
        <div class="info">
          <div class="row-one">
            GitHub repo
          </div>
          <div class="row-two">
<!--             <a class="author" href="#"> -->
              William Pansky
<!--             </a> -->
<!--             <time class="timestamp">2d</time> -->
          </div>
        </div>
      </div>
      
      <div class="image-container uk-height-small">
        <div class="image uk-background-cover uk-flex uk-flex-center uk-flex-middle uk-text-center" style="background-image:url('https://www.codeproject.com/KB/applications/1193423/debugging5.png')">
<!--           <p class="uk-padding-small uk-margin-remove">Cover</p> -->
        </div>
      </div>
      
      <header>
        <p class="tags">
          Case study
        </p>
        <h1 class="title">
          Simple boilerplate repo with how I generally organize my project assets; installable via Bower
        </h1>
        <p class="author uk-text-meta">Pansky Boilerplate</p>
      </header>
      
      <div class="body">
        <p>If you're a crazy person and, for some odd reason, want to download and tinker then be my guest. You can install with ...</p>
      </div>
      
      <footer>
        <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
          View project
        </a>
      </footer>
    </article>
    
    <article class="uk-card">
      <div class="att-top">
        <div class="avatar" style="background-image:url('http://williampansky.com/projects/miller.agency/demo/apple-touch-icon.png');"></div>
        <div class="info">
          <div class="row-one">
            Wordpress
          </div>
          <div class="row-two">
<!--             <a class="author" href="#"> -->
              Miller Ad Agency
<!--             </a> -->
<!--             <time class="timestamp">2d</time> -->
          </div>
        </div>
      </div>
      
      <div class="image-container uk-height-small">
        <div class="image uk-background-cover" style="background-image:url('http://williampansky.com/projects/miller.agency/demo/wp-content/uploads/newsletter-2017-01-hero.jpg')">
        </div>
      </div>
      
      <header>
        <p class="tags">
          Interactive demo
        </p>
        <h1 class="title">
          Wordpress website for Dallas full-service advertising agency, Miller Ad Agency
        </h1>
        <p class="author uk-text-meta">http://miller.agency</p>
      </header>
      
      <div class="body">
        <p>For more than 30 years Miller Ad Agency has earned a reputation as experts in advertising. We use our unique approach to marketing and advertising to ...</p>
      </div>
      
      <footer>
        <a href="" uk-icon="icon: triangle-right; ratio: .85" class="link uk-button uk-button-default">
          View project
        </a>
      </footer>
    </article>
    
  </div>
</section>
              
            
!

CSS

              
                * { box-sizing: border-box; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.uk-card {
  position: relative;
}

.att-top {
  width: 100%;
  font-size: 12px;
  line-height: 1.25;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.info {
  font-family: "Verdana", sans-serif;
  letter-spacing: .25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.row-one {
  color: #595959;
  text-transform: uppercase;
}

.row-two {
  color: #222;
  font-weight: normal;
}

.avatar {
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-right: 8px;
}

.image-container {
  margin-bottom: 16px;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
}

header {
  margin-bottom: 8px;
}

.tags {
  padding: 0;
  margin: 0 0 8px;
  color: #333;
  border-bottom: 1px solid #555;
  font-size: 10px;
  line-height: 1.5;
  display: inline-block;
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  &:hover, &:focus {
    text-decoration: none;
  }
}

.title {
  font-family: sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  padding: 0;
  margin: 0 0 8px;
}

.author {
  margin: 0;
}

.body p {
  font-family: "Georgia", serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  color: #333;
}

.link {
  font-size: 12px;
  text-transform: uppercase;
  padding: 0 20px 0 24px;
  transition: 200ms ease-in-out;
  
  & svg {
    position: relative;
    bottom: 1px;
  }
  
  &:hover, &:focus {
    color: #fff;
    background-color: #222;
    border-color: #222;
  }
}

.uk-light {
  & .row-one,
  & .row-two,
  & .tags,
  & .author,
  & .body p {
    color: #fff;
    border-color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,.15);
  }
  
  & .link {
    background-color: rgba(0,0,0,.25);
    &:hover, &:focus {
      color: #fff;
      background-color: #222;
      border-color: #222;
    }
  }
}
              
            
!

JS

              
                $('a').on('click', ()=> {
  return false;
});
              
            
!
999px

Console