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

              
                <h1>Provider Logos</h1>
<span class="janrain-provider-icon-48 janrain-provider-icon-facebook"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-twitter"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-myspace"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-live_id"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-yahoo"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-google"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-openid"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-aol"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-livejournal"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-mixi"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-myopenid"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-netlog"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-flickr"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-blogger"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-verisign"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-wordpress"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-hyves"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-linkedin"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-paypal"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-salesforce"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-orkut"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-vzn"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-foursquare"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-sinaweibo"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-renren"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-soundcloud"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-tumblr"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-disqus"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-vk"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-email"></span>
        <span class="janrain-provider-icon-48 janrain-provider-icon-placeholder"></span>

<h1>Provider Background Colors</h1>
          <div>
            <div class="janrain-provider-bg-color-facebook">Facebook</div>
            <div class="janrain-provider-bg-color-google">Google</div>
            <div class="janrain-provider-bg-color-linkedin">LinkedIn</div>
            <div class="janrain-provider-bg-color-myspace">Myspace</div>
            <div class="janrain-provider-bg-color-twitter">Twitter</div>
            <div class="janrain-provider-bg-color-live_id">Windows Live ID</div>
            <div class="janrain-provider-bg-color-yahoo">Yahoo!</div>
            <div class="janrain-provider-bg-color-aol">AOL</div>
            <div class="janrain-provider-bg-color-blogger">Blogger</div>
            <div class="janrain-provider-bg-color-flickr">Flickr</div>
            <div class="janrain-provider-bg-color-hyves">Hyves</div>
            <div class="janrain-provider-bg-color-livejournal">LiveJournal</div>
            <div class="janrain-provider-bg-color-mixi">Mixi</div>
            <div class="janrain-provider-bg-color-myopenid">MyOpenID</div>
            <div class="janrain-provider-bg-color-netlog">Netlog</div>
            <div class="janrain-provider-bg-color-openid">OpenID</div>
            <div class="janrain-provider-bg-color-verisign">VeriSign</div>
            <div class="janrain-provider-bg-color-wordpress">WordPress</div>
            <div class="janrain-provider-bg-color-paypal">PayPal</div>
            <div class="janrain-provider-bg-color-salesforce">Salesforce</div>
            <div class="janrain-provider-bg-color-orkut">Orkut</div>
            <div class="janrain-provider-bg-color-vzn">VZnet</div>
            <div class="janrain-provider-bg-color-foursquare">Foursquare</div>
            <div class="janrain-provider-bg-color-sinaweibo">Sina Weibo</div>
            <div class="janrain-provider-bg-color-renren">Renren</div>
            <div class="janrain-provider-bg-color-soundcloud">SoundCloud</div>
            <div class="janrain-provider-bg-color-tumblr">Tumblr</div>
            <div class="janrain-provider-bg-color-disqus">Disqus</div>
            <div class="janrain-provider-bg-color-vk">VK</div>
            <div class="janrain-provider-bg-color-email">Email</div>
          </div>

              
            
!

CSS

              
                @import "compass/css3";

body {
  font-family: helvetica, arial, sans-serif;
}
// Providers //
$providers: aol blogger email disqus facebook flickr foursquare google hyves
			janrain linkedin live_id livejournal mixi myopenid myspace netlog openid orkut
			paypal placeholder renren salesforce sinaweibo soundcloud tumblr twitter
			verisign vk vzn wordpress yahoo;

$providersBGNeeded: aol flickr livejournal mixi myopenid myspace netlog openid
					orkut paypal renren sinaweibo verisign;

$providerIconSizes: 16 24 32 48;

/*/ Provider Colors /*/
$facebook: #3B5998;
$twitter: #27C9FF;
$myspace: #000;
$disqus: #2E9FFF;
$live_id: #3E73B4;
$yahoo: #670267;
$google: #61A6FB;
$openid: #F8921C;
$aol: #000;
$livejournal: #2B5889;
$mixi: #D1AD5A;
$myopenid: #20499D;
$netlog: #000;
$flickr: #0063DB;
$blogger: #F7931E;
$verisign: #FFC10C;
$wordpress: #21759B;
$hyves: #FFAA00;
$linkedin: #005A87;
$paypal: #1F356F;
$salesforce: #333;
$orkut: #B90C91;
$vzn: #EE0000;
$tumblr: #31516F;
$foursquare: #1769B4;
$sinaweibo: #D72829;
$renren: #005EAC;
$soundcloud: #FF4C13;
$vk: #45668E;
$email: #009DDC;
$placeholder: #999;
$janrain: #009DDC;
$white: #fff;

// Produces icon classes including transparent and grayscale.
// Provider name is required to generate class and locate correct asset.
@mixin icons-janrain-provider-nonretina {
	  @each $iconName in $providers {
		  @each $size in $providerIconSizes {
			.janrain-provider-icon-#{$size}.janrain-provider-icon-#{$iconName} {
				background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/#{$size}/#{$iconName}.png');
			}
		}
	}
}
//Grayscale imgs
@mixin icons-janrain-provider-grayscale {
  @each $iconName in $providers {
		.janrain-provider-icon-grayscale-#{$iconName} {
			background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/grayscale/#{$iconName}.png');
			@include background-size (cover);
		}
	}
}

