cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              .section
  %a.btn.fb
    login
    %span
      with facebook
  %a.btn.tw
    login
    %span
      with twitter
  %a.btn.gp
    login
    %span
      with google+
  %a.btn.am
    login
    %span
      with amazon
  %a.btn.ya
    login
    %span
      with yahoo
.section
  %a.btn.fb.reverse
    login
    %span
      with facebook
  %a.btn.tw.reverse
    login
    %span
      with twitter
  %a.btn.gp.reverse
    login
    %span
      with google+
  %a.btn.am.reverse
    login
    %span
      with amazon
  %a.btn.ya.reverse
    login
    %span
      with yahoo
.section
  %a.btn.fb.naked
    login
    %span
      with facebook
  %a.btn.tw.naked
    login
    %span
      with twitter
  %a.btn.gp.naked
    login
    %span
      with google+
  %a.btn.am.naked
    login
    %span
      with amazon
  %a.btn.ya.naked
    login
    %span
      with yahoo
            
          
!
            
              @import "compass/css3";

@import url(http://fonts.googleapis.com/css?family=Quattrocento+Sans:400,700);
@import url('http://weloveiconfonts.com/api/?family=entypo');
@import url('http://weloveiconfonts.com/api/?family=zocial');

$btn: #fff;
$fb: #47c;
$tw: #0cf;
$gp: #d43;
$am: #fa0;
$ya: #c4c;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:before, :after {
  content: '';
  display: block;
  position: absolute;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #ddd;
}

.section {
  padding: 20px;
  border-bottom: 1px solid #aaa;
}

.btn {
  position: relative;
  display: block;
  width: 210px;
  height: 40px;
  margin: 10px auto;
  padding: 0 0 0 55px;
  font: 700 16px/40px 'Quattrocento Sans', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  color: #555;
  border-radius: 2px;
  background: linear-gradient(to bottom, $btn 0%, darken($btn, 10%) 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,.5);
  cursor: pointer;
}

.btn span {
  font-size: 14px;
  text-transform: none;
  color: #aaa;
}

.btn:before {
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  font: 20px/40px entypo;
  text-align: center;
  color: #fff;
  border-radius: 2px 0 0 2px;
}

.btn.fb:before {
  content: '\f30c';
  background: linear-gradient(to bottom, $fb 0%, darken($fb, 10%) 100%);
}

.btn.tw:before {
  content: '\f309';
  background: linear-gradient(to bottom, $tw 0%, darken($tw, 10%) 100%);
}

.btn.gp:before {
  content: '\f30f';
  background: linear-gradient(to bottom, $gp 0%, darken($gp, 10%) 100%);
}

.btn.am:before {
  content: 'a';
  font-family: zocial;
  text-transform: none;
  background: linear-gradient(to bottom, $am 0%, darken($am, 10%) 100%);
}

.btn.ya:before {
  content: 'Y';
  font-family: zocial;
  text-transform: none;
  background: linear-gradient(to bottom, $ya 0%, darken($ya, 10%) 100%);
}

.btn:hover {
  text-shadow: 0 0 10px #fff;
}

/* reverse */

.btn.reverse {
  color: #fff;
}

.btn.reverse span {
  color: #eee;
}

.btn.fb.reverse {
  background: linear-gradient(to bottom, $fb 0%, darken($fb, 10%) 100%);
}

.btn.tw.reverse {
  background: linear-gradient(to bottom, $tw 0%, darken($tw, 10%) 100%);
}

.btn.gp.reverse {
  background: linear-gradient(to bottom, $gp 0%, darken($gp, 10%) 100%);
}

.btn.am.reverse {
  background: linear-gradient(to bottom, $am 0%, darken($am, 10%) 100%);
}

.btn.ya.reverse {
  background: linear-gradient(to bottom, $ya 0%, darken($ya, 10%) 100%);
}

.btn.reverse:before {
  color: #555;
  background: linear-gradient(to bottom, $btn 0%, darken($btn, 10%) 100%);
}

/* naked */

.btn.naked:before {
  border-right: 1px solid #aaa;
  background: none;
}

.btn.fb.naked:before {
  color: darken($fb, 5%);
}

.btn.tw.naked:before {
  color: darken($tw, 5%);
}

.btn.gp.naked:before {
  color: darken($gp, 5%);
}

.btn.am.naked:before {
  color: darken($am, 5%);
}

.btn.ya.naked:before {
  color: darken($ya, 5%);
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console