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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                #wrapper
  #content
    .title
      %span.red Red
      Pagenavigation
    %nav.paginator-red
      %ul
        %li
          %a(href="#") &lt;
        %li
          %a(href="#") &gt;

    %nav.paginator-red
      %ul
        %li
          %a(href="#") &lt;
        - (1...6).each do |i|
          %li
            %a(href="#")= i
        %li
          %a(href="#") &gt;

    %nav.paginator-red
      %ul
        %li
          %a(href="#") &lt;
        - (1...6).each do |i|
          %li
            %a(href="#")= i
        %li(class="disabled")
          %a(href="#") ...
        - (58...63).each do |i|
          %li
            %a(href="#")= i
        %li
          %a(href="#") &gt;
              
            
!

CSS

              
                @import compass

@import url(https://fonts.googleapis.com/css?family=Codystar)

// colors
$white: #fff
$whitegrey: #f3f3f3
$lightgray: #ddd
$darkgrey: #cecece
$dark: #7e7e7e
$red: #ea5141

body
  font: 12px Arial, sans-serif
  width: 100%
  +background-image(radial-gradient(#3fa2c2, #285b6b))
  
a
  color: white
  text-decoration: none
  &:hover
    color: gray

#wrapper
  width: 978px
  margin: 0 auto
  
#content
  text-align: center

.title
  margin: 50px 0
  color: white
  text-transform: uppercase
  font: 36px "Codystar", sans-serif
  
.red
  color: #e72b18
  font-weight: bold
  
.paginator-red
  margin-bottom: 30px
  
  ul
    display: inline-block
    +border-radius(19px)
    +background-image(linear-gradient(white, $whitegrey))
    +box-shadow(0 0 5px rgba(0,0,0,0.3))
    
    li
      display: inline-block
      margin: 0 -1px
      +background-image(linear-gradient(white, $whitegrey))
      
      &:hover
        background: $red
        +box-shadow(inset 0 0 5px rgba(0,0,0,0.3))
      
      &:first-child
        +border-radius(19px 0 0 19px)
      
      &:last-child
        +border-radius(0 19px 19px 0)
      
      a
        display: block
        color: $dark
        font-weight: bold
        padding: 10px 13px
        
        &:hover
          color: $whitegrey
          text-shadow: 0 1px 0 rgba(0,0,0,0.3)
          
      &.disabled
        +background-image(linear-gradient(white, $whitegrey))
        
        a
          color: $darkgrey
          cursor: default
          
          &:hover
            color: $darkgrey
              
            
!

JS

              
                
              
            
!
999px

Console