Commit b00567a0 authored by JC Brand's avatar JC Brand

Fix styles for mobile view

parent 2ca382b7
This diff is collapsed.
...@@ -300,6 +300,9 @@ ...@@ -300,6 +300,9 @@
font-size: 80%; font-size: 80%;
} }
} }
.chatbox-buttons {
@include make-col(4);
}
.chatroom-body { .chatroom-body {
.occupants { .occupants {
.chatroom-features { .chatroom-features {
...@@ -316,7 +319,31 @@ ...@@ -316,7 +319,31 @@
} }
} }
/* ******************* Fullpage styles *************************** */ #conversejs.converse-fullscreen {
.chatroom {
.box-flyout {
.chatbox-title {
@include make-col(9);
}
.chatbox-buttons {
@include make-col(3);
}
}
}
}
@include media-breakpoint-down(sm) {
.chatroom {
.box-flyout {
.chatbox-title {
@include make-col(8);
}
.chatbox-buttons {
@include make-col(4);
}
}
}
}
#conversejs.converse-fullscreen, #conversejs.converse-fullscreen,
#conversejs.converse-mobile { #conversejs.converse-mobile {
...@@ -329,7 +356,6 @@ ...@@ -329,7 +356,6 @@
width: 100%; width: 100%;
.chatbox-title { .chatbox-title {
@include make-col(9);
.chatroom-description { .chatroom-description {
font-size: 70%; font-size: 70%;
} }
......
...@@ -357,7 +357,6 @@ ...@@ -357,7 +357,6 @@
.chatbox { .chatbox {
.box-flyout { .box-flyout {
top: -100vh;
margin-left: 15px; // Counteracts Bootstrap margins, but margin-left: 15px; // Counteracts Bootstrap margins, but
// not clear why needed... // not clear why needed...
left: 0; left: 0;
...@@ -393,7 +392,7 @@ ...@@ -393,7 +392,7 @@
} }
} }
#conversejs:not(.converse-fullscreen) { #conversejs.converse-overlayed {
#controlbox { #controlbox {
order: -1; order: -1;
min-width: $controlbox-width !important; min-width: $controlbox-width !important;
...@@ -445,7 +444,8 @@ ...@@ -445,7 +444,8 @@
} }
} }
#conversejs.converse-fullscreen { #conversejs.converse-fullscreen,
#conversejs.converse-mobile {
#controlbox { #controlbox {
@include make-col-ready(); @include make-col-ready();
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
......
...@@ -67,12 +67,16 @@ body.reset { ...@@ -67,12 +67,16 @@ body.reset {
} }
} }
&.converse-fullscreen { &.converse-fullscreen,
&.converse-mobile {
.converse-chatboxes { .converse-chatboxes {
width: 100vw; width: 100vw;
right: 15px; // Hack due to padding added by bootstrap right: 15px; // Hack due to padding added by bootstrap
} }
} }
&.converse-overlayed {
height: 3em;
}
.brand-heading { .brand-heading {
font-family: $heading-font; font-family: $heading-font;
...@@ -89,7 +93,6 @@ body.reset { ...@@ -89,7 +93,6 @@ body.reset {
z-index: 1031; // One more than bootstrap navbar z-index: 1031; // One more than bootstrap navbar
position: fixed; position: fixed;
bottom: 0; bottom: 0;
height: 3em;
right: 0; right: 0;
} }
......
...@@ -722,9 +722,6 @@ ...@@ -722,9 +722,6 @@
_converse.root.appendChild(el); _converse.root.appendChild(el);
} }
} }
if (_.includes(['mobile', 'fullscreen'], _converse.view_mode)) {
el.classList.add('fullscreen');
}
el.innerHTML = ''; el.innerHTML = '';
this.setElement(el, false); this.setElement(el, false);
} else { } else {
......
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