During my lunch break today I tweaked the previously mentioned CSS. Instead of being fully vertically stacked, the badges slightly curve. This CSS also only allows up to 4 badges to be visible in the post stream. If you have more than 4, the first 4 will show in the post stream, and all others will be in your profile. The first screenshot below demonstrates this. You'll see 4 badges in the stream, but the user actually has 5 badges in their profile header.
The idea is: show some badges next to posts, but if your community uses a TON of badges, then the extras will only be visible in profiles.
Screenshots:
/* Alt Discussion List Badges (Sticky & Lock) */
/* Stack badges vertically and overlap */
.DiscussionList .badges, .DiscussionList .badges>li {
display: block;
margin-bottom: -8px !important;
margin-top: 2.7px;
}
.DiscussionList .badges>li:nth-child(2) {
padding-left: 45px;
}
/* Reduce badge icon size by less than a pixel (original ~12px) */
.DiscussionList .Badge, .DiscussionList .Badge .Badge-icon {
font-size: 10px;
line-height: 16px;
}
/* Reduce color badge background width & height by 1px (original 22px) */
.DiscussionList .Badge {
width: 18px;
height: 18px;
}
/* Move badges off of avatar slightly (original -55px) - also push post title to the right 5px extra pixels */
@media (min-width: 768px) {
.DiscussionList .DiscussionListItem-badges {
margin-left: -55px;
margin-right: 15px;
}
}
/* Mobile rules for Alt Discussion List Badges (Sticky & Lock) */
/* Basically make things a little smaller */
@media (max-width: 767px) {
.DiscussionList .DiscussionListItem-badges {
margin-left: -43px;
margin-right: 15px;
}
.DiscussionList .badges>li:nth-child(2) {
padding-left: 35px;
}
.DiscussionList .Badge, .DiscussionList .Badge .DiscussionList .Badge-icon {
font-size: 8px;
line-height: 14px;
}
.DiscussionList .Badge {
width: 18px;
height: 18px;
}
}
/* Alt Post Stream Badges (Group Badges) */
/* Move badges off of avatar slightly (original -55px) - also push things to the right */
@media (min-width: 768px) {
.PostStream .PostUser-badges, .PostsUserPage .PostUser-badges {
margin-left: -50px;
margin-right: 10px;
width: 45px;
}
}
/* Stack badges vertically and overlap */
.PostStream .badges, .PostStream .badges>li, .PostsUserPage .badges, .PostsUserPage .badges>li {
display: block;
margin-bottom: -8px;
margin-top: 0.1px;
}
.PostStream .badges>li:nth-child(n+5), .PostsUserPage .badges>li:nth-child(n+5) {
display:none;
}
.PostStream .badges>li:nth-child(2), .PostsUserPage .badges>li:nth-child(2) {
padding-left: 40px;
}
.PostStream .badges>li:nth-child(3), .PostsUserPage .badges>li:nth-child(3) {
padding-left: 39px;
}
/* Needed to put post back in original spot after adding margin-right of 10px to .PostUser-badges (original 105px) */
@media (min-width: 768px) {
.PostStream .Post, .PostsUserPage .Post {
padding-left: 95px;
}
}
/* If you have 3+ badges this gives them more breathing room - moves post content over */
.PostStream .Post-body, .PostsUserPage .Post-body {
margin-left: 8px;
}
/* Mobile for Alt Post Stream Badges (Group Badges) */
/* Put things "in-line" */
@media (max-width: 767px) {
.PostStream .PostUser-badges, .PostsUserPage .PostUser-badges {
position: static;
margin-left: 10px;
margin-right: 10px;
}
.PostStream .PostUser-badges .Badge, .PostsUserPage .PostUser-badges .Badge {
margin-left: -5px;
}
.PostStream .badges, .PostStream .badges>li, .PostsUserPage .badges, .PostsUserPage .badges>li {
display: inline-block;
margin-bottom: -8px;
padding: 0px !important;
}
.PostUser {
margin-right: 15px;
}
}
/* Usercard fix */
.UserCard-profile .badges, .UserCard-profile .badges>li {
display: inline-block;
padding: 0px !important;
}
/* Add thin border to badges */
.Badge {
border: 1px solid #ddd;
}