Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              h4 Experimenting with customizable, retina-pixel underlining.
    a href="" a boring underline
    a.custom href="" a fancy custom underline


h5 In context:
  | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
  a.custom href="" magna aliqua
  | . Ut enim ad, minim veniam quis nostrud exercitation ullamco laboris nisi ut
    a.custom href="" aliquip ex
  | ea commodo consequat. Duis aute irure dolor in
    a.custom href="" reprehenderit
  | in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
  a.custom href="" sint occaecat
  | cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
              @import compass

$background-color: #fff !default
$link-color: #333 !default
$link-color-active: #55abad !default
$link-underline-color: $link-color !default
$link-underline-color-active: $link-color-active !default
$link-underline-width: 1px !default
$link-underline-offset: 2px !default
$breaking-underlines: true !default

=underline($color: $link-underline-color, $weight: $link-underline-width, $offset: $link-underline-offset)
  background-image: linear-gradient(bottom, transparent, transparent $offset, $color $offset, $color ($offset + $weight), transparent ($offset + $weight))

  font-size: 1.5em
  max-width: 40em
  margin: 0 auto
  padding: 1em

  color: $link-color
  +transition(color 200ms ease)
  &:hover, &:focus
    color: $link-color-active

  text-decoration: none
  position: relative
  @if $breaking-underlines
    text-shadow: -1px -1px 0 $background-color, 1px -1px 0 $background-color, -1px 1px 0 $background-color, 1px 1px 0 $background-color
  @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
    +underline($link-color, 0.5)
  &:hover, &:focus
    @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
      +underline($link-color-active, 0.5)
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.