Skip to content

Instantly share code, notes, and snippets.

@richrd
Last active December 20, 2019 19:03
Show Gist options
  • Save richrd/ad0e1ce6bf03b4c492841b7e65c31390 to your computer and use it in GitHub Desktop.
Save richrd/ad0e1ce6bf03b4c492841b7e65c31390 to your computer and use it in GitHub Desktop.
The Lounge conversation view CSS
#chat .msg {
display: flex;
flex-wrap: wrap;
}
#chat .msg:not(.previous-source) {
margin-top: 1em;
}
#chat .msg.previous-source {
margin-top: 0em;
}
#chat .msg.previous-source .time,
#chat .msg.previous-source .from {
display: none;
}
#chat .condensed-summary {
margin: 0 auto;
}
#chat .condensed-summary .time,
#chat .condensed-summary .from {
display: none;
}
#chat .from {
order: 0;
width: auto;
}
#chat .time {
order: 1;
padding-left: 0;
}
#chat .content {
display: flex;
flex-wrap: wrap;
order: 2;
}
#chat .content[type="message"] {
width: 100%;
}
#chat .content .preview,
#chat .content .whois {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment