2110410311471548078

Modifikasi Tampilan Komentar Bawaan Blog

Hafiz Ramdhani
Written Upd, Jumat, 12 Maret 2021 1 read

/* Widget Comment */
h3.widget-comment{
	font-size:14px;
	position:relative;
	top:-20px
	}

h3.widget-comment:after{
content:'';
	position:absolute;
	display:block;
	width:40px;
	height:2px;
	background:#00b8b4;
	border-radius:3px;
	margin-top:4px;
	}

#comments{
	display:none
	}

.comments{
    padding:25px 0 15px;
    position:relative;
    z-index:3
    }

.comments p{
	margin:0;
	padding:0;
	}

.comments h4{
    margin:0 0 15px;
    font-size:16px;
    font-weight:400
	}

/* Avatar */
.comment .avatar-image-container {
	background: rgba(0, 0, 0, 0.03);
	border-radius: 20px;
	float: left;
	max-height: 40px;
	overflow: hidden;
	width: 40px;
	height: 40px;
    background-repeat: no-repeat;
    background-position: 8px 7px;
}
.comments li .avatar-image-container img {
	max-width:100%;
    display:table-cell;
    vertical-align:middle;  
	position:relative;
    z-index:2;
    border:3px solid #E0F8F0;
    border-radius:50%
}/* Avatar end */

#comments-block .avatar-image-container {
	display: inline-block;
	margin-right: 4px;
	margin-bottom: -10px;
	background: #888;
	border-radius: 17px;
	}

#comments-block .avatar-image-container img {
	display: block;
	}

.comments li .comment-header .user{
      font-style:normal;
	  font-weight:500;
      font-size:13px;
	}

.comments li .comment-header .user a{
	color:#393939
	}

.comments .comments-content .datetime {
	margin-left: 6px;
}
.comments .comments-content .datetime a {
	color: $(post.footer.color);
	font-size:12px
}

/* dropdown Balasan */
.comments li .comment-replies .thread-toggle{
	display:block;
    font-size:13px;
    color:rgba(0,0,0,.68);
    margin:0px 0 0px 0px;
	margin-bottom:17px;
	background: rgba(0, 0, 0, 0.05);
	padding:13px;
	border-radius:0 0 3px 3px
	}

.comments li .comment-replies .thread-toggle a{
	color:rgba(0,0,0,.68);
    font-weight:600
	}

.comments li .comment-replies .comment-thread .thread-toggle.thread-expanded .thread-arrow:before,.comments li .comment-replies .comment-thread .thread-toggle.thread-collapsed .thread-arrow:before{
	content:"";
    display:inline-block;
    position:relative;
    top:2px;
    margin-right:11px;
    width:8px;
    height:14px;
    background:url("data:image/svg+xml,") no-repeat center center;
    background-size:cover;
	}

.comments li .comment-replies .comment-thread .thread-toggle.thread-collapsed .thread-arrow:before{
	transform:rotate(180deg);
    -webkit-transform:rotate(180deg);}
      
.comments li .comment-replies .comment-thread ol.thread-collapsed{display:none}
      
.comments li .comment-replies .comment-thread ol.thread-expanded{
	display:block;
	margin-top:0px;
    margin-right:-3px
	}

#comments-block {
	margin: 15px 0;
}
#comments-block .comment-author {
	border-radius: 4px 4px 0 0;
	background: rgba(0, 0, 0, 0.03);
	padding: 15px 15px 0;
    
}
#comments-block .comment-body {
	background: rgba(0, 0, 0, 0.03);
	padding: 30px 15px 15px;
	margin: 0 0;
    
}
#comments-block .comment-body p {
	margin: 10px
}
#comments-block .comment-footer {
	border-radius: 0 0 4px 4px;
	background: rgba(0, 0, 0, 0.03);
	padding: 0 15px 15px;
	margin: 0 0 20px;
	font-size: 0.88rem;
}


#comments-block .comment-footer a {

}
p.comment-footer {
	display: inline-block;
	font-weight: bold;
	margin: 0;

}

.comments .comments-content{
	font-size: 14px;
	margin-bottom: 10px;

}
.comments .comments-content .comment-thread ol{
	text-align: left;
	margin: 7px 0;
	padding: 3px;
	list-style: none;   
}


/* box text */
.comments .comment-block {
	background: rgba(0, 0, 0, 0.03);
	position: relative;
	padding: 20px;
	margin-left: 20px;
	border-radius:3px 3px 0 0;
	word-break: break-word;
}

.comments .comments-content .comment-thread:empty{
	display:none;
}
.comments .comment-replybox-single {
	margin-left:45px;
	margin: 20px 0;
}
.comments .comments-content .comment{
	margin-bottom:6px;
	padding:0;
    
}
.comments .comments-content .comment:first-child {
	padding:0;
	margin:0;
    
}
.comments .comments-content .comment:last-child {
	padding:0;
	margin:0;
    
}
.comments .comment-thread.inline-thread .comment, .comments .comment-thread.inline-thread .comment:last-child {
	margin:0px 0px 5px 14%;
}
.comment .comment-thread.inline-thread .comment:nth-child(6) {
	margin:0px 0px 5px 12%;
}
.comment .comment-thread.inline-thread .comment:nth-child(5) {
	margin:0px 0px 5px 10%;
}
.comment .comment-thread.inline-thread .comment:nth-child(4) {
	margin:0px 0px 5px 8%;
}
.comment .comment-thread.inline-thread .comment:nth-child(3) {
	margin:0px 0px 5px 4%;
}
.comment .comment-thread.inline-thread .comment:nth-child(2) {
	margin:0px 0px 5px 2%;
}
.comment .comment-thread.inline-thread .comment:nth-child(1) {
	margin:0px 0px 5px 0;
}
.comments .comments-content .comment-thread{
	margin:0;
	padding:0;
}
.comments .comments-content .inline-thread{
	margin:0;
}

.comments .comments-content .icon.blog-author {	
	width:14px;
    height:14px;
    margin-left:5px;
    vertical-align:-3px;
    display:inline-block;
    background:url("data:image/svg+xml,") no-repeat center center
}

.comments li .comment-actions .comment-reply:before,.comments li .comment-replies .comment-thread ol .continue a:before{
      content:"";
      display:inline-block;
      position:relative;
      top:3px;
      margin-right:5px;
      width:12px;
      height:16px;
      background:url("data:image/svg+xml,") no-repeat center center;
background-size:cover;}

.comments .comments-content .comment-header {
	font-size:14px;
	margin: 0 15px 15px;
	background:#f9f9f9;
	}
.comments .comments-content .comment-content {
	margin: 0 15px 15px;
	text-align: left;
	line-height: 1.6;
}

.comment-actions a:last-child{
position:relative;
left:16px}

.comments .comment .comment-actions a {
	display: inline-block;
	font-weight:500;
	font-size: 13px;
	line-height: 15px;
	margin: 4px 15px 0 0;
    color:#393939; /* balas hapus */
}
.comments .continue a {
	display:inline-block;
	font-weight:500;
	font-size:13px;
	margin:0 28px;
	padding: .5em;
	color:#393939; /* Balas */
}
.comments .comment .comment-actions a:hover, .comments .continue a:hover{
	text-decoration:none;
}
.pesan-komentar:not(:empty) {
    padding: 20px;
    background: #f9f9f9; /* Danger */
	margin-bottom: 30px;
}

.deleted-comment {
	font-style: Normal;
	opacity: .5;
	color:#393939;
}

.comments .comments-content .loadmore {
    cursor: pointer;
    margin-top: 3em;
    max-height: 3em;
}

.comments .comments-content .loadmore.loaded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.comments .thread-chrome.thread-collapsed {
    display: none
}


.comments .hidden {
    display: none
}

@media screen and (max-device-width:480px) {
    .comments .comments-content .comment-replies {
        margin-left: 0
    }
}
         
 
Hafiz Ramdhani
Written by
Depeloper Web , Ui Designer

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel

Go to top