CSS coding
<script src='http://code.jquery.com/jquery-1.9.1.js'/>
<b:if cond='data:blog.pageType != "item"'><b:if cond='data:blog.pageType != "static_page"'>
<script type='text/javascript'>//<![CDATA[
$(document).ready(function(){
var postBodies = $('.post-body');
postBodies.each(function(index, element) {
var body = $(element);
var firstParagraph = body.find('p:first');
var text = firstParagraph.text().trim();
var trimmedText = text.substring(0, 200).replace(/\s+\S*$/, '');
firstParagraph.html('<strong>' + trimmedText + '...</strong>');
});
var a=200,b=200,c="",d=1;
$(".post-body").each(function(e,f){
var f=$(f),g=$(f).find("img").first(),h=f.parent().find("h3 a"),i=h.attr("href"),j=h.text();
if($(h).remove(),f.empty(),g.attr("src")){
var k=g.attr("height"),l=g.attr("width"),m=$(g).parent();
if(f.append(m),d)
g.attr({src:g.attr("src").replace(/s\B\d{3,4}/,"w500-h330-c")}),g.removeAttr("width").removeAttr("height");
else{
g.attr({src:g.attr("src").replace(/s\B\d{3,4}/,"s"+a)}),g.removeAttr("width");
var n=(k/l*a).toFixed(0);
g.attr("height",n)
}
}else{
var g=$("<img>").attr("src",c),m=$("<a>").append(g).appendTo(f);
}
m.attr("href",i).css("clear","none").css("margin-left","0").css("margin-right","0").addClass("postThumbnail");
var o=$("<div>").prepend(j).css("opacity","0.9").css("filter","alpha(opacity=0.9)").appendTo(m);
o.height();o.css("margin-top","-28px"),f.css("height",b).css("overflow","hidden");
});
$("#blog-pager").css("clear","both");
});
//]]>
</script>
<style type='text/css'>
.post {
width:32.3%;
float:left;
display:inline-block;
border-bottom: medium none;
margin: 0 4% 4%;
padding-bottom: 0;
}
h2.date-header,.post-footer {
display: none;
}
h3.post-title, .comments h4,.post-header{margin:0;}
.postThumbnail:hover {text-decoration:none;}
a.postThumbnail div {
text-decoration: none;
color: black;
padding:0 5px;
height:120px;
font:bold 15px/20px "Trebuchet MS",Trebuchet,Verdana,sans-serif;
text-transform: capitalize;
background: white;
}
.postThumbnail{width:100%;}
.postThumbnail:hover div {
display: block;
}
.postThumbnail img {
width:100%;
background-color: transparent;
border: medium none;
padding: 0px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}
.postThumbnail img:hover {
-ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=70)";
filter: alpha(opacity=70);
-moz-opacity: 0.7;
-khtml-opacity: 0.7;
opacity: 0.7;
}
.post-outer {background: none; margin: 0px; padding: 0px; border: none}
.jump-link {display: none;}
</style>
</b:if></b:if>
Comments
Post a Comment