Commit ee46b0cc authored by JC Brand's avatar JC Brand

CSS fixes to embedded chat

* Don't change styling based on media queries
* Fix offsets so that an embedded chat fits properly inside container element
parent a1519297
This diff is collapsed.
This diff is collapsed.
#converse-embedded-chat,
#conversejs { #conversejs {
.flyout { .flyout {
border-radius: $chatbox-border-radius; border-radius: $chatbox-border-radius;
bottom: $chatbox-hover-height;
position: absolute;
@media screen and (max-height: $mobile-landscape-height) { @media screen and (max-height: $mobile-landscape-height) {
border-radius: 0; border-radius: 0;
} }
@media screen and (max-width: $mobile-portrait-length) { @media screen and (max-width: $mobile-portrait-length) {
border-radius: 0; border-radius: 0;
} }
bottom: $chatbox-hover-height;
position: absolute;
@media screen and (max-height: $mobile-landscape-height) { @media screen and (max-height: $mobile-landscape-height) {
bottom: 0; bottom: 0;
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
} }
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
#conversejs { #conversejs:not(.converse-embedded) {
> .row { > .row {
flex-direction: row-reverse; flex-direction: row-reverse;
} }
......
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
} }
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
#conversejs { #conversejs:not(.converse-embedded) {
.chatbox { .chatbox {
.box-flyout { .box-flyout {
.chatroom-body { .chatroom-body {
......
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
#conversejs { #conversejs:not(.converse-embedded) {
left: 0; left: 0;
right: 0; right: 0;
padding-left: env(safe-area-inset-left); padding-left: env(safe-area-inset-left);
......
...@@ -363,7 +363,7 @@ body.reset { ...@@ -363,7 +363,7 @@ body.reset {
} }
.avatar { .avatar {
border-radius: 25%; border-radius: 10%;
} }
.activated { .activated {
...@@ -459,7 +459,7 @@ body.reset { ...@@ -459,7 +459,7 @@ body.reset {
font-size: 3.75em; font-size: 3.75em;
} }
} }
#conversejs { #conversejs:not(.converse-embedded) {
.chatbox { .chatbox {
.chat-body { .chat-body {
border-radius: $chatbox-border-radius; border-radius: $chatbox-border-radius;
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
} }
bottom: auto; bottom: auto;
right: auto; height: 100%; // When embedded, it fills the containing element
position: relative; position: relative;
right: auto;
width: 100%; width: 100%;
height: 100%; // When embedded, it fills the containing element
.converse-chatboxes { .converse-chatboxes {
z-index: 1031; // One more than bootstrap navbar z-index: 1031; // One more than bootstrap navbar
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
width: 100%; width: 100%;
} }
.flyout {
bottom: 0;
}
.chatroom { .chatroom {
margin: 0; margin: 0;
width: 100%; width: 100%;
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
#conversejs:not(.fullscreen) { #conversejs:not(.converse-fullscreen):not(.converse-embedded) {
> .row { > .row {
flex-direction: column; flex-direction: column;
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
} }
@media screen and (max-width: 767px) { @media screen and (max-width: 767px) {
#conversejs.fullscreen { #conversejs:not(.converse-embedded).fullscreen {
.chatbox { .chatbox {
width: calc(100% - 50px); width: calc(100% - 50px);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment