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 id="stamp"></div>
              
            
!

CSS

              
                // #divtober 05: Stamp
// a.singlediv.com/divtober2022

black(alpha)
  rgba(0,0,0,alpha)

white(alpha)
  rgba(255,255,255,alpha)

body
  min-height: 400px
  height: 100vh
  position: relative
  background-color: linen
  text-align: center

div
  position: absolute
  left: 50%
  top: 50%

  &::before,
  &::after
    display: block
    content: ''
    position: absolute
    
  @media (max-width: 400px)
    &:not(.no-scale)
      transform: scale(.8)

#stamp
  width: 250px
  height: 350px
  margin-left: -(@width/2)
  margin-top: -(@height/2)
  background: radial-gradient(ellipse, white(.2) 10%, white(0) 40%) 50% 110% / 120% 40%,
              linear-gradient(to right, darken(wheat,10), alpha(wheat,0) 25%) 50% 100% / 94% 50%,
              linear-gradient(to  left, darken(wheat,10), alpha(wheat,0) 25%) 50% 100% / 94% 50%,
              linear-gradient(to bottom, wheat, darken(wheat,17)) 50% 100% / 94% 50%,
              linear-gradient(lightskyblue, lightskyblue) 50% 15% / 85% .5%,
              linear-gradient(#ccc, #ccc) 50% 10% / .25% 60%,
              repeating-linear-gradient(to bottom, #ccc, #ccc .5%,
                                                   white(0) .5%,
                                                   white(0) 10%) 50% 41% / 85% 50%,
              linear-gradient(to bottom, white 30%, #eee) 50% 40% / 85% 40%,
              linear-gradient(40deg, white 96%, white(0) 96.1%) 50% 10% / 85% 60%,
              linear-gradient(to right, black(0), black(.2) 6%) 19% 15% / 70% 60%,
              linear-gradient(to  left, black(0), black(.2) 6%) 81% 25% / 70% 60%
  background-repeat: no-repeat
  box-shadow: 0 .8em .4em -.65em black(.1)

  &::before,
  &::after
    font-family: Courier New, mono
    font-weight: bold
    font-size: 1.2em
    color: #444
    text-transform: uppercase
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

  &::before
    content: 'Jun 20 1990'
    top: 22%
    left: 11%
    transform: rotate(-2deg)
    background-image: linear-gradient(45deg, transparent 50%, #999, #888, #333, #444, #999, #ddd)
    text-shadow: .1em 0 0 black(.5)

  &::after
    content: 'Apr 14 1990'
    top: 30%
    left: 20%
    transform: rotate(5deg)
    background-image: linear-gradient(30deg, #ccc, #999, #444, #999, #bbb, #777, transparent 70%)
    text-shadow: .07em 0 0 black(.3)
              
            
!

JS

              
                // @lynnandtonic
// a.singlediv.com

              
            
!
999px

Console