Skip to content

Instantly share code, notes, and snippets.

@Lorezz
Created March 25, 2015 17:32
Show Gist options
  • Save Lorezz/11dc6c7f729accdc2cff to your computer and use it in GitHub Desktop.
Save Lorezz/11dc6c7f729accdc2cff to your computer and use it in GitHub Desktop.
Rounded Card Post Sample
<div class="content_bg_grigio">
<div class="col-md-8-fake">
<div class="post_wrapper">
<div class="header_wrapper">
<img src="http://i.imgur.com/4n31lSX.jpg" class="header_img" />
</div>
<div class="content_text">
<p class="title">Jelly cake cheesecake gummies biscuit cotton candy. </p>
<p class="subtitle">Candy canes chupa chups pastry. Cake jelly chocolate cake pudding marshmallow tart gingerbread.</p>
<p class="txt">Sweet roll tart liquorice wafer. Danish tootsie roll soufflé muffin sweet cake. Chocolate cake icing fruitcake macaroon cupcake. Fruitcake bonbon icing candy marzipan dragée liquorice chocolate chocolate cake. Wafer tiramisu tart chocolate cake jujubes cupcake gummi bears wafer. Candy chupa chups muffin gummi bears lemon drops gummies chocolate bar bear claw. </p>
<div class="line_separator" ></div>
<span class="date">25 Marzo 2015</span>
<a href="#"<span class="pull-right readmore">leggi tutto</span></a>
</div>
</div>
<div class="post_wrapper">
<div class="header_wrapper">
<img src="http://i.imgur.com/CgRBQ0W.jpg" class="header_img" />
</div>
<div class="content_text">
<p class="title">Jelly cake cheesecake gummies biscuit cotton candy. </p>
<p class="subtitle">Candy canes chupa chups pastry. Cake jelly chocolate cake pudding marshmallow tart gingerbread.</p>
<p class="txt">Sweet roll tart liquorice wafer. Danish tootsie roll soufflé muffin sweet cake. Chocolate cake icing fruitcake macaroon cupcake. Fruitcake bonbon icing candy marzipan dragée liquorice chocolate chocolate cake. Wafer tiramisu tart chocolate cake jujubes cupcake gummi bears wafer. Candy chupa chups muffin gummi bears lemon drops gummies chocolate bar bear claw. </p>
<div class="line_separator" ></div>
<span class="date">25 Marzo 2015</span>
<a href="#"<span class="pull-right readmore">leggi tutto</span></a>
</div>
</div>
</div>
</div>
@import url(http://fonts.googleapis.com/css?family=Asap:400,700);
body {
font-family: "Asap", Arial;
width: 960px;
background-color: #eeeeee;
font-weight:400;
}
.col-md-8-fake{
width:640px;
}
.post_wrapper {
margin: 15px;
background-color: #ffffff;
border: 1px solid #e7e7e7;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.bg_header_img {
width: 100%;
height: 260px;
background-position: top center;
background-repeat: no-repeat;
background-image: url('http://i.imgur.com/CgRBQ0W.jpg');
backround-size: contain;
padding: 0;
margin: 0;
position: relative;
overflow: hidden;
-webkit-border-radius: 10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
border-radius: 10px 10px 0 0;
}
.header_wrapper {
width: 100%;
height: 260px;
background:#e7e7e7;
padding: 0;
margin: 0;
position: relative;
overflow: hidden;
-webkit-border-radius: 10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
border-radius: 10px 10px 0 0;
}
.header_img {
width: 100%;
padding: 0;
margin: 0;
-webkit-border-radius: 10px 10px 0 0;
-moz-border-radius:10px 10px 0 0;
border-radius: 10px 10px 0 0;
}
.content_text {
padding: 10px;
}
.title {
color: #363b44;
font-size: 27px;
font-weight:700;
}
.subtitle {
color: #a1a1a2;
font-size: 21px;
font-weight:400;
}
.txt {
color: #414141;
font-size: 15px;
font-weight:400;
}
.date {
font-weight:700;
font-size: 14px;
color: #999999;
}
.readmore {
color: #36393b;
font-size: 13px;
text-transform: uppercase;
font-weight:700;
}
.label_text {
font-size: 21px;
color: #ffffff;
text-transform: uppercase;
background-color: #ff001e;
}
.line_separator {
height: 2px;
background: #e5e5e5;
margin-top:10px;
margin-bottom:10px;
display:block;
}
.pull-right{
float:right;
}
.pull-right:after{
clear:right;
}
a,
a:hover,
a:visited,
a:active {
color:#36393b;
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment