InstaForex

Selasa, 18 September 2012

Cara Mudah CSS Style untuk thread komentar template blogger Keren

CSS Style untuk thread komentar default template blogger Keren
Saat ini banyak sekali pengembang template blogger membuat custom style untuk tread komentar di blogspot yang keren keren.Mereka kebanyakan menambahkan code javascript untuk membantu agar tampilan menjadi unik dan efeks yang variatif.Tentunya hal ini akan menjadi semakin menarik untuk dilihat visitor karena memang berkesan unik.
Namun sebenarnya kita cukup bereksplore dengan hanya menambahkan code CSS saja untuk membuat gaya komentar tread yang unik.Nggak perlu menggunakan javascript,ini khusus untuk saya yang begitu kurang suka dengan banyak menggunakan JS pada template.Karena pada dasarnya template XML blogger itu kebanyakan menggunakan Javascript untuk memunculkan fungsi tertentu.Kalau masih harus ditambahin fungsi JS lain lagi,saya khawatir load time akan semakin lemoooot.....
Ini Beda dengan WP yang bisa menggunakan PHP untuk nambahi banyak fitur lain lagi.
CSS Style untuk thread komentar default template blogger Keren


Baiklah,jika kamu ingin suasana komentar treaded blogger yang unik dan keren,cukup hanya menambahkan code CSS saja dan tanpa Javascript.Dijamin pasti tambah keren tuh blognya,,,,

Namun syaratnya template blgospot kamu harus menggunakan fungsi thread comment default,alias masih murni dan resmi dari template blogger.
Namun coba kamu pasang saja pada template Kamu,kalau memang template kamu sudah di modif maka CSS ini mungkin nggak akan berguna.Karena hanya menambahkan CSS saja,maka jika memang nggak fungsi hanya tinggal meremovenya kembali.Jadi jangan kuatir template kamu akan menjadi berantakan,kalau masih kuatir maka bikinlah bekupnya..

Tips:Fitur Tread komentar biasanya digunakan oleh template blogger standard,dan fitur ini bisa Kamu comot untuk menggantikan fitur tread komentar template kamu jika sudah dimodif.
Pastikan Tread komentar template kamu masih default/standar blogger,agar bisa berfungsi.

Cara Penggunaan:

1.Rancangan->Edit HTML->Centang expand widget template->Carilah code berikut,

 <b:includable id='iframe_comments' var='post'>


2.ika sudah ketemu,maka copy code berikut ini dan paste sebelum code diatas;

