Skip to content

Instantly share code, notes, and snippets.

@sunnykgupta
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnykgupta/cdf3111c78ced456a4a3 to your computer and use it in GitHub Desktop.
Save sunnykgupta/cdf3111c78ced456a4a3 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="content">
<div class="stream">
<div class="post">
<div class="post-thumb-container">
<div class="post-thumb" style="background-image: url(http://res.cloudinary.com/wooplr/image/upload/w_300/v1/l/cn5dgk4jwikdy09eg5rk)"></div>
<div class="post-owner" style="background-image: url(http://www.wooplr.com/image/imageType/square/entityType/USER/entityId/1955012/nilu-yuleena-thapa.jpg)"></div>
<div class="post-desc">We love prints like this in India. And I know that because a lot of my college friends sported a similar print in classes.</div>
<div class="post-actions"><span>Love</span> <span>Share</span></div>
</div>
</div>
</div>
</div>
</body>
</html>
// ----
// libsass (v3.2.5)
// ----
@font-face {
font-family: 'Montserrat';
src: url(fonts/Montserrat-Regular.otf);
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Montserrat';
src: url(fonts/Montserrat-Light.otf);
font-weight: 200;
font-style: normal;
}
body{
margin: 0;
top:0;
background: #F3F2F1;
font-size: 13px;
font-family: 'Montserrat', Verdana, Helvetica, sans-serif;
font-style: normal;
font-weight: lighter; /*background-color: #F4F4F4;*/
*{
box-sizing: border-box;
}
.content {
margin: 50px 0;
.stream {
width: 1200px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
.post {
background-color: #FFF;
width: 310px;
padding: 5px;
margin: 20px;
text-align: center;
display: inline-block;
.post-thumb-container {
.post-thumb {
width: 300px;
height: 300px;
background-size: cover;
background-position: center center;
}
.post-owner{
width: 70px;
height: 70px;
border-radius: 50%;
border: 5px white solid;
margin: -37px auto 0;
}
.post-actions{
padding-top: 5px;
color: red;
}
}
}
}
}
}
@font-face {
font-family: 'Montserrat';
src: url(fonts/Montserrat-Regular.otf);
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Montserrat';
src: url(fonts/Montserrat-Light.otf);
font-weight: 200;
font-style: normal;
}
body {
margin: 0;
top: 0;
background: #F3F2F1;
font-size: 13px;
font-family: 'Montserrat', Verdana, Helvetica, sans-serif;
font-style: normal;
font-weight: lighter;
/*background-color: #F4F4F4;*/
}
body * {
box-sizing: border-box;
}
body .content {
margin: 50px 0;
}
body .content .stream {
width: 1200px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
body .content .stream .post {
background-color: #FFF;
width: 310px;
padding: 5px;
margin: 20px;
text-align: center;
display: inline-block;
}
body .content .stream .post .post-thumb-container .post-thumb {
width: 300px;
height: 300px;
background-size: cover;
background-position: center center;
}
body .content .stream .post .post-thumb-container .post-owner {
width: 70px;
height: 70px;
border-radius: 50%;
border: 5px white solid;
margin: -37px auto 0;
}
body .content .stream .post .post-thumb-container .post-actions {
padding-top: 5px;
color: red;
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="content">
<div class="stream">
<div class="post">
<div class="post-thumb-container">
<div class="post-thumb" style="background-image: url(http://res.cloudinary.com/wooplr/image/upload/w_300/v1/l/cn5dgk4jwikdy09eg5rk)"></div>
<div class="post-owner" style="background-image: url(http://www.wooplr.com/image/imageType/square/entityType/USER/entityId/1955012/nilu-yuleena-thapa.jpg)"></div>
<div class="post-desc">We love prints like this in India. And I know that because a lot of my college friends sported a similar print in classes.</div>
<div class="post-actions"><span>Love</span> <span>Share</span></div>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment