<div class="tweet-wrap" data-id="1509951255388504066">
<div class="tweet-header"><img src="https://pbs.twimg.com/profile_images/1488548719062654976/u6qfBBkF_normal.jpg" alt="Twitter" class="avator">
<div class="tweet-header-info">Twitter<span>@Twitter</span><span>. Apr 22</span>
<p>we are working on an edit button</p>
</div>
</div>
</div>
body {
background: #eee;
}
.tweet-wrap {
background: #e6ecf0;
font-family: "Asap", sans-serif;
font-family: "Roboto", sans-serif;
max-width: 490px;
background: #fff;
margin: 0 auto;
/*margin-top: 50px;*/
border-radius: 3px;
padding: 30px;
border: 1px solid #e6ecf0;
}
.tweet-wrap img {
max-width: 100%;
}
.tweet-wrap .avator {
border-radius: 100px;
width: 48px;
margin-right: 15px;
}
.tweet-wrap .tweet-header {
display: flex;
align-items: flex-start;
font-size: 14px;
}
.tweet-wrap .tweet-header-info {
font-weight: bold;
}
.tweet-wrap .tweet-header-info span {
color: #657786;
font-weight: normal;
margin-left: 5px;
}
.tweet-wrap .tweet-header-info p {
font-weight: normal;
margin-top: 5px;
}
.tweet-wrap .tweet-img-wrap {
padding-left: 60px;
}
.tweet-wrap .tweet-info-counts {
display: flex;
margin-left: 60px;
margin-top: 10px;
}
.tweet-wrap .tweet-info-counts div {
display: flex;
margin-right: 20px;
}
.tweet-wrap .tweet-info-counts div svg {
color: #657786;
margin-right: 10px;
}
@media screen and (max-width: 430px) {
.tweet-wrap .tweet-header {
flex-direction: column;
}
.tweet-wrap .tweet-header img {
margin-bottom: 20px;
}
.tweet-wrap .tweet-header-info p {
margin-bottom: 30px;
}
.tweet-wrap .tweet-img-wrap {
padding-left: 0;
}
.tweet-wrap .tweet-info-counts {
display: flex;
margin-left: 0;
}
.tweet-wrap .tweet-info-counts div {
margin-right: 10px;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.