Skip to content

Instantly share code, notes, and snippets.

@63phc
Created June 1, 2016 09:14
Show Gist options
  • Save 63phc/f46613f55c97e69197a5c11caf86064f to your computer and use it in GitHub Desktop.
Save 63phc/f46613f55c97e69197a5c11caf86064f to your computer and use it in GitHub Desktop.
<div class="twitter-container">
<style type="text/css" id="twitterStyle">
#twitterStyled .tweet {
padding: 10px 10px 5px 10px;
margin:10px;
border-radius: 10px;
background-color: #fff;
}
#twitterStyled .tweet:nth-child(odd) {
margin-right:50px;
}
#twitterStyled .tweet:nth-child(even) {
margin-left:50px;
}
#twitterStyled .profile > img {
display: none;
}
#twitterStyled .tweet .tweet-actions {
visibility: hidden;
}
#twitterStyled .tweet:hover .tweet-actions {
visibility: visible;
}
#twitterStyled .stream {
background-color: #fff;
color:#000;
}
#twitterStyled .header {
border-bottom: 1px dashed #eee;
margin-bottom:10px;
padding-bottom:5px;
}
#twitterStyled .p-name {
color: #207290;
}
#twitterStyled .p-nickname, #twitterStyled .dt-updated {
color: #2b8fb4;
}
</style>
<a class="twitter-timeline" data-dnt="true" data-lang="ru" data-theme="dark" data-tweet-limit="3" data-chrome="noheader nofooter noborders noscrollbar transparent" href="https://twitter.com/63phc" data-widget-id="355335626750558209">Твиты пользователя @@63phc</a>
</div>
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
$(function () {
var $cont = $(".twitter-container"),
prd = setInterval(function () {
if ($cont.find("> iframe").contents().find(".twitter-timeline").length > 0) {
var $body = $cont.find("> iframe").contents().find("body");
clearInterval(prd)
$body.attr("id", "twitterStyled")
.append($("#twitterStyle"));
}
}, 100);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment