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.

mixin svg(name)
//- Today's Featured Recipe
        h3 Today's Featured Recipe
        img(src="https://zippypaws.com/app/uploads/2018/05/strawberry-waffles-1024x668.jpg", alt="Strawberry Waffle")
                h2(class="recipe-title") Strawberry Waffle
                    span.value 20
                    span.title Minutes
                    span.value 5
                    span.title Ingredients
                    span.value 4-6
                    span.title Serving
            | There’s no better way to celebrate May being National Strawberry Month than by sharing a sweet treat with your pup!!! Strawberries...
            a(href="#") View Recipe
              @import url('https://fonts.googleapis.com/css?family=Josefin+Sans:100,300,400,600,700|Work+Sans:100,200,300,400,500,600');

:root {
    --headlinesFont: 'Josefin Sans', sans-serif;
    --bodyFont: 'Work Sans', sans-serif;
    --wildWatermelon: #ff4f87;
    --fuelYellow: #f0a035;
    --textColor: #323232;
    --bodyBg: #d6d6d6;
    --white: #fff;
    --black: #000;

@mixin poCentering {
    top: 50%;
    right: 50%;
    bottom: 50%;
    left: 50%;
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
html, body {

body {
    background: var(--bodyBg);
    font-family: var(--bodyFont);
    color: var(--textColor);
    line-height: 1.5;

* {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;

img {
    vertical-align: text-bottom;

a {
    color: inherit;
    text-decoration: none;

.ft-recipe {
    width: 460px;
    height: 654px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 88px 0 rgba(0, 0, 0, 0.1607843137254902);
    overflow: hidden;
    @include poCentering;
    .ft-recipe__thumb {
        position: relative;
        height: 281px;
        box-shadow: 0px 0px 130px 0 rgba(0, 0, 0, 0.38);
        #close-modal {
            position: absolute;
            top: 0; right: 0;
            width: 36px;
            height: 36px;
            background: #000;
            color: var(--white);
            text-align: center;
            line-height: 36px;
            font-size: 22px;
            cursor: pointer;
            z-index: 1;
            transition: all 200ms ease;
            &:hover {
                background: transparent;
                color: var(--black);
        h3 {
            text-align: center;
            position: absolute;
            margin: 0;
            width: 100%;
            color: var(--white);
            font-family: var(--headlinesFont);
            font-size: 25px;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
            padding: 2.4rem 0 0;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 50% 50%;
    .ft-recipe__content {
        flex: 1;
        padding: 0 2em 1em;
        .content__header {
            .row-wrapper {
                display: flex;
                padding: .55em 0 .3em;
                border-bottom: 1px solid #d8d8d8;
                .recipe-title {
                    font-family: var(--headlinesFont);
                    font-weight: 600;
                .user-rating {

            .recipe-details {
                display: flex;
                list-style: none;
                padding: 1.4em 0 1em;
                margin: 0;
                justify-content: space-between;
                .recipe-details-item {
                    flex: 1;
                    i {
                        font-size: 30px;
                    .value {
                        color: #ff4f87;
                        margin-left: .35em;
                        vertical-align: bottom;
                        font: {
                            size: 24px;
                            weight: 600;
                    .title {
                        display: block;
                        margin-top: -4px;
                        font: {
                            family: var(--headlinesFont);
                            size: 21px;
                            weight: 300;

        .description {
            margin: .3em 0 1.8em;
        .content__footer {
            text-align: center;
            margin: 0 3rem;
            a {
                font-family: var(--headlinesFont);
                display: inline-block;
                background: var(--wildWatermelon);
                padding: .45em 1em;
                width: 100%;
                text-align: center;
                border-radius: 5px;
                color: #fff;
                font-weight: 500;
                letter-spacing: .2px;
                font-size: 17px;
                transition: transform 250ms ease,
                            box-shadow 250ms ease;
                &:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 10px 34px 0 rgba(255, 79, 135, 0.32);


              // Orig Article: https://zippypaws.com/dog-friendly-strawberry-waffles/

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