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

              
                <ul class="nav">
  <li class="logo">Neumorph Co.</li>
  <li tabindex="0"><i data-feather="home"></i></li>
  <li tabindex="0"><i data-feather="users"></i></li>
  <li tabindex="0"><i data-feather="list"></i></li>
</ul>
              
            
!

CSS

              
                $main-font: 'Roboto', sans-serif

*
  margin: 0
  padding: 0
  box-sizing: border-box

body
  background-color: #efeeee

.nav
  width: 100vw
  height: 100px
  background-color: #efeeee
  box-shadow: 10px 10px 12px 0 rgba(0,0,0,.07)
  border-radius: 0 0 10px 10px
  display: flex
  justify-content: flex-end
  align-items: center
  padding: 0 3rem
  list-style-type: none
  
  li.logo
    margin-right: auto
    font-family: $main-font
    font-size: 1.5rem
    color: dimgray
    font-weight: 900
    text-shadow: 2px 2px 4px rgba(0,0,0,.3), -2px -2px 4px rgba(255,255,255,1)
    
  
  li:not(.logo)
    margin: 0 1rem
    padding: 0.5rem 1.5rem
    border: 2px solid rgba(255,255,255,.3)
    box-shadow: 4px 4px 6px 0 rgba(0,0,0,.1), -4px -4px 6px rgba(255,255,255,1)
    border-radius: 10px
    font-family: $main-font
    cursor: pointer
    transition: color 0.2s ease-out, transform 0.2s ease-out
    color: dimgray
    
    &:hover
      transform: scale(1.05)
      box-shadow: 4px 4px 10px 0 rgba(0,0,0,.1), -4px -4px 10px rgba(255,255,255,1)
    
    &:focus
      outline: none
      transform: scale(0.95)
      box-shadow: 4px 4px 10px 0 rgba(0,0,0,.1), -4px -4px 10px rgba(255,255,255,1), 4px 4px 10px 0 rgba(0,0,0,.1) inset, -4px -4px 10px rgba(255,255,255,1) inset
    
    &:hover, &:focus
      color: orangered
    
    
  
  
              
            
!

JS

              
                feather.replace();
              
            
!
999px

Console