JSFiddle - React, Tailwind, and code Playground
by Anonymous
HTML
<div class="aid-activity-wrapper"><li class="aid-activity flex-container-row-space-between"><div class="flex-container-column-flex-start"><a class="flex-item-auto activity-title activity-text" href="/cafegourmet/activity/redirect/29b1696a-dc33-4f26-842d-383c7689cf32" target="_blank">I'm so angry that nobody gave me any Snickers!!</a><span class="flex-item-auto"><span class="posted-by-name">Jordan P.</span><span class="posted-date"><!-- react-text: 7875 --> - <!-- /react-text --><!-- react-text: 7876 -->16 days ago<!-- /react-text --></span></span><div class="flex-item-auto activity-text theme-text-color">Nobody gave me a Snickers this Halloween! What's up with that?!</div></div><div class="flex-container-column-center aid-activity-media"></div></li><ul class="flex-item-auto aid-activity-contribution-list"><li class="aid-activity-contribution-wrapper"><div class="aid-activity-contribution flex-container-row-space-between"><div class="flex-container-column-flex-start"><span class="flex-item-auto"><span class="posted-by-name">Jordan P.</span><span class="posted-date"><!-- react-text: 7886 --> - <!-- /react-text --><!-- react-text: 7887 -->16 days ago<!-- /react-text --></span></span><div class="flex-item-auto activity-text theme-text-color">I'm just happy nobody gave me Skittles.</div></div><div class="flex-container-column-center aid-activity-media"></div></div></li><li class="aid-activity-contribution-wrapper"><div class="aid-activity-contribution flex-container-row-space-between"><div class="flex-container-column-flex-start"><span class="flex-item-auto"><span class="posted-by-name">Jordan P.</span><span class="posted-date"><!-- react-text: 7896 --> - <!-- /react-text --><!-- react-text: 7897 -->16 days ago<!-- /react-text --></span></span><div class="flex-item-auto activity-text theme-text-color">Nobody gave me a Snickers this Halloween! What's up with that?!</div></div><div class="flex-container-column-center aid-activity-media"></div></div></li></ul></div>
CSS
.aid-activity-wrapper {
background: #FFF;
border-bottom-style: solid;
border-bottom-width: 1px;
border-color: #EDEDED;
font: normal 14px "ProximaNovaRegular", "Arial";
line-height: 1.4;
padding: 0.5em 0.5em 0.5em 2em;
}
.aid-activity {
word-wrap: break-word;
}
body * {
box-sizing: border-box;
}
.aid-activity-contribution-list {
list-style: none;
overflow: hidden;
padding-left: 0.5em;
}
.flex-item-auto {
order: 0;
flex: 0 1 auto;
align-self: auto;
}
.aid-activity-media {
clear: both;
float: right;
max-width: 50%;
}
.activity-title {
color: #3283BF;
font-size: 1.4em;
font-weight: 600;
}
.posted-by-name {
color: #3283BF;
font-weight: 500;
}
.aid-activity-media img {
margin: 0 0 1em 1.4em;
max-height: 100%;
max-width: 200px;
}
.aid-activity-contribution-wrapper {
border-color: #EDEDED;
border-top-style: solid;
border-top-width: 1px;
margin-top: 0.5em;
}
.aid-activity-contribution {
border-color: #EDEDED;
border-left-style: solid;
border-left-width: 0.35em;
margin: 0.5em 0;
padding: 0 0 5px 10px;
}
.flex-container-row-space-between {
display: flex;
flex-direction: row;
justify-content: space-between;
align-content: stretch;
}
.flex-container-column-flex-start {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.flex-container-column-center {
display: flex;
flex-direction: column;
justify-content: center;
}
.aid-activity-media {
clear: both;
float: right;
max-width: 50%;
}
.activity-text {
line-height: 1.4;
}