Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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
					div.pic
				div.info
					span.big salix dubois
					span.small programmer
				div.buttons
					button.primary.flw follow
					button.secondary.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);
				}
			}
			.pic{
				position: relative;
				width : inherit;
				height: inherit;
				display: block;
				border-radius: inherit;
				&:after, &:before {
					content: "";
					position: absolute;
					width : inherit;
					height: inherit;
					display: block;
					border-radius: inherit;
				}
				&:after {
					background: radial-gradient(transparent, 90%, $color-dark);
				}
			}
		}
		.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;
		}
	}
	.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;
				}
			}
		}
	}
}
button {
	padding-top: 2px;
	text-transform : capitalize;
	text-align: center;
	font-size : 12px;
	font-weight : 600;
	width : 120px;
	height: 26px;
	margin : 8px 0;
	border-radius : 15px;
	border: solid 1px;
	cursor : pointer;
	position: relative;
	&:hover:after{
		content: "";
		width: inherit;
		height: inherit;
		border-radius : inherit;
		left: 0;
		top:0;
		position: absolute;
		background : $color;
		opacity: 0.2;
	}
}
button.primary {
	color : white;
	background : $color-dark;
	&:hover:after{
		mix-blend-mode: lighten;
	}
}
button.secondary {
	color : $color-dark;
	background : white;
	&:hover:after{
		mix-blend-mode: darken;
	}
}
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