// White bg icon class for providers with black icons.
// Quilt provides the white bg through CSS for selected providers.
@mixin icons-janrain-provider-white-bg {
	@each $iconName in $providersBGNeeded {
	.janrain-provider-icon-bg.janrain-provider-icon-#{$iconName} {
		background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/#{$iconName}.png');
		background-color: white;
		@include background-size (80% 80%);
		background-repeat: no-repeat;
		background-position: center center;
		}
	}
}
//change twitter logo to have a bg for dark bg site/one row widget
@mixin twitter-bg {
	  @each $size in $providerIconSizes {
		.janrain-provider-icon-#{$size}.janrain-provider-icon-bg.janrain-provider-icon-twitter {
			background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/#{$size}/twitter_bg.png');
		}
	}
}
// Width, height and border radius for icons in standard sizes.
@mixin provider-size ($size, $radius) {
	.janrain-provider-icon-#{$size} {
		width: #{$size}px;
		height: #{$size}px;
		@include border-radius (#{$radius}px);
	}
}
// Provides provider color to text, links, btns and bgs
// Requires both provider name and provider color variable
@mixin provider-color ($providerName, $provider) {
	.janrain-provider-bg-color-#{$providerName} {
		background-color: $provider;
	}
	.janrain-provider-text-color-#{$providerName} {
		color: $provider !important;
	}
	a.janrain-provider-text-color-#{$providerName} {
		color: $provider !important;
		&:hover {
		 color: darken($provider, 15) !important;
	 	}
	}
}
*[class*="janrain-provider-icon-"] {
  margin: 5px;
}
.capture_provider *[class*="janrain-provider-icon-"],
a *[class*="janrain-provider-icon-"],
button *[class*="janrain-provider-icon-"] {
  margin: 0;
}

.provider-buttons li {
  display: inline-block;
  *display: inline;
}

*[class*="janrain-provider-bg-color-"] {
  color: white;
  text-align: center;
  padding: 8px;
  margin-bottom: 1px;
  width: 300px;
  float: left;
}

.janrain-provider-bg-color-provider {
}

*[class*="janrain-provider-icon-"] {
  display: inline-block;
  vertical-align: middle;
}

//Generates all of the classes needed from the provider list above
@include icons-janrain-provider-nonretina;

//Custom open ID provider in Engage needs to scale icon
.janrain-provider-icon-customopenid {
	@include background-size (cover);
	background-repeat: no-repeat;
	background-position: center center;
}
//Grayscale scaled icons
@include icons-janrain-provider-grayscale;

//Generates the classes for providers that need a white bg for a dark bg site
@include icons-janrain-provider-white-bg;

//Generates the classes for providers that need a white bg for a dark bg site
@include twitter-bg;

// width/height, border-radius
@include provider-size (48, 5);
@include provider-size (32, 3);
@include provider-size (24, 3);
@include provider-size (16, 3);

@include provider-color (aol, $aol);
@include provider-color (blogger, $blogger);
@include provider-color (email, $email);
@include provider-color (disqus, $disqus);
@include provider-color (facebook, $facebook);
@include provider-color (flickr, $flickr);
@include provider-color (foursquare, $foursquare);
@include provider-color (google, $google);
@include provider-color (hyves, $hyves);
@include provider-color (janrain, $janrain);
@include provider-color (linkedin, $linkedin);
@include provider-color (live_id, $live_id);
@include provider-color (livejournal, $livejournal);
@include provider-color (mixi, $mixi);
@include provider-color (myopenid, $myopenid);
@include provider-color (myspace, $myspace);
@include provider-color (netlog, $netlog);
@include provider-color (openid, $openid);
@include provider-color (orkut, $orkut);
@include provider-color (paypal, $paypal);
@include provider-color (renren, $renren);
@include provider-color (salesforce, $salesforce);
@include provider-color (sinaweibo, $sinaweibo);
@include provider-color (soundcloud, $soundcloud);
@include provider-color (tumblr, $tumblr);
@include provider-color (twitter, $twitter);
@include provider-color (verisign, $verisign);
@include provider-color (vzn, $vzn);
@include provider-color (vk, $vk);
@include provider-color (wordpress, $wordpress);
@include provider-color (yahoo, $yahoo);
@include provider-color (tumblr, $tumblr);

@mixin icons-janrain-provider {
	@each $iconName in $providers {
		[class*="janrain-provider-icon-"].janrain-provider-icon-#{$iconName} {
			background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/#{$iconName}.png');
		}
		[class*="janrain-provider-icon-"].janrain-provider-icon-grayscale-#{$iconName} {
			background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/grayscale/#{$iconName}.png');
		}
	}
}
//change twitter logo to have a bg for dark bg site/one row widget
@mixin twitter-bg {
	[class*="janrain-provider-icon-"].janrain-provider-icon-twitter.janrain-provider-icon-bg {
		background-image: image-url('http://cdn.quilt.janrain.com/2.1.5/icons/janrain-providers/twitter_bg.png');
	}
}
// width/height, border-radius
@media
only screen and (-webkit-min-device-pixel-ratio: 1.1),
only screen and (min-resolution: 100dpi) {

*[class*="janrain-provider-icon-"] {
  @include background-size (cover);
}

//Generates the classes needed from the provider list above
	@include icons-janrain-provider;

//Generates the classes for providers that need a white bg for a dark bg site
	@include twitter-bg;
}

              
            
!

JS

              
                
              
            
!
999px

Console