styles for message only view
This commit is contained in:
@@ -182,7 +182,7 @@ export default class Chat extends Component {
|
|||||||
if (messagesOnly) {
|
if (messagesOnly) {
|
||||||
return (
|
return (
|
||||||
html`
|
html`
|
||||||
<div id="messages-container">
|
<div id="messages-container" class="messages-only">
|
||||||
${messageList}
|
${messageList}
|
||||||
</div>
|
</div>
|
||||||
`);
|
`);
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ export default class Message extends Component {
|
|||||||
const { image, author, body } = message;
|
const { image, author, body } = message;
|
||||||
const formattedMessage = formatMessageText(body, username);
|
const formattedMessage = formatMessageText(body, username);
|
||||||
const avatar = image || generateAvatar(author);
|
const avatar = image || generateAvatar(author);
|
||||||
const avatarBgColor = { backgroundColor: messageBubbleColorForString(author) };
|
|
||||||
|
const authorColor = messageBubbleColorForString(author);
|
||||||
|
const avatarBgColor = { backgroundColor: authorColor };
|
||||||
|
const authorTextColor = { color: authorColor };
|
||||||
return (
|
return (
|
||||||
html`
|
html`
|
||||||
<div class="message flex">
|
<div class="message flex">
|
||||||
|
|||||||
@@ -1,4 +1,34 @@
|
|||||||
/*
|
/*
|
||||||
The styles in this file mostly ovveride those coming fro chat.css
|
The styles in this file mostly ovveride those coming from chat.css
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#messages-container.messages-only {
|
||||||
|
|
||||||
|
/* modify this px number if you want things to be relatively bigger or smaller 8*/
|
||||||
|
font-size: 16px;
|
||||||
|
|
||||||
|
padding: 1em .5em;
|
||||||
|
background-color: rgba(0,0,0,.4);
|
||||||
|
}
|
||||||
|
.messages-only .message-content {
|
||||||
|
text-shadow: 1px 1px 0px rgba(0,0,0,0.25);
|
||||||
|
}
|
||||||
|
.message-avatar {
|
||||||
|
box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.25);
|
||||||
|
}
|
||||||
|
.messages-only .message {
|
||||||
|
padding: .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages-only .message-text {
|
||||||
|
font-weight: 400;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.messages-only .message-text a {
|
||||||
|
color: #fc0;
|
||||||
|
}
|
||||||
|
.messages-only .message-author {
|
||||||
|
color: rgba(20,0,40,1);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user