2018-04-25 19:27:55 +02:00
|
|
|
#conversejs {
|
|
|
|
.message {
|
|
|
|
|
|
|
|
&.date-separator {
|
|
|
|
height: 2em;
|
|
|
|
margin: 0;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
z-index: 0;
|
|
|
|
|
|
|
|
.separator {
|
|
|
|
border: 0.5px solid $chat-head-color;
|
|
|
|
margin: 0 1em;
|
|
|
|
position: relative;
|
|
|
|
top: 1em;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.separator-text {
|
|
|
|
background: white;
|
|
|
|
bottom: 1px; // Offset needed due to .separator border size
|
2018-04-27 16:50:58 +02:00
|
|
|
color: $message-text-color;
|
2018-04-25 19:27:55 +02:00
|
|
|
display: inline-block;
|
|
|
|
line-height: 2em;
|
|
|
|
padding: 0 1em;
|
|
|
|
position: relative;
|
|
|
|
z-index: 5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.chat-info {
|
|
|
|
color: $chat-head-color;
|
|
|
|
font-size: $message-font-size;
|
|
|
|
line-height: $line-height-small;
|
2018-04-27 17:59:41 +02:00
|
|
|
padding: 0.35rem 1rem;
|
2018-04-25 19:27:55 +02:00
|
|
|
|
|
|
|
&.badge {
|
|
|
|
color: $chat-head-text-color;
|
|
|
|
}
|
|
|
|
&.chat-state-notification {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
&.chat-event {
|
|
|
|
clear: left;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
&.chat-error {
|
|
|
|
color: $warning-color;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-27 12:02:02 +02:00
|
|
|
.chat-image {
|
2018-04-25 19:27:55 +02:00
|
|
|
height: auto;
|
|
|
|
width: auto;
|
2018-04-27 12:02:02 +02:00
|
|
|
max-height: 15em;
|
2018-04-25 19:27:55 +02:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
&.chat-action {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.chat-msg {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
overflow: auto; // Ensures that content stays inside
|
2018-04-30 10:05:12 +02:00
|
|
|
padding: 0.25rem 1rem;
|
2018-04-25 19:27:55 +02:00
|
|
|
|
|
|
|
&.onload {
|
|
|
|
animation: colorchange-chatmessage 1s;
|
|
|
|
-webkit-animation: colorchange-chatmessage 1s;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.035);
|
|
|
|
}
|
|
|
|
|
2018-04-27 12:02:02 +02:00
|
|
|
.spoiler {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
2018-04-26 19:10:06 +02:00
|
|
|
.spoiler-hint {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
2018-04-27 12:02:02 +02:00
|
|
|
.spoiler-toggle {
|
2018-04-26 19:10:06 +02:00
|
|
|
color: white;
|
|
|
|
i {
|
|
|
|
color: white;
|
|
|
|
padding-right: 0.5em;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
padding-right: 0.25em;
|
|
|
|
whitespace: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
.chat-msg-content {
|
|
|
|
margin-left: 0.5rem;
|
2018-04-27 13:47:44 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
2018-07-06 01:35:58 +02:00
|
|
|
.chat-msg-edited {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-04-27 13:47:44 +02:00
|
|
|
&.headline {
|
|
|
|
.chat-msg-content {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-msg-text {
|
|
|
|
padding: 0;
|
2018-04-27 16:50:58 +02:00
|
|
|
color: $message-text-color;
|
2018-04-29 15:46:46 +02:00
|
|
|
a {
|
|
|
|
word-wrap: break-word;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
.emojione {
|
|
|
|
margin-bottom: -6px;
|
|
|
|
}
|
|
|
|
}
|
2018-04-27 17:59:41 +02:00
|
|
|
|
|
|
|
.chat-msg-media {
|
2018-04-29 15:46:46 +02:00
|
|
|
margin-top: 0.25rem;
|
|
|
|
a {
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2018-04-27 17:59:41 +02:00
|
|
|
audio {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
|
2018-04-27 16:50:58 +02:00
|
|
|
.avatar {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
height: 36px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 36px;
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
.chat-msg-heading {
|
2018-04-27 16:50:58 +02:00
|
|
|
margin-top: 0.5em;
|
|
|
|
padding-right: 0.25rem;
|
2018-04-26 19:10:06 +02:00
|
|
|
padding-bottom: 0.25rem;
|
2018-04-25 19:27:55 +02:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
.chat-msg-author {
|
2018-05-14 13:27:10 +02:00
|
|
|
font-family: $heading-font;
|
|
|
|
font-size: 115%;
|
|
|
|
.badge {
|
|
|
|
font-size: 80%;
|
|
|
|
font-family: $normal_font;
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
}
|
|
|
|
.chat-msg-time {
|
2018-04-27 17:59:41 +02:00
|
|
|
padding-left: 0.25em;
|
|
|
|
color: lighten($text-color, 15%);
|
2018-04-25 19:27:55 +02:00
|
|
|
}
|
|
|
|
}
|
2018-04-27 16:50:58 +02:00
|
|
|
&.chat-action {
|
2018-05-02 14:55:10 +02:00
|
|
|
display: block;
|
|
|
|
|
2018-04-27 16:50:58 +02:00
|
|
|
.chat-msg-heading {
|
2018-05-02 14:55:10 +02:00
|
|
|
float: left;
|
2018-04-27 16:50:58 +02:00
|
|
|
margin-top: 0;
|
2018-05-02 14:55:10 +02:00
|
|
|
padding-bottom: 0;
|
2018-04-27 16:50:58 +02:00
|
|
|
}
|
|
|
|
}
|
2018-04-25 19:27:55 +02:00
|
|
|
&.chat-msg-followup {
|
|
|
|
.chat-msg-heading,
|
|
|
|
.avatar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.chat-msg-content {
|
|
|
|
margin-left: 2.75rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chatroom-body .message {
|
|
|
|
&.onload {
|
|
|
|
animation: colorchange-chatmessage-muc 1s;
|
|
|
|
-webkit-animation: colorchange-chatmessage-muc 1s;
|
|
|
|
}
|
|
|
|
.separator {
|
|
|
|
border: 0.5px solid $chatroom-head-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-29 16:19:02 +02:00
|
|
|
#conversejs.converse-overlayed {
|
|
|
|
.message {
|
|
|
|
&.chat-msg {
|
|
|
|
&.chat-msg-followup {
|
|
|
|
.chat-msg-content {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-25 19:27:55 +02:00
|
|
|
@media screen and (max-width: 767px) {
|
|
|
|
#conversejs:not(.converse-embedded) {
|
|
|
|
.message {
|
|
|
|
&.chat-msg {
|
|
|
|
.chat-msg-author {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|