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

              
                <div class="sawtooth-curve-small2">
  <div class="sawtooth-line-small2">
  </div>  
</div>
<br />

<div class="sawtooth-curve">
  <div class="sawtooth-line">
  </div>
  <div class="voucher-left">

  </div>
  <div class="perforated-line"></div>
  <div class="voucher-right">
  </div>
</div>
              
            
!

CSS

              
                $border-color: #457B9D;
$left-voucher-color: #F1FAEE;
$right-voucher-color: #A8DADC;

.sawtooth-curve-small2 { 
  width: 550px;
  height: 292px;
  background-image: radial-gradient(
    circle at 0 20px,
    transparent 0,
    transparent 9px,
    $border-color 9px,
    $border-color 10px,
    $left-voucher-color 10px
  );
  background-size: auto 36px;
  
  // border
  border: 1px solid $border-color;
  border-left: unset;
  border-radius: 2px;
  
  display: flex;
  
  .sawtooth-line-small2 {
    width: 1px;
    background: repeating-linear-gradient(
      $border-color,
      $border-color 10px,
      transparent 10px,
      transparent 30px,
      $border-color 30px,
      $border-color 36px
    );
  }
}

// large sawtooth

.sawtooth-curve {
 
  width: 1120px;
  height: 330px;
  // Safari calculates transparency differently https://stackoverflow.com/questions/55594942/transparent-gradient-not-working-in-safari
  // so the commented out code won't work
  // background-image: radial-gradient(
  //   circle at 0 20px,
  //   transparent 0 9px,
  //   $border-color 9px 10px,
  //   $left-voucher-color 10px
  // );
  background-image: radial-gradient(
    circle at 0 20px,
    transparent 0,
    transparent 9px,
    $border-color 9px,
    $border-color 10px,
    $left-voucher-color 10px
  );
  background-size: auto 32px;
  
  // border
  border: 1px solid $border-color;
  border-left: unset;
  border-radius: 2px;
  
  display: flex;
}

.sawtooth-line {
  width: 1px;
  background: repeating-linear-gradient(
    $border-color,
    $border-color 10px,
    transparent 10px,
    transparent 30px,
    $border-color 30px,
    $border-color 32px
  );
}

.perforated-line {
  background: repeating-linear-gradient(
    $border-color,
    $border-color 5px,
    transparent 5px,
    transparent 10px
  );
  width: 1.5px;
}

.voucher-right {
  flex: 1 0 auto;
  background-color: $right-voucher-color;
}

.voucher-left {
  width: 330px;
}
              
            
!

JS

              
                
              
            
!
999px

Console