MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
  • Pagina 1 din 1
  • 1
Forum » uCoz system » Comentarii » Alt aspect a comentariilor v2 (sml[hammer])
Alt aspect a comentariilor v2
Muşatinu Date: Marţi, 2015-06-16, 07:33 | Message # 1
Mesaje: 1801
Awards: 202
« 53 »



In aspectul comentariilor adaugam:
Cod
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="$CLASS$"><tr><td style="padding:3px;">   
   <div class="comment"><div class="comment-author vcard">   
   <div class="avatar"><?if($USER_AVATAR_URL$)?><img alt="" align="left" src="$USER_AVATAR_URL$" width="60" border="0" /><?else?><img src="http://i.imgur.com/Sb85FuH.png" width="60" border="0"><?endif?></div>   
   <cite class="fn"><?if($USERNAME$)?><a href="$PROFILE_URL$"><b>$USERNAME$</b></a><?else?><b>$NAME$</b><?endif?></cite>   
   </div>   
   <div class="comment-meta commentmetadata">$DATE$ $TIME$</div>   
   <div style="float:right;font-size:11px;font-family:Arial,sans-serif;"><?if($COMMENT_RATING$<0)?><span class="myWinError"><b>$COMMENT_RATING$</b></span><?else?><?if($COMMENT_RATING$=0)?><span style="color:gray;"><b>$COMMENT_RATING$</b></span><?else?><span class="myWinSuccess"><b>+$COMMENT_RATING$</b></span><?endif?><?endif?> <?if($GOOD_COMMENT_URL$)?><a href="$GOOD_COMMENT_URL$"><img alt="" src="http://uwebo4ka.3dn.ru/scripts/comment/thumbu.png" width="13" align="absmiddle" border="0" title="Хороший пост"></a> <a href="$BAD_COMMENT_URL$"><img alt="" src="http://uwebo4ka.3dn.ru/scripts/comment/thumbd.png" width="13" border="0" align="absmiddle" title="-1"></a><?else?><img alt="" src="http://uwebo4ka.3dn.ru/scripts/comment/thumbu_.png" align="absmiddle" width="13" border="0" title="+1"> <img alt="" src="http://uwebo4ka.3dn.ru/scripts/comment/thumbd_.png" width="13" align="absmiddle" border="0" title="Плохой пост"><?endif?> $MODER_PANEL$</div><div class="cTop" style="text-align:left;"><?if($IS_OWN$)?><span class="myWinError">*</span> <?else?><?if($IS_NEW$)?><span class="myWinSuccess">*</span> <?endif?><?endif?><a href="#ent$ID$" onclick="if (document.getElementById('comEnt$ID$')){$('body').scrollTo( { top:$('#comEnt$ID$').offset().top-22, left:0}, 500 );return false;}" name="ent$ID$"><b>$NUMBER$</b></a>   
   </div>   
   <div class="cMessage" style="text-align:left;clear:both;padding:2px 0;">$MESSAGE$</div>   
<?if($ANSWER$)?><div class="cAnswer" style="text-align:left;clear:both;"><b>Raspuns</b>: $ANSWER$</div><?endif?>   
   <?if($ANSWER_URL$)?><div style="clear:both;padding:4px 0;font-size:7pt;">[<a href="$ANSWER_URL$">Raspunde</a>]</div><?endif?> </div>   
</td></tr></table>


In CSS adaugam:

Cod
.comment { float: right; clear: both; position: relative; width: 65%; padding: 15px; background: white; margin: 0 0 20px 0; -moz-border-radius: 15px; -webkit-border-radius: 15px; border-radius: 15px;}   
.cBlock1 .comment{background:#89B0CE;}   
.cBlock2 .comment{background:#5D5D5D;}   
.comment-author { position: absolute; left: -210px; top: 0; }   
.comment-author cite { display: block; margin-top: 0px; font-family: HelveticaNeue, Helvetica, Arial, Sans-Serif; font-style: normal; color: black;text-align:center;}   
.comment-author cite a { color: black; border-bottom: 1px solid transparent; }   
.cBlock1 .comment-author .avatar { width: 60px; height: 60px; -moz-border-radius: 38px; position: relative; -webkit-border-radius: 38px; border-radius: 38px; border: 8px solid #89B0CE; }   
.cBlock1 .comment-author .avatar:after { content: ""; display: block; position: absolute; width: 142px; height: 8px; background: #89B0CE; left: 60px; top: 30px; }   
.cBlock2 .comment-author .avatar { width: 60px; height: 60px; -moz-border-radius: 38px; position: relative; -webkit-border-radius: 38px; border-radius: 38px; border: 8px solid #5D5D5D; }   
.cBlock2 .comment-author .avatar:after { content: ""; display: block; position: absolute; width: 142px; height: 8px; background: #5D5D5D; left: 60px; top: 30px; }   
.comment-author .avatar img{ width: 60px; height: 60px; -moz-border-radius: 38px; position: relative; -webkit-border-radius: 38px; border-radius: 38px; }   
.comment .comment-meta { position: absolute; left: -210px; top: 90px; font-family: HelveticaNeue, Helvetica, Arial, Sans-Serif; text-transform: uppercase; }

Fiti atenti, preventiv vca uitati prin CSS daca aveti stilurile implicite pentru .cBlock1 si .cBlock2 le stergeti.
Attachments: 1394932.png (79.6 Kb)



 
Forum » uCoz system » Comentarii » Alt aspect a comentariilor v2 (sml[hammer])
  • Pagina 1 din 1
  • 1
Căutare: