Quote mặc định có cái dấy nháy to đùng phía trên bên phải và cái nền xám xấu quá.
TEST
No user |
No user |
/*Xóa dấu nháy, màu nền và khung của Quote */
blockquote cite {background-color: transparent; background-image: url(); border: 0;}
/* Thay thế khung Quote mặc định */
.post-entry blockquote {background: #FFF;border: 1px solid #DDD;color: #333;position: relative;margin: 0 0 10px 10px;padding: 10px 15px!important;}
.post-entry cite{font-size:13px;font-weight:700;text-decoration:underline;background:url(//i83.servimg.com/u/f83/16/58/89/73/commen10.gif) no-repeat left 2px transparent;margin:0!important;padding:0 0 3px 20px}
.post-entry blockquote:before {content: '';display: inline-block;border-top: 10px solid transparent;border-bottom: 10px solid transparent;border-right: 10px solid #CCC;position: absolute;top: 10px;left: -10px;height: 0;}
.post-entry blockquote:after {content: '';display: inline-block;border-top: 9px solid transparent;border-bottom: 9px solid transparent;border-right: 9px solid #fff;position: absolute;top: 11px;left: -9px;height: 0;}
/* Thay thế khung Quote mặc định */
.post-entry blockquote {background: #FFF;border: 1px solid #ffccbf;color: #333;position: relative;margin: 0 0 10px 10px;padding: 10px 15px!important;}
.post-entry cite{font-size:13px;font-weight:700;text-decoration:underline;background:url(//i83.servimg.com/u/f83/16/58/89/73/commen10.gif) no-repeat left 2px transparent;margin:0!important;padding:0 0 3px 20px}
.post-entry blockquote:before{content:'';display:inline-block;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #ffccbf;position:absolute;top:10px;left:-10px;height:0}
.post-entry blockquote:after{content:'';display:inline-block;border-top:9px solid transparent;border-bottom:9px solid transparent;border-right:9px solid #fff;position:absolute;top:11px;left:-9px;height:0}
Được sửa bởi Admin ngày Sat Nov 01, 2014 9:47 pm; sửa lần 1.
/* Thêm liên kết đánh dấu bài trích dẫn */
.post .quoteLink{display:inline-block;height:10px;width:12px;background:url(http://i83.servimg.com/u/f83/16/58/89/73/viewpo10.png) no-repeat transparent;margin-left:3px}
<script type="text/javascript">
//<![CDATA[
$(".post a[href*='&mode=quote']").attr("href", function () {
return this.href + "&r=" + location.pathname.replace(/\/(t\d+(p\d+)?)\-.*/, "$1");
});
$(".post a[href*='/t'][href*='-quote#']").next("br").remove().end().each(function () {
$(this).addClass("quoteLink").attr("href", function () {
return this.href.replace("quote", location.pathname.replace(/\/t\d+(p\d+)?-(.+)/, "$2"))
}).appendTo($(this).next("blockquote").find("cite:first"));
});
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
if (/r\=t\d+(p\d+)?/.test(location.search)) {
$("#text_editor_textarea").val("[url=http://" + location.host + "/" + GetParam("r") + "-quote#" + GetParam("p") + "][/url]" + $("#text_editor_textarea").val());
}
$(".post a[href*='/t'][href*='-quote#']").next("br").remove().end().each(function () {
$(this).addClass("quoteLink").appendTo($(this).next("blockquote").find("cite:first"));
});
//]]>
</script>
TEST » TEST » Test » [Test] Trích dẫn
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|