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

              
                <svg width="0" height="0"><clipPath id="quoteClipPath" clipPathUnits="objectBoundingBox"><polygon points="0.02 0.04, 1 0, 1 1, 0 0.94, 0.02 0.04"/></clipPath></svg>

<div class="quote">
  Their idea was to buy special lighter oars and a bespoke trolley to launch a boat enabling breast cancer survivors learning how to row, to do so independently.
  <span class="badge"></span>
</div>
              
            
!

CSS

              
                @import "nib"

green = #16b0ad
light-blue = #cfebf2

*
  box-sizing border-box

.quote
  margin 50px auto 0
  size 545px 180px
  position relative
  color white
  padding 25px 37px
  font-weight 100
  font-size 21px
  letter-spacing 0.05em
  line-height 32px

  &:before
    content ""
    display block
    absolute top left
    background green
    -webkit-clip-path polygon((11px / @width * 100)% (8px / @height * 100)%, 100% 0, 100% 100%, 0 ((@height - 11px) / @height * 100)%)
    clip-path url('#quoteClipPath')
    size 100%
    z-index -1

  &:after
    content ""
    display block
    absolute top 100% left 70px
    margin-top -11px
    border-width 33px (40px - 14px) 0 14px
    border-style solid
    border-color green transparent transparent
    size 0

.badge
  absolute bottom -22px right
  display block
  size 68px 94px
  background-image url('data:image/svg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41OTMtMS40NDRMLjIzNiAxNi44OGwxLjc5NC0xLjE3LTEuMDktMS44ODYgMS45NDYtLjg2LS43OS0yLjA0IDIuMDUyLS41MzQtLjQ3NC0yLjE0MyAyLjExLS4xOTQtLjE0Ny0yLjE5MyAyLjExLjE1LjE4Ni0yLjE5IDIuMDYyLjQ5Mi41MTUtMi4xMzIgMS45NjIuODIyLjgzLTIuMDIzIDEuODE0IDEuMTNMMTYuMjQyLjI0bDEuNjIyIDEuNDFMMTkuMjU0IDBsMS4zOSAxLjY1NyAxLjYyMi0xLjQxTDIzLjM5IDIuMTEgMjUuMjA1Ljk4IDI2LjAzMyAzbDEuOTYzLS44MjIuNTE0IDIuMTMyIDIuMDYzLS40OS4xODYgMi4xODggMi4xMS0uMTUtLjE1IDIuMTkzIDIuMTEuMi0uNDc3IDIuMTQzIDIuMDUyLjUzNC0uNzkgMi4wNCAxLjk0NC44Ni0xLjA4NiAxLjg4NiAxLjc5MiAxLjE2NS0xLjM1OCAxLjY4NkwzOC41IDIwLjAxbC0xLjU5NSAxLjQ0NSAxLjM2IDEuNjg3eiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0yNC40ODUgMTMuMjJsLTYuNTEzIDEwLjc5LTQuOTQ2LTIuOTg0LTEuNTg3IDIuNjMgNC45NCAyLjk4NSAxLjEyMy42OCAxLjQ2Ljg4NyA4LjEtMTMuNDJ6Ii8+PC9zdmc+')
  background-size contain
  background-repeat no-repeat
  background-position center center

              
            
!

JS

              
                
              
            
!
999px

Console