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

              
                div.frame
  div.center
		div.card
			div.left
				div.avatar
					div.circle
					div.circle
					img src="https://pbs.twimg.com/profile_images/894730722271010816/1g-2p3_m_400x400.jpg"
				div.info
					span.big salix dubois
					span.small programmer
				div.buttons
					button.flw follow
					button.msg message
			div.right
				div.stats.posts 
					span.big 523
					span.small posts
				div.stats.likes
					span.big 1387
					span.small likes
				div.stats.flwrs
					span.big 146
					span.small followers
              
            
!

CSS

              
                // delete the following line if no text is used
// edit the line if you wanna use other fonts
@import url('https://fonts.googleapis.com/css?family=Open+Sans:700,600,300');
$color : rgb(190,230,180);
$color-dark : darken($color, 55%);
$color-light : lighten($color, 5%);
// use only the available space inside the 400x400 frame
.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  border-radius: 2px;
	box-shadow: 4px 8px 16px 0 rgba(0,0,0,0.1);
	overflow: hidden;
  background: linear-gradient(to bottom left, $color-dark, $color);
	background-size : 125% 125%;
	color : $color-dark;
	font-family: 'Open Sans', Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.card{
	width : 320px;
	height: 300px;
	background : white;
	box-shadow: 4px 8px 16px 0 darken($color-dark, 10%);
	.left{
		position : absolute;
		left : 0;
		width : 190px;
		height: 300px;
		overflow : hidden;
		$img-size: 70px;
		.avatar{
			position : absolute;
			left : (190 - $img-size)/2;
			top : 32px;
			width : $img-size;
			height: $img-size;
			border-radius: 50%;
			cursor : pointer;
			background : $color;
			.circle{
				box-sizing: border-box;
				position : absolute;
				border-radius: 50%;
				transition: all 1.5s ease-in-out;
				border : 1px solid;
			}
			.circle:first-child{
				left : -3px;
				top : -3px;
				width : $img-size + 6px;
				height: $img-size + 6px;
				border-color : $color-dark $color-dark $color-dark transparent;
			}
			.circle:nth-child(2){
				left : -6px;
				top : -6px;
				width : $img-size + 12px;
				height: $img-size + 12px;
				border-color : $color-dark transparent $color-dark $color-dark;
			}
			&:hover{
				.circle:first-child{
					transform : rotate(360deg);
				}
				.circle:nth-child(2){
					transform : rotate(-360deg);
				}
			}
			img{
				width : inherit;
				height: inherit;
				display: block;
				border-radius: inherit;
			}
		}
		.info{
			position : absolute;
			text-align: center;
			top : $img-size + 52;
			width : 100%;
			span{
				display : block;
				&.small{
					top: 22px;
				}
			}
		}
		
		.buttons{
			position : absolute;
			text-align: center;
			bottom : 32px;
			width : 100%;
			height: 80px;
			button{
				padding-top: 2px;
				text-transform : capitalize;
				text-align: center;
				font-size : 12px;
				font-weight : 600;
				color : $color-dark;
				width : 120px;
				height: 26px;
				margin : 8px 0;
				background : white;
				border-radius : 15px;
				border: none;
				box-shadow : 0 0 0 1px $color-dark;
				cursor : pointer;
				&:hover{
					background : $color-dark;
					color: white;
				}
			}
		}
	}
	.right{
		position : absolute;
		right : 0;
		width : 130px;
		height: 300px;
		.stats{
			position : relative;
			height: 100px;
			background : $color-light;
			box-shadow : 0 -1px white;
			cursor : pointer;
			&:first-child{
				box-shadow : none;
			}
			&:hover{
				background : $color;
			}
			span{
				&.big{
					top: 30px;
				}
				&.small{
					top: 50px;
				}
			}
		}
	}
}

span{
	position : absolute;
	left: 0;
	width: 100%;
	text-transform : capitalize;
	text-align: center;
	&.big{
		font-size : 18px;
		font-weight : 600;
	}
	&.small{
		font-size : 12px;
		font-weight : 300;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console