Set max widths with embedded audio and video content

This commit is contained in:
JC Brand 2021-06-24 12:51:02 +02:00
parent 846dfd6762
commit 670f435c64

View File

@ -1,9 +1,37 @@
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "shared/styles/_mixins.scss";
converse-chat-message-body {
audio {
width: 100%;
display: block;
@include media-breakpoint-down(sm) {
max-width: 95%;
}
@include media-breakpoint-up(md) {
max-width: 75%;
}
@include media-breakpoint-up(lg) {
max-width: 66%;
}
@include media-breakpoint-up(xl) {
max-width: 50%;
}
}
video {
max-height: 25vh;
display: block;
@include media-breakpoint-down(sm) {
max-width: 95%;
}
@include media-breakpoint-up(md) {
max-width: 75%;
}
@include media-breakpoint-up(lg) {
max-width: 66%;
}
@include media-breakpoint-up(xl) {
max-width: 50%;
}
}
}