123

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.

            
              <div class="twitter-widget">
  	<div class="header cf">
      <a href="https://twitter.com/kayrel" target="_blank" class="avatar"><img src="http://cameronbaney.com/codepen/twitter-widget/avatar.jpg" alt="Edwin Delgado"></a>
			<h2>Edwin Delgado @kayrel</h2>
			<p>I do not recall how I came into existence.<br>Something to do with my dad and mom.</p>
		</div>
		<div class="stats cf">
			<a href="#" class="stat">
				<strong>1,250</strong>
				tweets
			</a>
			<a href="#" class="stat">
				<strong>60</strong>
				following
			</a>
			<a href="#" class="stat">
				<strong>117</strong>
				followers
			</a>
		</div>
		<ul class="menu cf">
			<li><a href="#" class="ico-compose">Compose</a></li>
			<li><a href="#" class="ico-mentions">Mentions</a></li>
			<li><a href="#" class="ico-profile">Profile</a></li>
			<li><a href="#" class="ico-settings">Settings</a></li>
		</ul>
	</div>

	<p>Dribbble Rebound of <a target="_blank" href="http://dribbble.com/shots/833870-Rebound-Twitter">Rebound Twitter</a> by <a target="_blank" href="http://dribbble.com/Kayrel">Edwin Delgado</a></p>
            
          
!
            
              /*--------------------------------------------------------------
1.1 - CLEARFIX
--------------------------------------------------------------*/
.cf:before,
.cf:after {
    content:"";
    display:table;
}
.cf:after {
    clear:both;
}

/*--------------------------------------------------------------
1.2 - FORMATTING
--------------------------------------------------------------*/
body {
  background: #343434 url(http://cameronbaney.com/codepen/twitter-widget/bg.jpg);
  background-size: cover;
  color: #4c4c4c;
  font:300 1.1em/1.7em 'HelveticaNeue-Light', Helvetica, Arial, sans-serif;
}

body > p {
  bottom: 10px;
	color: #fff;
	font-size: 12px;
	left: 10px;
	position: absolute;
}
body > p a {
	color: #fff
}

/*--------------------------------------------------------------
2.0 - TWITTER WIDGET
--------------------------------------------------------------*/
.twitter-widget {
	color: #4c4c4c;
	height: 249px;
	left:50%;
	margin: -125px 0 0 -223px;
	position: absolute;
	top:50%;
	width:446px;
	box-shadow: 1px 1px 16px rgba(0,0,0,.58);
	border-radius:2px;
}

/*--------------------------------------------------------------
2.1 - TWITTER WIDGET HEADER
--------------------------------------------------------------*/
.header {
	background: url(http://cameronbaney.com/codepen/twitter-widget/bg-header.jpg) no-repeat;
	color: #fdfdfd;
	font: 12px/17px 'HelveticaNeue-UltraLight', Helvetica, Arial, sans-serif;
	padding: 18px 28px 20px;
	border-radius:2px 2px 0 0;
}
.avatar {
	border: 4px solid #29c6f5;
	border-top-width:3px;
	float: left;
	margin-right: 16px;
	position: relative;
	box-shadow: 0 1px 1px rgba(0,0,0,.6), 0 -1px 0 #9ce5fa;
	border-radius: 2px
}
	.avatar::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
		-moz-box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
		-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.4) inset;
	}
	.avatar img {
		display: block;
		box-shadow: 0 0 2px rgba(0,0,0,.5) inset
	}
.header h2, .header p {
	float: left;
	width:288px;
}
	.header h2 {
		font-size:26px;
		line-height: 32px;
		margin: 10px 0 8px
	}

/*--------------------------------------------------------------
2.2 - TWITTER WIDGET STATS
--------------------------------------------------------------*/
.stats {
	background: rgb(243,243,243);
	background: -moz-linear-gradient(top, rgba(243,243,243,1) 0%, rgba(236,236,237,1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(243,243,243,1)), color-stop(100%,rgba(236,236,237,1)));
	background: -webkit-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
	background: -o-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
	background: -ms-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
	background: linear-gradient(to bottom, rgba(243,243,243,1) 0%,rgba(236,236,237,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3f3f3', endColorstr='#ececed',GradientType=0 );
	border-top:1px solid #fff;
	border-bottom: 1px solid #d4d4d4;
}
.stat {
	color: #4c4c4c;
	float:left;
	font-size: 14px;
	line-height: 17px;
	padding: 15px 0 14px;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 0 #fff;
	width:148px;
}
	.stat:first-child{
		margin-left: 1px
	}
	.stat:hover {
		color: #747474
	}
.stat strong {
	display: block;
	font-size: 25px;
	line-height: 25px
}

/*--------------------------------------------------------------
2.3 - TWITTER WIDGET MENU
--------------------------------------------------------------*/
.menu {
	background: rgb(236,236,236);
	background: -moz-linear-gradient(top, rgba(236,236,236,1) 0%, rgba(233,233,233,1) 86%, rgba(232,232,232,1) 94%, rgba(228,228,228,1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(236,236,236,1)), color-stop(86%,rgba(233,233,233,1)), color-stop(94%,rgba(232,232,232,1)), color-stop(100%,rgba(228,228,228,1)));
	background: -webkit-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
	background: -o-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
	background: -ms-linear-gradient(top, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
	background: linear-gradient(to bottom, rgba(236,236,236,1) 0%,rgba(233,233,233,1) 86%,rgba(232,232,232,1) 94%,rgba(228,228,228,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ececec', endColorstr='#e4e4e4',GradientType=0 );
	border-top:1px solid #fff;
	border-radius:0 0 2px 2px;
	padding: 11px 0;
	text-align: center
}
.menu li {
	display:inline-block;
	margin: 0 34px
}
.menu a {
	background: url(http://cameronbaney.com/codepen/twitter-widget/icons.png) no-repeat;
	display:block;
	overflow: hidden;
	text-indent: -9999px
}
	.menu .ico-compose {
		background-position:-1px -2px;
		width: 25px;
		height: 26px;
	}
	.menu .ico-mentions {
		background-position: -31px -1px;
		width: 27px;
		height: 28px;
	}
	.menu .ico-profile {
		background-position: -65px -1px;
		width: 24px;
		height: 27px;
	}
	.menu .ico-settings {
		background-position: -97px -2px;
		width: 26px;
		height: 27px;
	}
	.menu a:hover {
		opacity:.75
	}
            
          
!
            
              /* 

Dribbble Rebound of Edwin Delgado's original shot
http://dribbble.com/shots/833870-Rebound-Twitter

Follow Me on Twitter: https://twitter.com/cameronbaney

Fonts are a little different because I did not have webfont access to Segoe

*/
            
          
!
999px
🕑 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.

Console