Skip to content

Commit

Permalink
🎨 override facebook comment section style
Browse files Browse the repository at this point in the history
  • Loading branch information
jooncco committed Mar 16, 2024
1 parent f4a88bf commit bad2a54
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
20 changes: 13 additions & 7 deletions _includes/comments-providers/facebook.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5{% if site.comments.facebook.appid %}&appId={{ site.comments.facebook.appid }}{% endif %}";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>
(function (d, s, id) {
var js,
fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src =
"//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5{% if site.comments.facebook.appid %}&appId={{ site.comments.facebook.appid }}{% endif %}";
fjs.parentNode.insertBefore(js, fjs);
})(document, "script", "facebook-jssdk");
</script>
<link rel="stylesheet" href="/_sass/minimal-mistakes/_comment.scss" />
27 changes: 25 additions & 2 deletions _sass/minimal-mistakes/_comment.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
.fb-comments {
background: #aaa;
// Overriding styles for facebook comment section.
// The facebook jssdk theme doen't fit well into look & feel of this site.
section.fb-comments {
._6b {
vertical-align: baseline !important;
margin: 0 0.25em !important;
}

._pup {
color: #eee !important;
}

._3-8m {
span {
color: #ccc !important;
}
}

._ohe {
color: #eee !important;
}
}

section.fb-comments ._50f7 {
color: #eee !important;
}

0 comments on commit bad2a54

Please sign in to comment.