cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              h4 Experimenting with customizable, retina-pixel underlining.
ul
  li
    a href="https://squareup.com" a boring underline
  li
    a.custom href="https://squareup.com" a fancy custom underline

hr

h5 In context:
p
  | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
  '
  a.custom href="https://squareup.com" magna aliqua
  '
  | . Ut enim ad, minim veniam quis nostrud exercitation ullamco laboris nisi ut
  '
  em
    a.custom href="https://squareup.com" aliquip ex
  '
  | ea commodo consequat. Duis aute irure dolor in
  '
  b
    a.custom href="https://squareup.com" reprehenderit
  '
  | in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
  '
  a.custom href="https://squareup.com" 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))

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

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

a.custom
  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
  +underline($link-color)
  @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
    +underline($link-color, 0.5)
  &:hover, &:focus
    +underline($link-color-active)
    @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
      +underline($link-color-active, 0.5)
            
          
!
999px
Loading ..................

Console