xmpp.chapril.org-conversejs/src/shared/chat/styles/message-body.scss

55 lines
1.2 KiB
SCSS
Raw Permalink Normal View History

@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "shared/styles/_mixins.scss";
2021-06-17 14:37:43 +02:00
converse-chat-message-body {
2022-10-03 14:01:12 +02:00
margin-right: 0.5em;
overflow-y: hidden; // Hide zalgo text that overflows vertically
2021-06-17 14:37:43 +02:00
audio {
display: block;
@include media-breakpoint-down(sm) {
max-width: 95%;
}
@include media-breakpoint-up(md) {
max-width: 70%;
}
@include media-breakpoint-up(lg) {
max-width: 50%;
}
@include media-breakpoint-up(xl) {
max-width: 40%;
}
2021-06-17 14:37:43 +02:00
}
2021-06-17 15:48:03 +02:00
video {
display: block;
max-height: 25em;
@include media-breakpoint-down(sm) {
max-width: 95%;
}
@include media-breakpoint-up(md) {
max-width: 70%;
}
@include media-breakpoint-up(lg) {
max-width: 50%;
}
@include media-breakpoint-up(xl) {
max-width: 40%;
}
2021-06-17 15:48:03 +02:00
}
2021-06-17 14:37:43 +02:00
}
.converse-overlayed {
converse-chat-message-body {
audio {
display: block;
max-width: 100%;
}
video {
display: block;
max-width: 100%;
}
}
}