<b:includable id='threaded_comment_css'>
<STYLE>
#comments h4{
background:#fff url("http://3.bp.blogspot.com/-5M5Iki949hk/Th5uuY5pZWI/AAAAAAAAAFI/ml0Y_8hgYEo/s1600/icon_comments.gif") no-repeat 3px .3em;
width:550px;
margin:.1em 0;
font-size:12pt;
font-weight:normal;
line-height:1.5em;
letter-spacing:0.1em;
color:#111;
padding-left:25px;
border-left: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin: 10px 0 10px 0;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.iframe-comment {
background:#f5f5f5;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #f5f5f5));background:-moz-linear-gradient(top, #fff, #f5f5f5);
padding:6px 5px 5px;
border: 1px solid #ccc;
float: right;
position: relative;
top: -8px;
height: 25px;
cursor: pointer;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.comments {
clear: both;
margin-top: 20px;
margin-bottom: 0px;
line-height: 1em;
border: 1px solid #ccc;
padding:10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 0 0 3px #ccc;
-webkit-box-shadow: 0 0 3px #ccc;
box-shadow: 0 0 3px #ccc;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.comments .comments-content {
font-size: 13px;
margin-bottom: 16px;
}
.comments .comment .comment-actions a {
float:right;
display: inline-block;
margin-left: 5px;
padding: 1px 6px;
border-right: 1px solid #C4C4C4;
border-top-color: #E4E4E4;
border-left-color: #E4E4E4;
color: #424242 !important;
text-align: center;
text-shadow: 0 -1px 0 white;
text-decoration: none;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #EDEDED;
background: -webkit-gradient( linear, left top, left bottom, color-stop(.2, white), color-stop(1, #E5E5E5) );
background: -moz-linear-gradient( center top, white 20%, #E5E5E5 100% );
font: 11px/18px sans-serif;
-webkit-border-top-left-radius: 15px;
-webkit-border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.comments .comment .comment-actions a:hover {
text-decoration: none !important;;
background: #ccc;;
background: -webkit-gradient(linear,left top,left bottom,color-stop(.2, #eeeeee),color-stop(1, #cccccc));;
background: -moz-linear-gradient(center top,#eeeeee 20%,#cccccc 100%);;
text-decoration: underline;
-webkit-border-top-left-radius: 15px;
-webkit-border-top-right-radius: 15px;
-moz-border-radius-topleft: 15px;
-moz-border-radius-topright: 15px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.comments .comments-content .comment-thread ol {
list-style-type: none;
padding: 0;
text-align: left;
}
.comments .comments-content .inline-thread {
padding: 0.5em 1em;
}
.comments .comments-content .comment-thread {
margin: 8px 0px;
}
.comments .comments-content .comment-thread:empty {
display: none;
}
.comments .comments-content .comment-replies {
margin-top: 1em;
margin-left: 36px;
}
.comments .comments-content .comment {
margin-bottom:16px;
padding-bottom:8px;
}
.comments .comments-content .comment:first-child {
padding-top:16px;
}
.comments .comments-content .comment:last-child {
border-bottom:1px dashed #ccc;
padding-bottom:0;
}
.comments .comments-content .comment-body {
position:relative;
}
.comments .comments-content .user {
font-size: 14px;
color: #666666 !important;
text-decoration:none;
}
.comments .comments-content .icon.blog-author {
background-repeat: no-repeat;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9sLFwMeCjjhcOMAAAD+SURBVDjLtZSvTgNBEIe/WRRnm3U8RC1neQdsm1zSBIU9VVF1FkUguQQsD9ITmD7ECZIJSE4OZo9stoVjC/zc7ky+zH9hXwVwDpTAWWLrgS3QAe8AZgaAJI5zYAmc8r0G4AHYHQKVwII8PZrZFsBFkeRCABYiMh9BRUhnSkPTNCtVXYXURi1FpBDgArj8QU1eVXUzfnjv7yP7kwu1mYrkWlU33vs1QNu2qU8pwN0UpKoqokjWwCztrMuBhEhmh8bD5UDqur75asbcX0BGUB9/HAMB+r32hznJgXy2v0sGLBcyAJ1EK3LFcbo1s91JeLwAbwGYu7TP/3ZGfnXYPgAVNngtqatUNgAAAABJRU5ErkJggg==);
}
.comments .comments-content .datetime {
font-size: 10px;
color: #999;
text-decoration:none;
}
.comments .comments-content .datetime a {
float:right;
}
.comments .comments-content .comment-header {
margin:0 0 8px;
border: thin solid #E6E6E6;
background-color: #dff0fa;
padding: 5px;
}
.comments .comments-content .comment-content {
margin:0 0 8px;
padding: 5px;
border: thin solid #E6E6E6;
background-color: #F4F4F4;
line-height: 21px;
}
.comments .comments-content .comment-content {
text-align:justify;
}
.comments .comments-content .owner-actions {
position:absolute;
right:0;
top:0;
}
.comments .comments-replybox {
border: none;
height: 250px;
width: 100%;
}
.comments .comment-replybox-single {
margin-top: 5px;
margin-left: 48px;
}
.comments .comment-replybox-thread {
margin-top: 5px;
}
.comments .comments-content .loadmore a {
display: block;
padding: 10px 16px;
text-align: center;
}
.comments .thread-toggle {
cursor: pointer;
display: inline-block;
}
.comments .continue {
cursor: pointer;
border: 1px solid #C4C4C4;
border-top-color: #E4E4E4;
border-left-color: #E4E4E4;
color: #424242 !important;
text-align: center;
text-shadow: 0 -1px 0 white;
text-decoration: none;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #EDEDED;
background: -webkit-gradient( linear, left top, left bottom, color-stop(.2, white), color-stop(1, #E5E5E5) );
background: -moz-linear-gradient( center top, white 20%, #E5E5E5 100% );
font: 11px/18px sans-serif;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.comments .continue a {
display: block;
padding: 0.5em;
font-weight: bold;
}
.comments .continue a:hover {
text-decoration: none !important;;
background: #ccc;;
background: -webkit-gradient(linear,left top,left bottom,color-stop(.2, #eeeeee),color-stop(1, #cccccc));;
background: -moz-linear-gradient(center top,#eeeeee 20%,#cccccc 100%);;
}
.comments .comments-content .loadmore {
cursor: pointer;
max-height: 3em;
margin-top: 3em;
}
.comments .comments-content .loadmore.loaded {
max-height: 0px;
opacity: 0;
overflow: hidden;
}
.comments .thread-chrome.thread-collapsed {
display: none;
}
.comments .thread-toggle {
display: inline-block;
}
.comments .thread-toggle .thread-arrow {
display: inline-block;
height: 6px;
width: 7px;
overflow: visible;
margin: 0.3em;
padding-right: 4px;
}
.comments .thread-expanded .thread-arrow {
background: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAA DEUlfTAAAAG0lEQVR42mNgwAfKy8v/48I4FeA0AacVDFQBAP9wJkE/KhUMAAAAAElFTkSuQmCC&quot;) no-repeat scroll 0 0 transparent;
}
.comments .thread-collapsed .thread-arrow {
background: url(&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAA DEUlfTAAAAJUlEQVR42mNgAILy8vL/DLgASBKnApgkVgXIkhgKiNKJ005s4gDLbCZBiSxfygAAAABJRU5ErkJggg==&quot;) no-repeat scroll 0 0 transparent;
}
.comments .avatar-image-container {
float: left;
width: 36px;
max-height: 36px;
overflow: hidden;
border: 1px solid #DDD;
padding:2px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-radius:5px;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}
.comments .avatar-image-container img {
width: 36px;
}
.comments .comment-block {
margin-left: 48px;
position: relative;
padding: 10px 10px 0px 10px;
background: #fcfcfc;
border: 1px solid #E4E4E4;
overflow: hidden;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
behavior: url(http://fetchak.com/ie-css3/ie-css3.htc);
}/* Responsive styles. */
@media screen and (max-device-width: 480px) {
.comments .comments-content .comment-replies {
margin-left: 0;
}
}
  </STYLE>
</b:includable>

3.Simpan
4.DONE
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 komentar

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© 2011 INFO BISNIS ONLINE
Designed by Digimart
Posts RSSComments RSS
Back to top