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

              
                figure
  figcaption SATURN
  
  .figure-content
    #saturn.planet
      .planet-shadow
      #saturn-rings-shadow
    #saturn-rings

    #unknown.moon
      .moon-shadow

    #unknown-2.moon
      .moon-shadow
  
              
            
!

CSS

              
                .figure-content
  background-color: #04040C
  
.planet, .moon
  border-radius: 50%
  overflow: hidden

  &-shadow
    width: 70%
    height: 70%
    margin-left: 25%
    background-color: #04040C
    border-radius: 50%

#saturn
  width: 700px
  height: 700px
  margin: -400px 0 0 -20px
  background: linear-gradient(120deg, #7B7786 30%, #B49684 40%, #E0DDBB 50%, #101236 80%)
  box-shadow: 0 0 80px rgba(#EEE, .2), 0 0 60px rgba(#EEE, .4) inset

  .planet-shadow
    box-shadow: 0 0 50px 100px #04040C
    
  #saturn-rings-shadow
    width: 100%
    height: 100%
    margin-top: -490px
    background: linear-gradient(120deg, rgba(#04040C,0) 62%, rgba(#04040C,.8) 62.2%, rgba(#04040C,0) 62.5%, rgba(#04040C,.8) 63.2%, rgba(#04040C,0) 63.5%, rgba(#04040C,.9) 65.2%, #04040C 73.2%, rgba(#04040C,0) 73.5%, rgba(#04040C,0) 74.5%, rgba(#04040C,.95) 75.7%, rgba(#04040C,.8) 79%, rgba(#04040C,0) 79.3%, rgba(#04040C,.8) 80%, rgba(#04040C,0) 81%)

#saturn-rings
  width: 600px
  height: 350px
  margin-top: -302px
  background: linear-gradient(120deg, rgba(#04040C,0) 38%, #04040C 38.3%,  #04040C 38.4%, rgba(#04040C,0) 38.7%, #04040C 38.9%, rgba(#04040C,.2) 39%, #04040C 39.2%, rgba(#04040C,.9) 39.4%, rgba(#04040C,.6) 40.5%, rgba(#04040C,0) 40.7%, #04040C 41%, rgba(#04040C,.2) 41.5%, #04040C 42%, rgba(#04040C,0) 42.7%, #04040C 42.9%, rgba(#04040C,0) 43%, rgba(#04040C,.5) 57%)
  
#unknown
  width: 30px
  height: 30px
  margin: -200px 0 0 150px
  background: linear-gradient(60deg, #EECCAA 0%, #0F0F1F 100%)
  box-shadow: 2px 3px 10px rgba(#EEE, .4)
  
  .moon-shadow
    background-color: #0F0F1F
    box-shadow: 0 0 3px 4px #0F0F1F
  
#unknown-2
  width: 20px
  height: 20px
  margin: -30px 0 0 280px
  background: linear-gradient(60deg, #C0AEA2 0%, #0F0F1F 75%)
  
  .moon-shadow
    background-color: #0F0F1F
    box-shadow: 0 0 3px 4px #0F0F1F
    
figcaption
  margin: 320px 0 0 240px
  color: #EEE
  font-family: 'Titillium Web', sans-serif
  font-size: 18px
  font-weight: thin
  text-align: center
  letter-spacing: 12px
  position: absolute


// Page layout 📰

body
  height: 100vh
  background-color: #112
  // font-family: 'Roboto', sans-serif
  overflow: hidden
  display: flex
  flex-direction: column
  justify-content: center
  align-items: center
  
.figure-content
  width: 600px
  height: 350px
  border: 1px solid #222
  border-radius: 2px
  overflow: hidden
  user-select: none
  cursor: default

              
            
!

JS

              
                // Looking for something?

              
            
!
999px

Console