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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 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.

HTML

              
                <ul class="project-list">
    <li class="project-item row">
        <div class="thumbnail">
            <a href="https://codepen.io/windo/full/xJNwNa" target="_blank">
                <figure class="img-container">
                    <img src="https://picsum.photos/480/300" alt="" class="img">
                    <figcaption>Portfolio landing page</figcaption>
                </figure>
            </a>
        </div>
        <div class="content">
            <a href="https://codepen.io/windo/full/xJNwNa" target="_blank">
                <h3 class="title">A Portfolio landing page</h3>
            </a>
            <ul class="project-links">
                <li class="link-item">
                    <a href="https://codepen.io/windo/full/xJNwNa" target="_blank">
                        <img src="https://blog.codepen.io/wp-content/uploads/2012/06/codepen-wordmark-display-inside-black@10x.png" width="80px">
                    </a>
                </li>
            </ul>
            <div class="description">This is a personal landing page to showcase mainly portfolio list, built in codepen.io as part of Responsive
                Web Design certification project.</div>
            <ul class="project-meta item-list">
                <li class="item">Role:
                    <strong>Front-End Engineer</strong>
                </li>
                <li class="item">Year:
                    <strong>2018</strong>
                </li>
            </ul>
            <ul class="category-list">
                <li class="category-item">Responsive Web Design</li>
                <li class="category-item">Portfolio</li>
            </ul>
        </div>
    </li>
    <li class="project-item row">
        <div class="thumbnail">
            <a href="https://codepen.io/windo/full/xJNwNa" target="_blank">
                <figure>
                    <img src="https://images.unsplash.com/photo-1467746474745-41dd2c7524ce?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=2debfc635766259a37b571e9e26b115b&auto=format&fit=crop&w=2250&q=80"
                        alt="" class="img">
                    <figcaption>Product landing page</figcaption>
                </figure>
            </a>
        </div>
        <div class="content">
            <a href="https://codepen.io/windo/full/xJNwNa">
                <h3 class="title">A Product landing page</h3>
            </a>
            <div class="description">This is a product landing page</div>
            <ul class="category-list">
                <li class="category-item">Responsive Web Design</li>
                <li class="category-item">Portfolio</li>
            </ul>
        </div>
    </li>
</ul>
              
            
!

CSS

              
                body,
html {
    font-family: 'Rubik', sans-serif;
    font-size: 1em;
    line-height: 1.618em;
    padding: 1.618em;
}
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

figure {
    width: 100%;
    display: block;
    height: auto;
    overflow: hidden;
    >img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

img {
    max-width: 100%;
}

.project-list {
    display: flex;
    flex-flow: column wrap;
    margin: 0;
    padding: 0;
    ul {
        margin: 0;
        padding: 0;
    }
    li {
        list-style-type: none;
    }
}

.project-item {
    list-style-type: none;
    margin-top: 3em;
    >.thumbnail {
        flex-basis: 38%;
        padding: 1.618em .618em;
        padding-left: 0;
        >a figure img {
            border-radius: 10px;
        }
        >a figcaption {
            display: none;
        }
    }
    >.content {
        flex-basis: 62%;
        padding: 1.618em 1em;
        >a h3.title {
            &:hover {
                text-decoration-line: none;
            }
        }
    }
}

ul.project-meta {
    background: rgba(255, 255, 255, .6);
    border-radius: 6px;
    padding: .618em 1em;
    margin: .618em 0;
    display: inline-block;
}

ul.category-list,
ul.project-links {
    &::before {
        margin-right: .618em;        
        opacity: .8;
    }
}

ul.category-list {
    font-size: .618em;
    margin-top: 1em;
    letter-spacing: .1em;
    &::before {
        content: "Tags:";
    }
    >li.category-item {
        padding: 0 1em;
        background: var(--blue, gray);
        border-radius: 3em;
        display: inline-block;
        color: white;
        margin-right: .618em;
        margin-bottom: 1em;
    }
}

ul.project-links {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
    &::before {
        content: "Links: ";
        letter-spacing: .1em;
        font-size: .618em;
    }
    > li.link-item {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .project-item {
        >.thumbnail,
        >.content {
            flex-basis: 100%;
            padding: .618em;
            margin: .618em;
        }
        >.thumbnail {
            margin-top: 1em;
            margin-bottom: 0;
            figure {
                margin: 0;
            }
        }
        >.content {
            margin-top: 0;
        }
    }
    ul.category-list,
    ul.project-links {
        &::before {            
            display: block;
        }
    }
    ul.category-list::before {
        margin-bottom: 1em;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console