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

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

              
                <div class="btn-wrap">
    <div class="btn"></div>
</div>
<div class="btn-wrap">
    <div class="arc"></div>
</div>
<div class="btn-wrap">
    <div class="notching"></div>
</div>
<div class="btn-wrap">
    <div class="arrow"></div>
</div>
<div class="btn-wrap">
    <div class="arrow2"></div>
</div>
<div class="btn-wrap">
    <div class="coupon"></div>
</div>

<svg width="0" height="0">
    <!--     <filter id="dilate">
        <feMorphology in="SourceAlpha" result="DILATED" operator="dilate" radius="1.1 1"></feMorphology>
        <feMerge>
            <feMergeNode in="DILATED" />
            <feMergeNode in="SourceGraphic" />
        </feMerge>
    </filter> -->
    <filter id="outline">
        <feMorphology in="SourceAlpha" result="DILATED" operator="dilate" radius="1.2 1"></feMorphology>

        <feFlood flood-color="green" flood-opacity="1" result="flood"></feFlood>
        <feComposite in="flood" in2="DILATED" operator="in" result="OUTLINE"></feComposite>

        <feMerge>
            <feMergeNode in="OUTLINE" />
            <feMergeNode in="SourceGraphic" />
        </feMerge>
    </filter>
</svg>
              
            
!

CSS

              
                html,
body {
    width: 100%;
    height: 100%;
    display: flex;
}

.btn-wrap {
    margin: auto;

    & > div {
        // filter: drop-shadow(0px 0px 2px #000);
        filter: url(#outline);
    }
}

.btn {
    content: "";
    width: 200px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    background: linear-gradient(#f49714, #fbe8c8, #f49714);
    color: #be9451;
    font-size: 24px;
}

.arc {
    width: 200px;
    height: 64px;
    background: radial-gradient(circle at top left, transparent 15px, #f49714 0)
            top left,
        radial-gradient(circle at top right, transparent 15px, #f49714 0) top
            right,
        radial-gradient(circle at bottom right, transparent 15px, #f49714 0)
            bottom right,
        radial-gradient(circle at bottom left, transparent 15px, #f49714 0)
            bottom left;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    // filter: url(#outline);
}

.notching {
    width: 200px;
    height: 64px;
    background: linear-gradient(135deg, transparent 15px, #f49714 0) top left,
        linear-gradient(-135deg, transparent 15px, #f49714 0) top right,
        linear-gradient(-45deg, transparent 15px, #f49714 0) bottom right,
        linear-gradient(45deg, transparent 15px, #f49714 0) bottom left;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    // filter: url(#outline);
}

.arrow {
    position: relative;
    width: 180px;
    height: 64px;
    background: #f49714;
    // filter: url(#outline);

    &::after {
        content: "";
        position: absolute;
        width: 32px;
        height: 64px;
        top: 0;
        right: -32px;
        background: 
            linear-gradient(-45deg, transparent 0, transparent 22px, #f49714 22px, #f49714 100%),
            linear-gradient(-135deg, transparent 0, transparent 22px, #f49714 22px, #f49714 100%);
        background-size: 32px 32px;
        background-repeat: no-repeat;
        background-position: 0 bottom, 0 top;
    }
}

.arrow2 {
    position: relative;
    width: 150px;
    height: 64px;
    background: #f49714;
    // filter: url(#outline);

    &::before {
        content: "";
        position: absolute;
        width: 32px;
        height: 64px;
        top: 0;
        left: -32px;
        background: #000;
        background: 
            linear-gradient(-45deg, #f49714 0, #f49714 24px, transparent 24px, transparent),
            linear-gradient(-135deg, #f49714 0, #f49714 24px, transparent 24px, transparent);
    }
    
    &::after {
        content: "";
        position: absolute;
        width: 32px;
        height: 64px;
        top: 0;
        right: -32px;
        background: #000;
        background: 
            linear-gradient(-45deg, transparent 0, transparent 22px, #f49714 22px, #f49714 1px),
            linear-gradient(-135deg, transparent 0, transparent 22px, #f49714 22px, #f49714 1px);
        background-size: 32px 32px;
        background-repeat: no-repeat;
        background-position: 0 bottom, 0 top;
    }
}

.coupon {
    position: relative;
    width: 200px;
    height: 64px;
    background-image: 
        radial-gradient(circle at 1px 11px, transparent 8px, #f49714 8px, #f49714 0px),
        radial-gradient(circle at 99px 11px, transparent 8px, #f49714 8px, #f49714 0px);
    background-size: 100px 21px;
    background-position: 0 0, 100px 0;
    background-repeat-x: no-repeat;
    cursor: pointer;
}
              
            
!

JS

              
                
              
            
!
999px

Console