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></div>
              
            
!

CSS

              
                $t: transparent;
$lteal: rgba(#c3edea,1);
$dteal: rgba(#A7CBC8,1);
$bk: #768BE0;

body {
  background: $bk;
  font-size: 10px;
}

div {
  width: 32.3em;
  height: 33.8em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: 
    // BLOCKERS
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    8.3% 30% / .6em 1.4em,     
//     TOP PART
// MIDDLE SILVER TEAL 
//     silver corners
// TR
    radial-gradient(200% 200% at 0% 100%,  $t 50%, #DCDCDC 51%) 69.5% 4% / 1em 1em,           
//     BL
    radial-gradient(200% 200% at 100% 0%,  $t 50%, #DCDCDC 51%) 57.7% 27.2% / 1em 1em,       
    linear-gradient(
      $dteal, 
      $dteal
    ) 
    65% 5.5% / 4.5em 8.5em,     
// SILVER CORNERS    
    radial-gradient(200% 200% at 100% 0%,  $t 50%, $dteal 51%) 29.5% 27.3% / 2em 2em,   
    radial-gradient(200% 200% at 0% 0%,  $t 50%, $dteal 51%) 75.5% 27.3% / 2em 2em,      
// SILVER TEAL
    linear-gradient( 
      -60deg, 
      rgba(#DCDCDC,.9) 20%,
      rgba(#fff,1) 60%, 
      rgba(#DCDCDC,.9) 80%
    ) 
    54.6% .8% / 15.8em 10.5em
    ,       
// UNDER SILVER
    radial-gradient(200% 200% at 100% 0%,  $dteal 50%, $lteal 51%) 10.3% 28.25% / 2em 2em,
    radial-gradient(200% 200% at 0% 0%,  $dteal 50%, $lteal 51%) 89.7% 28.25% / 2em 2em,
    
    linear-gradient(
      $dteal, 
      $dteal
    ) 
    50% 2% / 26em 10.5em,    
//     rounded corners 
    // t
     radial-gradient(200% 200% at 100% 100%, $lteal 1.45em, $lteal 50%, $bk 51%) 0% 0% / 2em 2em,    
    // tl
     radial-gradient(200% 200% at 0% 100%, $lteal  1.45em, $lteal 50%, $bk 51%) 100% 00% / 2em 2em,       
    // br
     radial-gradient(200% 200% at 0% 0%, $lteal 1.45em, $lteal 50%, $bk 51%) 100% 100% / 2em 2em,    
    // bl
     radial-gradient(200% 200% at 100% 0%, $lteal 1.45em, $lteal 50%, $bk 51%) 0% 100% / 2em 2em,   
// MIDDLE TEAL
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    50% 35.5% / 25.9em 2.8em
    ,    
// GRAY LINES
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 63% / 22em .1em,  
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 68.3% / 22em .1em,    
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 73.6% / 22em .1em,  
    linear-gradient(
      #D3D3D3, 
      #D3D3D3) 
    50% 78.9% / 22em .09em,  
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 84.2% / 22em .1em,  
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 89.5% / 22em .1em,     
    linear-gradient(
      #D3D3D3 63%, 
      #D3D3D3 63%) 
    50% 94.8% / 22em .08em,      
// color on top of white part 
// corners left
  // Blue ones
    //     Left
  
    radial-gradient(200% 200% at 100% 100%, $t 1.45em, $t 50%, $lteal 51%) 3.2em 13.6em / 2em 2em,    
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    100% 0% / 3.3em 34.5em,
    //     Right      
    radial-gradient(200% 200% at 0% 100%, $t 1.45em, $t 50%, $lteal 51%) 27em 13.6em / 2em 2em,    
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    100% 0% / 3.3em 34.5em,     
//     Pink ones
        //     LEFT      
    radial-gradient(200% 200% at 100% 100%, #f40552 1.45em, #f40552 50%, $dteal 51%) 3.5em 14.0em / 2em 2.2em,   
        //     RIGHT      
    radial-gradient(200% 200% at 0% 100%, #f40552 1.45em, #f40552 50%, $dteal 51%) 26.77em 14em / 2em 2.2em,     
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    100% 0% / 3.3em 34.5em,   
// ************blocker    
    linear-gradient(0deg,
      $dteal 10%, 
       $dteal 10%,
       $dteal 50%,) 
    12% 40.5% / 1em 1em,  
// ************blocker        
    linear-gradient(
      rgba(#f40552,1), 
      rgba(#f40552,1)) 
    50% 48.84% / 25.3em 5em,  
// WHITE PART    
    linear-gradient(
      rgba(#f8f3eb,1) 63%, 
      rgba(#f8f3eb,1) 63%) 
    50% 100% / 25.3em 18em,      
//     MAIN BODY
    linear-gradient(
      $lteal, 
      $lteal
    ) 
    00% 0% / 3.3em 34.5em,
    linear-gradient(
      $dteal, 
      $dteal
    ) 
    50% 100% / 25.9em 20.3em
    ,      
    ;
  background-repeat: no-repeat;
}



/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
  body {
  font-size: 8px;
  };
} 
              
            
!

JS

              
                
              
            
!
999px

Console